In theory you are right. But i have to pregenerate 150Go of tiles. This solution seems to cost much more processing if i want to keep one tile and also incresase numbers of servers to maintain. That is why I prefer not consider this option :)
Lê Viết Thanh wrote: > > Just a naive solution. > i would use Mapnik for main cartographic rendering and MapServer for > cadastral labeling.Then i would use mapproxy.org to combine 2 those maps > :) > > On Thu, Jul 29, 2010 at 11:24 PM, > <[email protected]>wrote: > >> Send Mapnik-users mailing list submissions to >> [email protected] >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.berlios.de/mailman/listinfo/mapnik-users >> or, via email, send a message with subject or body 'help' to >> [email protected] >> >> You can reach the person managing the list at >> [email protected] >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Mapnik-users digest..." >> >> >> Today's Topics: >> >> 1. Re: Problem rendering french cadastre : text / symbol >> placement (Nicolas Gillet - MARKET-IP) >> 2. Re: Mapnik-users Digest, Vol 48, Issue 25 (L? Vi?t Thanh) >> 3. Re: Problem rendering french cadastre : text / symbol >> placement (Lunieme) >> 4. Problem rendering french cadastre : text / symbol placement >> (Lunieme) >> 5. Re: Problem rendering french cadastre : text / symbol >> placement (Nicolas Gillet - MARKET-IP) >> 6. A simple mapnik map viewer in python (feverzsj) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Thu, 29 Jul 2010 14:47:00 +0200 >> From: "Nicolas Gillet - MARKET-IP" <[email protected]> >> To: <[email protected]> >> Subject: Re: [Mapnik-users] Problem rendering french cadastre : text / >> symbol placement >> Message-ID: <000001cb2f1c$232cf610$6986e2...@[email protected]> >> Content-Type: text/plain; charset="us-ascii" >> >> 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 >> >> >> >> ------------------------------ >> >> Message: 2 >> Date: Thu, 29 Jul 2010 20:40:26 +0700 >> From: L? Vi?t Thanh <[email protected]> >> To: [email protected] >> Subject: Re: [Mapnik-users] Mapnik-users Digest, Vol 48, Issue 25 >> Message-ID: >> >> <[email protected]<aanlktin%[email protected]> >> > >> Content-Type: text/plain; charset="iso-8859-1" >> >> i dont think mapnik has the feature as you want but MapServer can deal >> with >> that. Jut my 2cents. >> >> >> On Thu, Jul 29, 2010 at 5:00 PM, <[email protected] >> >wrote: >> >> > Send Mapnik-users mailing list submissions to >> > [email protected] >> > >> > To subscribe or unsubscribe via the World Wide Web, visit >> > https://lists.berlios.de/mailman/listinfo/mapnik-users >> > or, via email, send a message with subject or body 'help' to >> > [email protected] >> > >> > You can reach the person managing the list at >> > [email protected] >> > >> > When replying, please edit your Subject line so it is more specific >> > than "Re: Contents of Mapnik-users digest..." >> > >> > >> > Today's Topics: >> > >> > 1. Problem rendering french cadastre : text / symbol placement >> > (Lunieme) >> > >> > >> > ---------------------------------------------------------------------- >> > >> > Message: 1 >> > Date: Thu, 29 Jul 2010 01:39:34 -0700 (PDT) >> > From: Lunieme <[email protected]> >> > To: [email protected] >> > Subject: [Mapnik-users] Problem rendering french cadastre : text / >> > symbol placement >> > Message-ID: <[email protected]> >> > Content-Type: text/plain; charset=us-ascii >> > >> > >> > 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-placement-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 >> > >> > >> > End of Mapnik-users Digest, Vol 48, Issue 25 >> > ******************************************** >> > >> >> >> >> -- >> Thanh >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> https://lists.berlios.de/pipermail/mapnik-users/attachments/20100729/064da990/attachment-0001.html >> > >> >> ------------------------------ >> >> Message: 3 >> Date: Thu, 29 Jul 2010 06:43:24 -0700 (PDT) >> From: Lunieme <[email protected]> >> To: [email protected] >> Subject: Re: [Mapnik-users] Problem rendering french cadastre : text / >> symbol placement >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=us-ascii >> >> >> 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. >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Thu, 29 Jul 2010 07:01:59 -0700 (PDT) >> From: Lunieme <[email protected]> >> To: [email protected] >> Subject: [Mapnik-users] Problem rendering french cadastre : text / >> symbol placement >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=UTF-8 >> >> >> Thanks for your answer Thanh, >> I was afraid of this answer :) >> You're Probably right. This is exactly what propose Mapserver. >> But I was so happy to try a Mapserver's alternative. >> >> Ludovic >> >> >> >> >> L? Vi?t Thanh wrote: >> > >> > i dont think mapnik has the feature as you want but MapServer can deal >> > with >> > that. Jut my 2cents. >> > >> > >> > On Thu, Jul 29, 2010 at 5:00 PM, >> > <[email protected]>wrote: >> > >> >> Send Mapnik-users mailing list submissions to >> >> [email protected] >> >> >> >> To subscribe or unsubscribe via the World Wide Web, visit >> >> https://lists.berlios.de/mailman/listinfo/mapnik-users >> >> or, via email, send a message with subject or body 'help' to >> >> [email protected] >> >> >> >> You can reach the person managing the list at >> >> [email protected] >> >> >> >> When replying, please edit your Subject line so it is more specific >> >> than "Re: Contents of Mapnik-users digest..." >> >> >> >> >> >> Today's Topics: >> >> >> >> 1. Problem rendering french cadastre : text / symbol placement >> >> (Lunieme) >> >> >> >> >> >> ---------------------------------------------------------------------- >> >> >> >> Message: 1 >> >> Date: Thu, 29 Jul 2010 01:39:34 -0700 (PDT) >> >> From: Lunieme <[email protected]> >> >> To: [email protected] >> >> Subject: [Mapnik-users] Problem rendering french cadastre : text / >> >> symbol placement >> >> Message-ID: <[email protected]> >> >> Content-Type: text/plain; charset=us-ascii >> >> >> >> >> >> 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-placement-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 >> >> >> >> >> >> End of Mapnik-users Digest, Vol 48, Issue 25 >> >> ******************************************** >> >> >> > >> > >> > >> > -- >> > Thanh >> > >> > _______________________________________________ >> > Mapnik-users mailing list >> > [email protected] >> > https://lists.berlios.de/mailman/listinfo/mapnik-users >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Re%3A-Mapnik-users-Digest%2C-Vol-48%2C-Issue-25-tp29296533p29296718.html >> Sent from the Mapnik - Users mailing list archive at Nabble.com. >> >> >> >> ------------------------------ >> >> Message: 5 >> Date: Thu, 29 Jul 2010 17:40:41 +0200 >> From: "Nicolas Gillet - MARKET-IP" <[email protected]> >> To: <[email protected]> >> Subject: Re: [Mapnik-users] Problem rendering french cadastre : text / >> symbol placement >> Message-ID: <000601cb2f34$677f6c40$367e44...@[email protected]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hello, >> >> The X,Y you have can be directly used to display the names you want to >> but >> they will be horizontal. >> >> The point is that mapnik uses one geometry column for each layer. >> So either you can specify the geometry column in the config (it is >> possible >> with database as data source I think) and uses the same data source for >> two >> layers or you extract all those points + label in a new data source. >> You would have then 2 data source >> - One with your polygons, to draw your polygons >> - one with your XY points and labels to draw your labels horizontally >> >> If you want to go one step further instead of doing a data source of >> points, >> you make a data source of lines. >> With the X,Y you have and the angle, you compute two points and make a >> linestring out of it. >> (E.g : If I give you the center of a square and an angle of 45? you can >> create a line that actually is the diagonal of this square) >> You would finally have 2 data sources : >> - one with your polygon (like before) >> - one with linestrings + labels to draw your labels. >> >> Indeed both cases may require post-processing if you have to split your >> data >> sources into two. >> >> Nicolas >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Lunieme >> Sent: Thursday, July 29, 2010 3:43 PM >> To: [email protected] >> Subject: Re: [Mapnik-users] Problem rendering french cadastre : text / >> symbol placement >> >> >> 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-pl >> acement-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 >> >> >> >> ------------------------------ >> >> Message: 6 >> Date: Sat, 24 Jul 2010 00:02:57 +0800 >> From: feverzsj <[email protected]> >> To: [email protected] >> Subject: [Mapnik-users] A simple mapnik map viewer in python >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset="utf-8"; Format="flowed" >> >> hi, list >> I found that lots of people like me were eager for some ready-to-use >> stuff which can just view the map and make some on-the-fly modification >> to the map(like turn on/off or change the proj of layer/map) and see the >> result immediately. >> The c++ viewer in demo need to be complied and there are some external >> dependencies. Though, I complied it out, it just won't run for some >> unknown reason(I've post a related mail). Quantumnik requires QGIS and >> some python modules to be installed first. Since QGIS uses its own copy >> of python2.5, the module installation seems not simple as usual. >> Last week, I wrote a pyqt4 widget(MapnikWidget) that can view/zoom/pan >> the map with mouse, just simple enough. This week, I've made some >> modification to the widget.It is now able to build up a >> QStandardItemModel and optionally a QTreeView to display/modify the >> attributes of map and its layers. >> I've also written a MDI based pyqt4 program as a example(the viewer). >> There still may be some bugs. I've only tested it on win32 platform. >> >> mapnik map viewer features: >> 1. Open and view multiple mapnik maps in one MDI area. Drag to pan and >> wheel to zoom map. >> 2. A dockable widget shows a tree view of map's attributes of current >> activated subwindow in the MDI area. The value of blue name can be >> modified. For boolean values, '1'/'ture'/'on'(case-insensitive) are for >> True, any string else is for False. Click "update to map" to update the >> modification to the map immediately. >> 3. "zoom all" to zoom all the map of current activated subwindow. >> 4. "reload" to reload the map of current activated subwindow. This is >> convenient to view the map after you have finished editing the map xml >> in your favorite editor. >> >> I use: >> python2.6 >> mapnik0.71 >> PyQt-Py2.6-gpl-4.7.3-2 >> >> >> In the zip attachment: >> __init__.py : just empty >> MapnikWidget.py : the mapnik widget >> main_window.py : the viewer's mainwindow and entrance, run this >> script to show the viewer. >> Ui_main_window.py : compiled qt4 form >> main_window.ui : qt4 form file >> eric4proj.e4p : eric4 project of the viewer >> >> >> p.s. The nabble proxy of mapnik-devel seems broken. There is only on >> post there. Hope someone can fix that. Nabble is very convenient while >> outside. The mail-archive.com is blocked by the nation's fire wall. >> >> --Regards, zsj >> >> // >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: mapnik viewer.rar >> Type: application/octet-stream >> Size: 6857 bytes >> Desc: not available >> URL: < >> https://lists.berlios.de/pipermail/mapnik-users/attachments/20100724/cad23512/attachment.obj >> > >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: viewer.jpg >> Type: image/jpeg >> Size: 422103 bytes >> Desc: not available >> URL: < >> https://lists.berlios.de/pipermail/mapnik-users/attachments/20100724/cad23512/attachment.jpg >> > >> >> ------------------------------ >> >> _______________________________________________ >> Mapnik-users mailing list >> [email protected] >> https://lists.berlios.de/mailman/listinfo/mapnik-users >> >> >> End of Mapnik-users Digest, Vol 48, Issue 26 >> ******************************************** >> > > > > -- > Thanh > > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > > -- View this message in context: http://old.nabble.com/Re%3A-Mapnik-users-Digest%2C-Vol-48%2C-Issue-26-tp29298578p29303905.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

