[gdal-dev] Impossible to read wkbLineString25D geometry extent

Even Rouault even.rouault at spatialys.com
Thu Jan 14 14:59:02 PST 2016


Le jeudi 14 janvier 2016 23:33:10, aborruso a écrit :
> Hi,
> I have this CSV file:
> WKT,id
> "LINESTRINGZ (345033.07756361004 4221015.5546970163 50,330734.94084110629
> 4207332.313714385 50,331946.96878985036 4199477.8127947021
> 50,344424.26383262046 4197025.7027728558 50,351619.95001382299
> 4206318.4892121488 50,356988.82880540413 4212298.2940350361
> 50,354468.15432001976 4216289.6423741328 50,350024.21689256333
> 4219101.5936986133 50)",1

Use LINESTRING Z (with a space). I don't think LINESTRINGZ is valid WKT.

> 
> And this virtual file:
> <OGRVRTDataSource>
>     <OGRVRTLayer name="toto">
>        <SrcDataSource>toto.csv</SrcDataSource>
>       <GeometryType>wkbLineString25D</GeometryType>
>  <LayerSRS>PROJCS["WGS 84 / UTM zone 33N",GEOGCS["WGS
> 84",DATUM["WGS_1984",SPHEROID["WGS
> 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"
> ]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.017453292
> 5199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Tra
> nsverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_mer
> idian",15],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",50000
> 0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],A
> XIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32633"]]</Laye
> rSRS> <GeometryField encoding="WKT" field='WKT' > </GeometryField >
>      </OGRVRTLayer>
> </OGRVRTDataSource>
> 
> When I run "ogrinfo myfile.vrt toto", I have no extent in the output. Is it
> normal?
> 
> Thank you,
> 
> andy
> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Impossible-to-read-wkbLineString25D-ge
> ometry-extent-tp5245452.html Sent from the GDAL - Dev mailing list archive
> at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list