Ticket #2808 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

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: dmorissette, 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

bug2808.patch Download (0.6 KB) - added by aboudreault 3 years ago.

Change History

Changed 3 years ago by aboudreault

Changed 3 years ago by aboudreault

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

Changed 3 years ago by warmerdam

  • status changed from new to closed
  • component changed from default to OGR_SF
  • version changed from unspecified to 1.6.0
  • milestone set to 1.6.1
  • keywords OGR SQL added
  • resolution set to fixed

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.