Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ?
Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) <david.fawc...@state.mn.us>wrote: > Wim, > > > > If you don’t want me to tell you, you will likely want to look at the > mapfile documentation at: http://mapserver.org/mapfile/style.html > > > > [Spoiler Alert] > > You can’t use values from an attribute table to set the value of this > property > > [/Spoiler Alert] > > > > David. > > *From:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Wim Vanbelle > *Sent:* Thursday, August 12, 2010 5:48 AM > > *To:* mapserver-users@lists.osgeo.org > *Subject:* [mapserver-users] Offset values from database > > > > Hi, > > I'm trying to load offset X, Y data from the postgis database. > > Each feature has an offset value defined there. > > My mapfile (relevant part) looks like this: > > In the layer: > DATA "geom_mercator from map_links using > unique Id using SRID=900913" > > STYLE > WIDTH 6 > COLOR 0 255 0 > ANTIALIAS TRUE > ANGLE AUTO > OFFSET [offsetX] [offsetY] > END > > Please don't tell me the offsetX, Y values cannot be read from the > database. That would be a huge issue for me. > > Thank you for your time. > > Best regards >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users