[mapguide-trac] #1307: FDO exception thrown up if clicking but
no draging with SelectRadius
MapGuide Open Source
trac_mapguide at osgeo.org
Tue Apr 6 22:37:20 EDT 2010
#1307: FDO exception thrown up if clicking but no draging with SelectRadius
-------------------------+--------------------------------------------------
Reporter: liuar | Owner: liuar
Type: defect | Status: new
Priority: low | Milestone:
Component: AJAX Viewer | Version: 2.1.0
Severity: trivial | Resolution:
Keywords: | External_id: 1314787
-------------------------+--------------------------------------------------
Comment (by liuar):
There will be a CURVEPOLYGON created when draging or clicking if the user
chooses SelectRadius.[[BR]]
[[BR]]
For draging, a valid CURVEPOLYGON will be create by the center and
radius.[[BR]]
But for clicking, the radius will be 0 and the created CURVEPOLYGON will
like:
[[BR]]
{{{
CURVEPOLYGON ((7.629521563329069 19.93939991157145 (CIRCULARARCSEGMENT
(9.193306642292184 18.375614832608335, 10.757091721255298
19.93939991157145), CIRCULARARCSEGMENT (9.193306642292184
21.503184990534564, 7.629521563329069 19.93939991157145))))
}}}
[[BR]]
which is not a valid CURVEPOLYGON. That's why there's an exception thrown
up. IE has the same problem but the exception is not displayed to
user.[[BR]]
[[BR]]
To resolve this problem, we can try to validate the value of the radius
before creating the CURVEPOLYGON. If the value equals to 0, just return.
--
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1307#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list