Skip to content

line symbolizer offset #525

@BHare1985

Description

@BHare1985

I need this feature: mapnik/mapnik#180 but didn't see any documentation on how to use it, and where/if its exposed in node-mapnik at all.

I have two geometries that represent each direction of a road. I need to pick one direction to be one offset and the other offset in the opposite direction (Which offset it gets I hope I can specify with mapnik xml using an attribute of the geometry). Not only that but to aide in visuals I would like the offsets to be dynamically changing with zoom level.

That is, when zoomed in the offset is much closer. When zoomed out the offset is much further away. We currently have this feature with ArcGIS Server so we know its a useful thing, just not sure if Mapnik, or specifically node-mapnik has something that can support this?

Work arounds is using our SQL Server to do the offset of the geometries one time and resave the WKB with the new offsets and then just deal with not having different offsets for different zooms. Sadly SQL Server doesnt have a function that makes offsetting lines easy, unlike PostGIS which has ST_OffsetCurve

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