Prefer CRS from geotools EPSG DB or use the WKT Definition from the DB
----------------------------------------------------------------------
Key: GEOT-2227
URL: http://jira.codehaus.org/browse/GEOT-2227
Project: GeoTools
Issue Type: Improvement
Components: data jdbc-ng
Affects Versions: 2.5.3, 2.6-M0
Reporter: Christian Mueller
Fix For: 2.5.3, 2.6-M0
The dialect has a method createCRS which returns the CRS for a given
dbattribute/dbtable.
If I can retrieve the following information
1) Authority and Identifier
2) the wkt definition
there are 2 possibilities to create the CRS.
a) CRS.decode(authority:identifier)
b) CRS.parse(wktdefinition)
Which one is the preferred method ?
Writing the imagemoasic-jdbc plugin I had the problem that the db2 wkt
definitions differ from the wkt definition used by geotools for the same epsg
id.
(e. g. one of them has a TOWGS84 property)
This fact caused unwanted image reprojections. I resolved this problem with a
config parameter specifying the geotools crs to use.
I think we should do it the following way
1) Try possibility a
2) In case of no result, try possiblity b
3) In case of no result, give up and return null
opinions ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel