Hi Ari,

> 
> How does one set the SRS of a new PostGIS layer (especially from the
> bindings)?

With the srs parameter of Dataset.CreateLayer()

> It does not seem to work with simply setting it with the
> workflow: get geometry field definition and call SetSpatialRef on it.

Once the geometry field is created, it is too late, and any attempt to modify 
it will have no effect on how it is serialized.

But if you call AddGeomFieldDefn() (for layers with multiple geometry columns) 
with a geometry field definition that has the SRS set, that should be used too 
to record it in the DB.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to