Hi,<br><br>I attach all the shape related files.<br><br>How can I get the ShapeDump?<br><br>Thanks<br>Oscar<br><br><div class="gmail_quote">2010/9/14 Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Oscar Gomez Mateu wrote:<br>
> Hi,<br>
><br>
> I am new to ShapeLib. I am ussing the .net wrapper available at the<br>
> project webpage. I have extended the wrapper to include the<br>
> SHPRewindObject() of version 1.2.10. My objective is to create a simple<br>
> multipatch building representation. Having a 2D building shape with an<br>
> elevation property, create a real 3D block (with min 6 faces) imitating<br>
> the building extrusion. I am able to do this with many polygonZ, but<br>
> then every building is composed of N different polygons. I want the<br>
> whole building to be a unique multipatch feature.<br>
><br>
> I am having problems with the Multipatch creation. As an example, I<br>
> create a Multipatch composed of 2 triangles in a TriangleFan (a<br>
> horizontal square -4points-) and a Ring (a vertical square sharing on of<br>
> the triangles lines -5 points-).<br>
><br>
> NVERTICES = 9;<br>
> double[] bX = new double[NVERTICES] { 0, 10, 10, 0, 0,<br>
> 0, 0, 0, 0 };<br>
> double[] bY = new double[NVERTICES] { 0, 0, 10, 10, 0, 10,<br>
> 10, 0, 0 };<br>
> double[] bZ = new double[NVERTICES] { 10, 10, 10, 10, 10,<br>
> 10, 0, 0, 10 };<br>
> double[] bM = new double[NVERTICES] { 5, 5, 5, 5, 5, 5, 5,<br>
> 5, 5 };<br>
> ShapeLib.ShapeType shpType3 = ShapeLib.ShapeType.MultiPatch;<br>
><br>
> int[] apartStart2 = new int[2] { 0, 4};<br>
> ShapeLib.PartType[] apartType2 = new ShapeLib.PartType[2] {<br>
> ShapeLib.PartType.TriangleFan, ShapeLib.PartType.Ring};<br>
><br>
> pshpObj = ShapeLib.SHPCreateObject(shpType3, -1, 2,<br>
> apartStart2, apartType2, NVERTICES, bX, bY, bZ, bM);<br>
><br>
> int j = ShapeLib.SHPRewindObject(hShp, pshpObj);<br>
> iRet = ShapeLib.SHPWriteObject(hShp, -1, pshpObj);<br>
> ShapeLib.SHPDestroyObject(pshpObj);<br>
><br>
> The resulting file (the dbf is filled in a different part of the sample<br>
> application) is interpreted right by GlobalMapper (a simple GIS package)<br>
> but it is not rendered (even when the load launched no errors) by ArcScene.<br>
><br>
> Any idea why is this?<br>
<br>
</div></div>Oscar,<br>
<br>
Can you provide access to the generated file and/or show the shpdump<br>
result from this process?<br>
<br>
Best regards,<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
_______________________________________________<br>
Shapelib mailing list<br>
<a href="mailto:Shapelib@lists.maptools.org">Shapelib@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/shapelib" target="_blank">http://lists.maptools.org/mailman/listinfo/shapelib</a><br>
</blockquote></div><br>