1

I have a raster with the projection:

+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 

I'm trying to insert a raster file into the postgis with a SRID 4326, but I don't know if it is right.

raster2pgsql -s <srid> -I -C -M <pathRaster> -F  -f rast public.rasterTable

How can I figure out the right SRID to every projection?

2

If you look it up at http://spatialreference.org, SR-ORG:7917 is suggested as an exact match and you also get an INSERT line to add it to the lookup table.

It won't say if there a relevant difference for your data, so you'll have to do some digging yourself. The change from 4326 is the +towgs parameter versus the +no_defs one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.