[Gfoss] 3D shp

Markus Neteler neteler a osgeo.org
Mer 29 Ott 2008 10:43:08 CET


2008/10/29 Paolo Cavallini <cavallini a faunalia.it>:
> Salve.
> Qualcuno sa come si controlla se uno shp e' tridimensionale?
> ogrinfo non mi pare dica nulla in proposito.

Dovrebbe perņ (se i dati sono veramente 3D):

(per creare random3d_hull, vedi Example 2:
 http://grass.osgeo.org/grass64/manuals/html64_user/v.out.ogr.html )

GRASS 6.4.svn (latlong):~ > v.out.ogr random3d_hull \
      dsn=/tmp/random3d_hull.shp type=face lco="SHPT=POLYGONZ"
WARNING: No attribute table found -> using only category numbers as
         attributes
Exporting 64 faces (may take some time) ...
 100%
2080 features written


ogrinfo -so /tmp/random3d_hull.shp
INFO: Open of `/tmp/random3d_hull.shp'
      using driver `ESRI Shapefile' successful.
1: random3d_hull (3D Polygon)           <<<<<<<<<-------- !

ogrinfo -so /tmp/random3d_hull.shp random3d_hull
INFO: Open of `/tmp/random3d_hull.shp'
      using driver `ESRI Shapefile' successful.
Layer name: random3d_hull
Geometry: 3D Polygon                         <<<<<<<<<-------- !
Feature Count: 2080
Extent: (-78.682639, 35.732792) - (-78.674995, 35.739526)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_1984",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
cat: Real (11.0)

ciao,
Markus


Maggiori informazioni sulla lista Gfoss