Skip to content

[Question] Styling OGR layer  #38

Description

@fmg-lydonchandra

Hi @szekerest how are you ?
Do you have an example map file to style OGR layer ?
Eg. if I open a DXF file in MapManager, how do I target and style the layer ?

  LAYER
    CONNECTION "dxf1.dxf"
    CONNECTIONTYPE OGR
    NAME "line"
    PROCESSING "GETSHAPE_STYLE_ITEMS=all"
    STATUS ON
    TEMPLATE "query.html"
    TILEITEM "location"
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "Class (0)"
      STYLE
        COLOR 0 0 0
        SIZE 8
      END # STYLE
      TEMPLATE "query.html"
    END # CLASS
    CLASS
      NAME "Class (1)"
      STYLE
        COLOR 0 0 0
      END # STYLE
    END # CLASS
  END # LAYER

ogrinfo output:

OGRFeature(entities):224
  Layer (String) = STOCKPILES
  SubClasses (String) = AcDbEntity:AcDbPolyline
  Linetype (String) = VULCAN_LINE_TYPE_1
  EntityHandle (String) = BFC
  Style = PEN(c:#ffbb00,w:0.3g,p:"0.024g 0.072g")
  LINESTRING Z (1 1 411,2 2 411,3 3 411,4 4  411)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions