Is there a way to specify the location of images in Mapnik xml files
using relative paths with respect to the xml file itself? I am
currently doing something like:

  <FileSource name="RoadPath">/path/to/roads</FileSource>

  <Style name="Interstate-Shield">
    <!-- level 6-->
    <Rule>
      <Filter>[ROUTE_TYPE] = '1'</Filter>
      <MaxScaleDenominator>8740000</MaxScaleDenominator>
      <ShieldSymbolizer name="HIGHWAY_NM" face_name="DejaVu Sans Bold"
size="8" fill="#ffffff" placement="line"
                        base="RoadPath" file="symbols/interstate.png" type="png"
                        avoid_edges="true" width="36" height="36"
min_distance="100"/>
    </Rule>
  </Style>

I would like to eliminate the need to have '/path/to/roads' hard coded
in the xml file so that I can move things from machine to machine
easily.

Thanks,
Aron
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to