Opened 8 years ago

Last modified 8 years ago

#3738 closed defect

Using -s and -R together in raster2pgsql transforms raster data instead of setting srid — at Version 2

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 2.3.3
Component: raster Version: 2.3.x
Keywords: Cc:

Description (last modified by robe)

I haven't tested this myself, but on postgis users list, two people mentioned this behavior:

https://lists.osgeo.org/pipermail/postgis-users/2017-April/042020.html

2017-04-11 14:25 GMT+02:00 Tumasgiu Rossini <rossini.t at gmail.com>:

> Hi,
>
> I think I found the probelm, it is the -s option which make the sql
> applying a st_transfrom on the raster to reproject it into the desired CRS
> before inserting it in the table, thus creating an in-db raster.
>

As Pierre noted, best thing to do is use the same reprojection syntax and shp2pgsql -s from_srid:to_srid (this might work already) have to test. and forbit transform with out-db. Since there is no point if its going to end up being in-db.

https://lists.osgeo.org/pipermail/postgis-users/2017-April/042050.html

Change History (2)

comment:1 by robe, 8 years ago

Summary: Using -s and -R together transforms raster data instead of setting sridUsing -s and -R together in raster2pgsql transforms raster data instead of setting srid

comment:2 by robe, 8 years ago

Description: modified (diff)
Owner: changed from Bborie Park to robe
Note: See TracTickets for help on using tickets.