Opened 16 years ago

Closed 15 years ago

#652 closed enhancement (wontfix)

Maestro: Warn user when adding a raster layer to a map with a different coordinate system

Reported by: jbirch Owned by: ksgeograf
Priority: medium Milestone:
Component: Maestro Version:
Severity: minor Keywords:
Cc: External ID:

Description

Currently, when adding a raster layer to a map that does not have a matching coordinate system, the layer rendering will fail with an exception logged on the server. In the future (post RFC 51) these layers will work, but with a performance penalty.

Given the impact of adding a raster with a mismatched coordinate system to a map, it would be useful if Maestro could test the coordinate system of the map against the coordinate system(s) / overrides of raster layers, and warn the user when they differ. I believe that this would have to be applied against the GDAL provider, the Autodesk Raster provider, and possibly the WMS provider.

Change History (3)

comment:1 by tomfukushima, 16 years ago

Good idea. And yes, those are the providers that we know aobut that will need to be checked. However, it should be possible to check if the feature class is a "raster" class (ie, Layer is a GridLayerDefinition) and then display the warning for that. This will allow us to catch things like Oracle rasters or raster providers that we don't currently know about which may be added in the future.

comment:2 by ksgeograf, 16 years ago

Status: newassigned

Yes. Nice idea. It is indeed possible to detect if the layer is a raster. There will be a small overhead when adding the layer, due to a call to "DescribeSchema" for getting the coordinate system.

I will also add a check to see if the extent reported by the provider is the (-1000000,-1000000,1000000,1000000) extent, which is sometimes a masked error, and in any case, not likely to be a valid bound.

comment:3 by ksgeograf, 15 years ago

Resolution: wontfix
Status: assignedclosed

I have added the resource validator which will inform the user of coordinate system issues, so I won't implement this.

Feel free to discuss if you disagree.

Note: See TracTickets for help on using tickets.