Opened 11 years ago
Last modified 7 years ago
#708 closed defect
CRS parameter for encode() function — at Initial Version
Reported by: | Piero Campalani | Owned by: | Piero Campalani |
---|---|---|---|
Priority: | major | Milestone: | 10.0 |
Component: | petascope | Version: | development |
Keywords: | crs encode | Cc: | |
Complexity: | Medium |
Description
Petascope should not pass the URI as crs
parameter of the [RasqlEncodeFunction encode] function of RasQL since only opengis ones are recognized.
I suggest that Petascope sets the crs
in EPSG:CODE format. Non-EPSG ones will not be embedded in the file anyway.
Alternatively Petascope would personally fetch the definition and translate it to PROJ4 or WKT format, and pass it on to the encode
function: this would be the ultimate solution to deliver proper CRS information for any CRS. This involves time CRS too.
$ rasql -q 'select encode( c, "GTiff", "xmin=111.975;ymin=-44.525;xmax=156.275;ymax=-8.975;crs=http://www.opengis.net/def/crs/EPSG/0/4326" ) from mean_summer_airtemp as c' --out file $ gdalinfo rasql_1.tif [...] Coordinate System is `' rasql -q 'select encode( c, "GTiff", "xmin=111.975;ymin=-44.525;xmax=156.275;ymax=-8.975;crs=http://www.opengis.net/def/crs/EPSG/0/4326" ) from mean_summer_airtemp as c' --out file $ gdalinfo rasql_1.tif Coordinate System is: [...] GEOGCS["WGS 84", [...]
Note:
See TracTickets
for help on using tickets.