Summary: | map crash when using keymap widget and no reference object in MAP file | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Bart van den Eijnden <bartvde@osgis.nl> |
Component: | Core | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | NEW | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
This is odd. Did you provide valid extents in your widget attributes? MapServer will automatically create a default reference object if the mapfile doesn't contain one. I suspect that you didn't provide extents in your widget and that caused the problem. The fix would be to test the extents of the reference object if extents are not provided as part of the widget definition. Unfortunately there is no way to do conditionally optional attributes (i.e. minx only required if extents not set in reference object) so it will have to be manually tested in the widget intialization and an appropriate error message emitted if the extents are -1 -1 -1 -1. Bart, are you willing to investigate a fix for this?
The extents were probably not valid since I just used the Chameleon sample applications and then my own MAP file for Netherlands RD system. I will try to investigate this.