[Shapelib] Multipatch creation error

Frank Warmerdam warmerdam at pobox.com
Tue Sep 14 07:26:36 PDT 2010


> Oscar Gomez Mateu wrote:
>> I am having problems with the Multipatch creation. As an example, I 
>> create a Multipatch composed of 2 triangles in a TriangleFan (a 
>> horizontal square -4points-) and a Ring (a vertical square sharing on of 
>> the triangles lines -5 points-).


Oscar,

The shpdump for your file, created with the shpdump utility distributed
as part of shapelib looks like this:

warmerda at gdal64[109]% shpdump testmultipatch.shp
Shapefile Type: PolygonZ   # of Shapes: 1

File Bounds: (       0.000,       0.000,0,5)
          to  (      10.000,      10.000,10,5)

Shape:0 (MultiPatch)  nVertices=9, nParts=2
   Bounds:(       0.000,       0.000, 0)
       to (      10.000,      10.000, 10)
      (       0.000,       0.000, 10) TriangleFan
      (      10.000,       0.000, 10)
      (      10.000,      10.000, 10)
      (       0.000,      10.000, 10)
    + (       0.000,       0.000, 10) Ring
      (       0.000,      10.000, 10)
      (       0.000,      10.000, 0)
      (       0.000,       0.000, 0)
      (       0.000,       0.000, 10)

I have not done a complete analysis but it looks roughly plausible.

I can't comment on why this would not display properly in ArcScene.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Shapelib mailing list