Opened 10 years ago

Closed 10 years ago

#2891 closed defect (fixed)

[raster]: raster2pgsql supports spatial ref transformation in 2.2 not documented

Reported by: robe Owned by: Bborie Park
Priority: medium Milestone: PostGIS 2.2.0
Component: raster Version: master
Keywords: Cc:

Description

I noticed the raster2pgsql command-line for 2.2 is different from 2.1 but our docs for 2.2 don't reflect. Is it true that in 2.2 we now support reprojection?

I see this in 2.1

RELEASE: 2.1.2 GDAL_VERSION=110 (r12389)
USAGE: raster2pgsql [<options>] <raster>[ <raster>[ ...]] [[<schema>.]<table>]
  Multiple rasters can also be specified using wildcards (*,?).

OPTIONS:
  -s <srid> Set the raster's SRID. Defaults to 0. If SRID not
      provided or is 0, raster's metadata will be checked to
      determine an appropriate SRID.

But my 2.2 says this

RELEASE: 2.2.0dev GDAL_VERSION=111 (r12856)
USAGE: raster2pgsql [<options>] <raster>[ <raster>[ ...]] [[<schema>.]<table>]
  Multiple rasters can also be specified using wildcards (*,?).

OPTIONS:
  -s [<from>:]<srid> Set the SRID field. Defaults to 0.
     Optionally reprojects from given SRID (cannot be used with -Y).
     Raster's metadata will be checked to determine an appropriate SRID.
     If a srid of 0 is provided (either as from or as target).

Change History (3)

comment:1 by Bborie Park, 10 years ago

No. I do not believe we support reprojection in 2.2. That was me getting a bit ahead of myself.

I'll remove that shortly.

comment:2 by Bborie Park, 10 years ago

Now that I look at it a little more, the transform is there… but it isn't very good. I'm changing to help to the old instruction for "-s"

comment:3 by Bborie Park, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in r12882 for trunk.

Note: See TracTickets for help on using tickets.