|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
MarkersSymbolizer in the wrong directionHello,
I am looking for some information about the way markersSymbolizer is working because my current trials are leading to mistakes. For instance on a North-South highway, arrows drawn by markersSymbolizer are pointing down on both lanes and of course I should have one pointing down and the other one pointing up. Am I right thinking that symbolizer draws the blue arrow according to the direction the geometry has been coded ? Example : A = LINESTRING(1 1, 2 1, 3 1) B = LINESTRING(1 0, 2 0, 3 0) A and B will render arrow in the same direction right ? And if I want B in the other direction, I must revert the order (3 0, 2 0, 1 0) ? What are my options to render direction of trafic flow if my only way to know it is another field of the record ? Thank you Nicolas. |
|
|
Re: MarkersSymbolizer in the wrong directionHi Nicolas,
I don't know the marker symbolizer, but: On Tue, 6 Oct 2009, Nicolas Gillet wrote: > What are my options to render direction of trafic flow if my only way to > know it is another field of the record ? If your data is in a PostGIS db (maybe also possible with some library knowing Simple Features?), you can use the SQL query to reverse a way using ST_Reverse on the fly, depending on the value of the other column. Holger _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
|
|
Re: MarkersSymbolizer in the wrong directionHello,
Thank you for your answer. I imported the shape into postgis and updated it's geometry with the st_reverse before to re-export as shape. I didn't know that such a function exists. Now it looks good so I guess that I'm right thinking that the markers symbolizer is using the way the geometry is encoded to draw the blue arrow on road element. Thank you again Nicolas.
|
|
|
Re: MarkersSymbolizer in the wrong directionNicolas,
Feel free to add what you've learned to: http://trac.mapnik.org/wiki/MarkersSymbolizer Dane On Oct 6, 2009, at 8:32 AM, Nicolas Gillet wrote: > > Hello, > > Thank you for your answer. > > I imported the shape into postgis and updated it's geometry with the > st_reverse before to re-export as shape. > I didn't know that such a function exists. > > Now it looks good so I guess that I'm right thinking that the markers > symbolizer is using the way the geometry is encoded to draw the blue > arrow > on road element. > > Thank you again > > Nicolas. > > > Holger Schöner wrote: >> >> Hi Nicolas, >> >> I don't know the marker symbolizer, but: >> >> On Tue, 6 Oct 2009, Nicolas Gillet wrote: >>> What are my options to render direction of trafic flow if my only >>> way to >>> know it is another field of the record ? >> >> If your data is in a PostGIS db (maybe also possible with some >> library >> knowing Simple Features?), you can use the SQL query to reverse a way >> using >> ST_Reverse on the fly, depending on the value of the other column. >> >> Holger >> _______________________________________________ >> Mapnik-users mailing list >> Mapnik-users@... >> https://lists.berlios.de/mailman/listinfo/mapnik-users >> >> > > -- > View this message in context: http://www.nabble.com/MarkersSymbolizer-in-the-wrong-direction-tp25769059p25771055.html > Sent from the Mapnik - Users mailing list archive at Nabble.com. > > _______________________________________________ > Mapnik-users mailing list > Mapnik-users@... > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
| Free embeddable forum powered by Nabble | Forum Help |