Simone Giannecchini a écrit :
In the getmap request, if I am right, the envelope is lon-lat
regardless the crs. This means that if I request a map with SRS
epsg:4326 we receive a bbox with lon first but we should internally
handle with lat first.
If I'm understanding right, the WMS specification always put longitude
first. But I was at the OGC meeting last September, and the CRS working
group insisted loudly that the WMS specification is wrong in this
regards, and the official order should really be (latitude,longitude). I
don't know how they plan to do that.
The confusion exists in the EPSG factories too. In Geotools, epsg-wkt
always use (longitude,latitude) order as in WMS usage, while epsg-hsql,
epsg-access and epsg-postgresql use the official (latitude,longitude)
order. However, this confusion is not particular to Geotools. In the OGC
meeting, it has been reported that (longitude,latitude) and
(latitude,longitude) orders are found in different products for the same
EPSG code.
In Geotools 2.2, the following class has been added as a partial attempt
to adress this problem:
org.geotools.referencing.factory.OrderedAxisAuthorityFactory
This class creates CRS using an arbitrary factory (e.g. epsg-hsql) and
reorder axis in (longitude,latitude) order before to returns it to the
user. This provided as an attempt to bring epsg-hsql to users expecting
the same axis order than epsg-wkt.
Despite of this in RenderUtilities the worldToScreenTransform assumes
that the crs is always lon,lat, is this an error or it is stupid me?
I have not yet looked at RenderUtilities, but if it assumes that CRS is
always (longitude,latitude), than I think that RendererUtilities would
need to be improved. A good renderer should always work with arbitrary
axis order for every operations.
Martin.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel