Tag Info

Hot answers tagged

3

Assuming you have an older version of GDAL/OGR, you can use OGR SQL to cast the geom field to a geometry. For example: ogr2ogr -f "ESRI Shapefile" "sample.shp" "geo.csv" -sql "SELECT *, CAST(geom as geometry) FROM geo" This will create a new shapefile using the WKT data as the geometry. You can use the same query with ogrinfo as well: ogrinfo -ro -sql ...


1

There is no projection problem here Shapely uses a cartesian plane system for computing geometries and the result is an unary_union of the original geometry (without any reprojection: "Shapely does not support coordinate system transformations. All operations on two or more features presume that the features exist in the same Cartesian plane", Shapely ...


1

There has been a lot of trouble with +omerc, +gamma and +no_uoff parameters in PROJ.4 and GDAL. Latest tickets are https://trac.osgeo.org/gdal/ticket/4910 https://trac.osgeo.org/gdal/ticket/5511 https://trac.osgeo.org/proj/ticket/114 I'm not sure if your GDAL and fiona versions are working with the latest releases of PROJ and GDAL. It seems that at ...


1

this may be old - and i'm likely way off base, but pretty sure i did this a few days ago with OGR to create a shapefile larger than 2Gigs (by checking memory usage during writing, it never seemed to exceed about 40 megs). so, it would be something like: drv = ogr.GetDriverByName('ESRI Shapefile') ds = drv.CreateDataSource('myshapefile.shp') lyr = ...



Only top voted, non community-wiki answers of a minimum length are eligible