[mapguide][MG68][New] Undefined exception raised when doing coordinate system tran...

Walt Welton-Lair walt.welton-lair at autodesk.com
Mon Mar 6 15:10:50 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG68

Type
 Defect

Artifact ID
 MG68 (Undefined exception raised when doing coordinate system transformation)

Reported by
 Walt Welton-Lair
 waltweltonlair (walt.welton-lair at autodesk.com)

New artifact details:
---------------------------------------------------------

- Component set to new value
  Server
- Priority set to new value
  P2
- Version set to new value
  1.0.0
- Subcomponent set to new value
  Core
- Artifact Status set to new value
  New
- Artifact created
- Target milestone set to new value
  1.0.0
- Operating system set to new value
  Windows XP
- Description set to new value
  I have a world map from Bruce, and if you hover the mouse outside the valid coordinate system extent then the coordinate system component generates an exception when it tries to transform the point.  The exception is a regular C++ exception, and not one derived from MgException.  Consequently it's not picked up by our default exception handler.

- Defect Severity set to new value
  High
- Steps to Reproduce set to new value
  1/ Build a debug version of the server
2/ Extract the attached repository and point the server to it
3/ Run the server interactively in Visual Studio
4/ Open the "Defect 764323" map
5/ Hover somewhere over the top of the map

=> the server breaks with an exception

The exception gets raised in CoordSysTransform.cpp, line 570:

  //if proj failed to convert, generate an exception
  throw;

We simply need to change "throw" to something like:

  throw new CCoordinateSystemTransformFailedException(...);

- Platform set to new value
  Macintosh
- Summary set to new value
  Undefined exception raised when doing coordinate system transformation

---------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list