#3095 closed defect (invalid)
raster2pgsql ignores srid, outdb empty
Reported by: | martinl | Owned by: | dustymugs |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.7 |
Component: | raster | Version: | 2.1.x |
Keywords: | raster2pgsql | Cc: |
Description
I have imported GeoTIFF (1) to PostGIS as
IN-DB
raster2pgsql -s 5514 -Y dmt.tif ukol_1.dmt | psql pokusnik 2>err
and OUT-DB
raster2pgsql -s 5514 -R `pwd`/dmt.tif ukol_1.dmt_link | psql pokusnik 2>err
Two issues confuses me:
SELECT r_table_schema,r_table_name,srid,out_db FROM raster_columns; r_table_schema | r_table_name | srid | out_db ----------------+--------------+------+-------- ukol_1 | dmt | 0 | ukol_1 | dmt_link | 0 |
srid
is 0 even I entered-s 5514
(this code exists inspatial_ref_sys
)
out_db
is empty in both cases
Change History (2)
follow-up: 2 comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Replying to robe:
You need to add the -C to your load to make that populate right.
oh, it really hidden and confusing. I would expect opposite behaviour, create constraints by default, optionally could be switched off by flag.
Thanks for quick answer. Martin
Note:
See TracTickets
for help on using tickets.
You are reading raster_columns table. That gets populated by constraints.
You need to add the -C to your load to make that populate right.
If you just want to confirm your srid is set do
Please post future questions like this not to our bug tracker, but to users mailing list
http://lists.osgeo.org/mailman/listinfo/postgis-users