Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Map CRS woes

Andrea Aime wrote:

Hi all,
today I'm wrestling a bit with map CRS.

First of all, I wonder why both image with wld file and maps default to the EPSG:4326 system. I mean, if the projection is not specified, why do you assume
coordinates are specified in lat/long?
This can lead to very strange results when images are not associated to a
projection file, but are yet projected (since the coordinates go far
beyond the lat/long ranges).
Why haven't you used DefaultEngineeringCRS.Generic2D which, as far as I rememember, was designed exactly for situations in which you don't know what CRS to use, and have good behaviour when mixing unknown data and data
with a project in the same map (see the Generic2D javadoc)?

Probably because we don't known about it, most of the data we find as "unknown" is actuall 4326 ... perhaps this is just different experiences? In anycase a preference page should be set up for this one, as some shops
run everything in a "well known" projection.

Second, when I create a map by using "add to new map" from the catalog, it
would be sensible if the map used the same crs as the chosen GeoResource,
should that GeoResource have one, shouldn't it?

Agreed, but thi


Finally, one curiosity. Why the map CRS is in the viewport instead of the map?
Did you wanted to support multiple viewports for each single map?

Yes. This will be more fun when we have the windows decorators mentioned earlier in the list.
Also from a "logical" viewpoint they are seperate concerns.

Jody



Back to the top