[gdal-dev] PG: does OGR2OGR set the SRID correctly ?

Sebastian E. Ovide sebastian.ovide at gmail.com
Tue Nov 30 05:30:15 EST 2010


Hi All,

I've just uploaded a shape with

ogr2ogr -f PostgreSQL "PG:dbname='gis' host='10.0.1.40' port='5432'
user='gis' password='gis'"  sebas.shp -lco 27700 -lco PRECISION=NO -progress
-lco OVERWRITE=yes -lco dim=2 -nln sebas -overwrite

but from

select ST_SRID(wkb_geometry) from sebas;

I'm getting 3

(with

select ST_SRID(ST_SetSRID(wkb_geometry,27700)) from sebas;

I'm getting the right value )

any ideas ?



-- 
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101130/5a9da694/attachment.html


More information about the gdal-dev mailing list