Opened 15 years ago

Closed 15 years ago

#2808 closed enhancement (fixed)

Generic SQL doesn't support feature styles

Reported by: aboudreault Owned by: aboudreault
Priority: normal Milestone: 1.6.1
Component: OGR_SF Version: 1.6.0
Severity: normal Keywords: OGR SQL
Cc: Daniel Morissette, warmerdam

Description

Currently, when we use a sql statement to get a set of features, styles cannot be handled because they are discarded. There is only the geometry that is copied. It could be useful to copy the styles of features also, especially in this case (in a MapServer mapfile, using STYLEITEM and DATA):

  LAYER
    # ....
    DATA "SELECT ID_PAYS,NOM_DE_PAYS,AVANCEMENT FROM Pays"
    STYLEITEM "AUTO"
    # ...
  END

See related ticket for more info: MapServer Ticket 2733

Attachments (1)

bug2808.patch (584 bytes ) - added by aboudreault 15 years ago.

Download all attachments as: .zip

Change History (3)

by aboudreault, 15 years ago

Attachment: bug2808.patch added

comment:1 by aboudreault, 15 years ago

I've attached the small patch. It simply copy the StyleString of the feature like the geometry.

comment:2 by warmerdam, 15 years ago

Component: defaultOGR_SF
Keywords: OGR SQL added
Milestone: 1.6.1
Resolution: fixed
Status: newclosed
Version: unspecified1.6.0

I have applied the patch in trunk (r16194) and 1.6 (r16195). I have also added a test in the test suite (r16193).

Thanks,

Note: See TracTickets for help on using tickets.