[gdal-dev] Create a new shapefile using ogr utilities
Jukka Rahkonen
jukka.rahkonen at maanmittauslaitos.fi
Mon Jul 25 14:04:09 PDT 2016
Andrea Peri <aperi2007 <at> gmail.com> writes:
>
> Hi,
> is possible create a new empty shapefile using the ogr utilities.
>
> I search and try using ogrinfo and a sql like "create table ..." but
> without any success.
ogr2ogr -f "ESRI Shapefile" -dialect sqlite -sql "select geometry
from foo where 1=2" emptypoint.shp foo.shp -nlt point
Requires foo.shp to exist so not perfect.
-Jukka Rahkonen-
More information about the gdal-dev
mailing list