New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the PEN option of OGR FeatureStyle, support the options "p", "cap", "j", "l" #4982

Closed
aperi2007 opened this Issue Aug 31, 2014 · 1 comment

Comments

Projects
None yet
3 participants
@aperi2007

aperi2007 commented Aug 31, 2014

Try-ing this sample:

LAYER
    NAME "test_line"
    TYPE LINE
    STATUS OFF
    FEATURE
    WKT "LINESTRING(631215.0 4857617.0, 631250.0 4857617.0, 631619.0 4857650.0, 631634.0 4857800)"
    ITEMS 'PEN(c:#FF0000,w:2px,p:"10px 5px 4px 5px")'
    END #FEATURE
    METADATA
      "wms_title" "Test2"
      "ows_enable_request" "*"
    END
    PROJECTION
      "+init=epsg:25832 +towgs84=0,0,0,0,0,0,0"
    END
    PROCESSING "ITEMS=OGR_STYLE"
    LABELCACHE off
    MAXSCALEDENOM 6000000
    MINSCALEDENOM 1
    STYLEITEM "OGR_STYLE"
    CLASS
    END #CLASS
  END 

The result is not a line like this:

--------                 -----               -------------

but instead a solid line like this:

________________________________

Mapserver is capable to do a PATTERN, so this miss is due to lack of code in the STYLEITEM section.
Maserver don't recognize the "p" (from featurestyle) setting.

Also the Mapserver dont recognize the CAP, J, L option from PEN.

All these option should be feasible to support to help the STYLEITEM usability of MapServer.

@aperi2007 aperi2007 changed the title from Support the PEN option "w", "cap", "j", "l" from OGR FeatureStyle to In the PEN option of OGR FeatureStyle, support the options "w", "cap", "j", "l" Aug 31, 2014

@aperi2007 aperi2007 changed the title from In the PEN option of OGR FeatureStyle, support the options "w", "cap", "j", "l" to In the PEN option of OGR FeatureStyle, support the options "p", "cap", "j", "l" Sep 1, 2014

@rouault rouault self-assigned this Sep 30, 2014

rouault added a commit to rouault/mapserver that referenced this issue Oct 1, 2014

OGR style: support more options for Pen and Brush (mapserver#4982, ma…
…pserver#4983)

- For pen, support 'p' (pattern), 'cap', 'j' (join) and 'dp' (perpendicular offset)
- For brush, support 'a' (angle), 's' (size), 'dx'='dy' (gap)

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Oct 1, 2014

@rouault rouault added this to the 7.0 Release milestone Oct 1, 2014

@mapserver-bot

This comment has been minimized.

Show comment
Hide comment
@mapserver-bot

mapserver-bot Feb 23, 2016

This is an automated comment

This issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen with missing/relevant information if still valid.

Typically, issues fall in this state for one of the following reasons:

  • Hard, impossible or not enough information to reproduce
  • Missing test case
  • Lack of a champion with interest and/or funding to address the issue

mapserver-bot commented Feb 23, 2016

This is an automated comment

This issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen with missing/relevant information if still valid.

Typically, issues fall in this state for one of the following reasons:

  • Hard, impossible or not enough information to reproduce
  • Missing test case
  • Lack of a champion with interest and/or funding to address the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment