Opened 15 years ago

Closed 15 years ago

#1307 closed defect (fixed)

FDO exception thrown up if clicking but no draging with SelectRadius

Reported by: liuar Owned by: liuar
Priority: low Milestone:
Component: AJAX Viewer Version: 2.1.0
Severity: trivial Keywords:
Cc: External ID: 1314787

Description

  1. open basic weblayout in chrome or safari
  2. right click in map -> select more -> radius
  3. click blank area in map


Result: alert exception appears to say 'an exception occured in FDO component'. 'FdoFgfLinearRing::Reset': Cannot execute function due to invalid value for the input parameter(s) 'positions'.

IE got the same exception but not displayed.

Change History (2)

comment:1 by liuar, 15 years ago

There will be a CURVEPOLYGON created when draging or clicking if the user chooses SelectRadius.

For draging, a valid CURVEPOLYGON will be create by the center and radius.
But for clicking, the radius will be 0 and the created CURVEPOLYGON will like:

CURVEPOLYGON ((7.629521563329069 19.93939991157145 (CIRCULARARCSEGMENT (9.193306642292184 18.375614832608335, 10.757091721255298 19.93939991157145), CIRCULARARCSEGMENT (9.193306642292184 21.503184990534564, 7.629521563329069 19.93939991157145))))


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.

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.

comment:2 by liuar, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in changeset [4772]

Note: See TracTickets for help on using tickets.