Thanks for your answer Nicolas.
Yes As far as I understand the solution you propose is actually a loooot of
work :)
As my X, Y attributes are stored in a polygon layer (parcels) i have to
build first a point layer from my X, Y attributes ? And a another  line
layer for angles.

In fact i would really like to minimize post-processing on the original
database :(

I see also that dx & dy parameters seem to be expressed in pixels ? I also
need to convert X,Y from map coordinates to pixels ? I won't be able to do
this operation with a simple XML config file?  right ?
 
Ludovic


Nicolas Gillet wrote:
> 
> Hello Ludovic.
> 
> TextSymbolizer can place a label pretty much everywhere from a point using
> the dx and dy parameters but indeed there is no angle parameter.
> 
> But if you really need such feature, you could create a new datasource
> from
> the one you have.
> With a point and an angle and a little bit of math you can create 2 points
> and make a linestring out of it. Then displaying your label on this
> linestring will give you the result you're searching.
> 
> This is probably a lot of work, but I don't have any better solution for
> now.
> 
> Nicolas  
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Lunieme
> Sent: Thursday, July 29, 2010 10:40 AM
> To: [email protected]
> Subject: [Mapnik-users] Problem rendering french cadastre : text / symbol
> placement
> 
> 
> Hi List,
> I'm looking for a way to render french cadastre (the national land
> registry
> with all parcels, streets, roads, names, building feet...) with Mapnik.
> 
> We are actually using Mapguide OS as rendering system but i'm convinced
> Mapnik could bring us many benefits even if the job is quite heavy.
> 
> I am now facing 2 problems with labels and points placement:
> 
> Each label placement is defined in national database as fields : X, Y
> position given in maps units and ANGLE given in degrees.
> 
> In the same way point placement is also defined with ANGLE field.
> 
> TextSymbolizer and PointSymbolizer do not seem to have a POSITION and
> ANGLE
> option. 
> Is there a solution? Would these options will be added in the near future.
> It could be a great improvement.
> 
> Ludovic
> 
> http://old.nabble.com/file/p29294250/17_7.png 
> -- 
> View this message in context:
> http://old.nabble.com/Problem-rendering-french-cadastre-%3A-text---symbol-pl
> acement-tp29294250p29294250.html
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-rendering-french-cadastre-%3A-text---symbol-placement-tp29294250p29296541.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.

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

Reply via email to