Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1758 closed defect (fixed)

Selecting point features that have been styled using fonts a reprojected layer linked

Reported by: hubu Owned by: hubu
Priority: medium Milestone: 2.3
Component: Rendering Service Version: 2.2.0
Severity: trivial Keywords: Symbol
Cc: External ID: 1381956

Description

When styling point symbols using a font (or a simple symbol definition), and the layer is being reprojected, then clicking on the rendered symbol in the map does not select the feature unless the mouse is clicked exactly on the insertion point. Steps to reproduce:

  1. Create a layer that uses a point feature class (eg: trees sdf from Sheboygan sample data).
  2. Edit the layers point style to use Arial font symbol ‘a’ character. Choose something large like 1 centimetre in device space.
  3. Add the new layer to a new map.
  4. Change the co-ordinate system of the map to something different to that of the layer.
  5. Preview the map and attempt to select a feature by clicking on it with the standard select tool
  6. The feature is only selected if you click right in the centre. Click most places around the symbol does not select the feature.
  7. Try the same thing with the point styled using a SymbolDefinition

Attachments (1)

fix#1758 .patch (2.9 KB ) - added by hubu 13 years ago.
This is the fix for this ticket.

Download all attachments as: .zip

Change History (4)

by hubu, 13 years ago

Attachment: fix#1758 .patch added

This is the fix for this ticket.

comment:1 by hubu, 13 years ago

This is a CS transform issue. In the step#4, if we don't change the cs of the map, this issue will not happen. The reason of this issue is in renderingforselection() function, the map extent is not transformed to the cs of layer, there is not intersetion between the map extent and the selection point, because they are not in the same CS. And there is another issue, when stylizeVectorLayer, we also need a xformer, or else the LineBuffer and the selection point are not in the same CS.

comment:2 by hubu, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.