[Gfoss] e' un shape file valido?

Bud P. Bruegger bud a comune.grosseto.it
Mer 16 Gen 2008 13:45:40 CET


Ciao a tutti,

Penso che cmf2shp abbia un problema dove poligoni hanno buchi.   Chiedo
aiuto per capire se il file sia valido come poligono con un bucho.  Un
sempio minimo e' allegato.  Avete idea che e' andato storto?

Ho seguito la ricetta di Thuban per creare shapes con buchi da python 
http://wald.intevation.org/plugins/scmsvn/viewcvs.php/branches/WIP-pyshapelib-Unicode/thuban/libraries/pyshapelib/pytest.py?rev=2799&root=thuban&view=markup

In qGIS si vede il confine del buco ma non sembra un buco ma penso di
aver testato nel passato con ArcMap dove si vede il bucho..

shp2postgres lo traduce in un Multipolygon con due parti senza bucho:
 
"MULTIPOLYGON(((1663684.82 4729154.48,1663709.67 4729173.43,1663713.46
4729176.02,1663719.02 4729181.8,1663725.42 4729187.79,1663730.93
4729193.35,1663734.98 4729197.02,1663757.91 4729170.52,1663784.31
4729142.92,1663767.38 4729135.55,1663754.72 4729128.86,1663750.7
4729122.62,1663747.59 4729117.38,1663735.58 4729105.79,1663712.11
4729083.15,1663684.82 4729154.48)),((1663717.76 4729094.6,1663716.96
4729090.92,1663711.02 4729092.16,1663711.79 4729095.97,1663717.76
4729094.6)))"

e shpdump dice:

$ shapelib-winbin-1.2.9/shpdump testOut2/GB-TEST.shp
Shapefile Type: Polygon   # of Shapes: 1

File Bounds: ( 1663684.820, 4729083.150,0,0)
         to  ( 1663784.310, 4729197.020,0,0)

Shape:0 (Polygon)  nVertices=21, nParts=2
  Bounds:( 1663684.820, 4729083.150, 0, 0)
      to ( 1663784.310, 4729197.020, 0, 0)
     ( 1663684.820, 4729154.480, 0, 0) Ring
     ( 1663709.670, 4729173.430, 0, 0)
     ( 1663713.460, 4729176.020, 0, 0)
     ( 1663719.020, 4729181.800, 0, 0)
     ( 1663725.420, 4729187.790, 0, 0)
     ( 1663730.930, 4729193.350, 0, 0)
     ( 1663734.980, 4729197.020, 0, 0)
     ( 1663757.910, 4729170.520, 0, 0)
     ( 1663784.310, 4729142.920, 0, 0)
     ( 1663767.380, 4729135.550, 0, 0)
     ( 1663754.720, 4729128.860, 0, 0)
     ( 1663750.700, 4729122.620, 0, 0)
     ( 1663747.590, 4729117.380, 0, 0)
     ( 1663735.580, 4729105.790, 0, 0)
     ( 1663712.110, 4729083.150, 0, 0)
     ( 1663684.820, 4729154.480, 0, 0)
   + ( 1663717.760, 4729094.600, 0, 0) Ring
     ( 1663716.960, 4729090.920, 0, 0)
     ( 1663711.020, 4729092.160, 0, 0)
     ( 1663711.790, 4729095.970, 0, 0)
     ( 1663717.760, 4729094.600, 0, 0)

-- 
Bud P. Bruegger, Ph.D.          +39-0564-488577 (voice),  -21139 (fax) 
   European Chair, Global Collaboration Forum on eID
   Chair, Porvoo Subgroup on collab. govs/operating systems
   Leader of the Permanent eID Status Observatory (PESO) project
Servizio Elaborazione Dati       e-mail:  bud at comune.grosseto.it
Comune di Grosseto               jabber:  bud at jabber.no
Via Ginori, 43                   http://www.comune.grosseto.it/
58100 Grosseto (Tuscany, Italy)
http://www.comune.grosseto.it/interopEID/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tgz
Type: application/x-gtar
Size: 607 bytes
Desc: not available
Url : http://www.faunalia.com/pipermail/gfoss/attachments/20080116/97db2ddf/attachment.tgz 


Maggiori informazioni sulla lista Gfoss