From bh at intevation.de Thu Mar 1 16:19:52 2001 From: bh at intevation.de (Bernhard Herzog) Date: 01 Mar 2001 16:19:52 +0100 Subject: [Mapit] Creating tiles from raster and vector graphics Message-ID: <6qwva97bzb.fsf@abnoba.intevation.de> Just a quick note for everybody who wants to adapt existing vector or raster graphics for MapIt!. MapIt! comes with a script called epscut that reads an EPS file and renders a complete tile hierarchy from it using ghostscript. The script is not very polished because I wrote it as a quick hack to create the Europe example tileset. Basic usage: src/tools/epscut map.eps This will create the tile hierarchy in a subdirectory called map, complete with the info files. What zoom factors will be available and the tile size is hardcoded in one place in the script (patches to make this more flexible welcome :)), in lines 189 and 190. overview_size is the size of the overview tile, while factors is a tuple containing the zoom factors to use. The script can be used to cut raster images into tiles as well, by converting it to eps (e.g. with ImageMagick's convert) and, for optimal quality, choosing overview size as a divisor of the raster image's size in pixels and setting factors to (1, f) where f is the quotient of the image size and the overview size. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/ From stephan.krauss at geyer.kabeljournal.de Wed Mar 7 09:29:04 2001 From: stephan.krauss at geyer.kabeljournal.de (Stephan =?iso-8859-1?Q?Krau=DF?=) Date: Wed, 07 Mar 2001 09:29:04 +0100 Subject: [Mapit] =?iso-8859-1?Q?M=F6glichkeiten?= von MapIt Message-ID: <3AA5F150.9A44165@geyer.kabeljournal.de> Hallo Freunde ! Wir sind momentan am erstellen eines interaktiven Stadtplanes f?r die Bergstadt Geyer. Ein erster Prototyp des Stadtplanes wird am Montag ( 12.03.2001 ) unter "www.stadt-geyer.de" zu finden sein. Ich denke, da? dieses Produkt f?r einen ersten Versuch nicht schlecht ist. An dieser Stelle ein Dankesch?n an die Intevation GmbH f?r die schnelle Hilfe. In einer zweiten Stufe werden wir die Funktionalit?t von MapIt verbessern. Besonders folgende Punkte stehen dabei im Vordergrund. * Ausbau der von uns geschaffenen Datenbankanbindung * Herausl?sung einer einzelnen Zoomstufe in Form einer groben ?bersichtskarte * Trennung der Darstellung von Gruppen und der jeweiligen Gruppenelemente in 2 Men?s * Ver?nderung des Zoomverhalten * Aufbau einer Benutzerfunktionalit?t wie sie in "www.inpethomap.de" Beispiel Stadtplan Cottbus dargestellt ist. Dazu noch einige Anmerkungen. Wenn jemand einen Stadtplan / Landkarte ben?tigt so kann ich kosteng?nstig helfen. Bitte richtet eure Anfrage an "Vermessung at Datenstore.de". Ich vermisse eine Liste in der Provider aufgef?hrt sind die MapIt ( Python ) unterst?tzen. Wir konnten das Problem umgehen, da wir ?ber eigene Server verf?gen. Kann mir jemand helfen bez?glich der Zoomfunktionalit?t vom MapIt? Wir wollen, da? mit dem klicken in die dargestellte Karte in die n?chste niedere Zoomstufe gezoomt wird. Gibt es in MapIt dazu schon einen L?sungsansatz. m.f.G. Stephan Krau? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/mapit/attachments/20010307/40ef1ada/attachment.html From bernhard at intevation.de Thu Mar 8 23:37:11 2001 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 8 Mar 2001 23:37:11 +0100 Subject: [Mapit] Re: =?iso-8859-1?Q?=5BMapit=5D_M=F6glichkeiten_von_MapIt?= In-Reply-To: <3AA5F150.9A44165@geyer.kabeljournal.de>; from stephan.krauss@geyer.kabeljournal.de on Wed, Mar 07, 2001 at 09:29:04AM +0100 References: <3AA5F150.9A44165@geyer.kabeljournal.de> Message-ID: <20010308233711.E3474@abnoba.intevation.de> Hallo! English Summary: Stephan will set up a prototyp city map of Geyer soon. He also plans to improve MapIt! in respect of a database connectivity and zooming when clicked in the map. On Wed, Mar 07, 2001 at 09:29:04AM +0100, Stephan Krau? wrote: > Wir sind momentan am erstellen eines interaktiven Stadtplanes f?r > die Bergstadt Geyer. Ein erster Prototyp des Stadtplanes wird am > Montag ( 12.03.2001 ) unter "www.stadt-geyer.de" zu finden sein. Wunderbar. > An dieser Stelle ein Dankesch?n an die Intevation GmbH f?r die > schnelle Hilfe. Dank geb?hrt auch der Logiball GmbH, welche die Entwicklung und bisherige Betreuung von MapIt! finanziert hat. > In einer zweiten Stufe werden wir die Funktionalit?t von MapIt > verbessern. Das ist erfreulich. Wir sind gespannt auf die Verbesserungen. > Kann mir jemand helfen bez?glich der Zoomfunktionalit?t vom MapIt? > Wir wollen, da? mit dem klicken in die dargestellte Karte in die n?chste > niedere Zoomstufe > gezoomt wird. Gibt es in MapIt dazu schon einen L?sungsansatz. In base/pagetemplate.py in der Funktion: handle_mapimage() m?ssen nur die richtigen URLs f?r den anderen Massstab berechnet werden. Bernhard -- Professional Service around Free Software (intevation.net) The FreeGIS Project (freegis.org) Association for a Free Informational Infrastructure (ffii.org) FSF Europe (fsfeurope.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available Url : http://www.intevation.de/pipermail/mapit/attachments/20010308/bbbda36c/attachment.bin From bernhard at intevation.de Thu Mar 8 23:44:02 2001 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 8 Mar 2001 23:44:02 +0100 Subject: [Mapit] Fcgi variant improved. Message-ID: <20010308234402.F3474@abnoba.intevation.de> Hello MapIt! Users, if you are have MapIt! running using fcgi, you will be interested in the latest cvs version of genmap.fcgi. It will keep the genmap.fcgi process alive, even if the pipe to the server is broken. This happens when a client breaks the connection with apache e.g. . BTW: We hope to have 1.0 release soon, which will feature slightly improved installation instructions. (We have done some performance testing with Apache/mod_fastcgi/GNU/Linux.) and new free test data from Logiball! Best, Bernhard -- Professional Service around Free Software (intevation.net) The FreeGIS Project (freegis.org) Association for a Free Informational Infrastructure (ffii.org) FSF Europe (fsfeurope.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available Url : http://www.intevation.de/pipermail/mapit/attachments/20010308/9013c07d/attachment.bin From bernhard at intevation.de Wed Mar 14 09:22:51 2001 From: bernhard at intevation.de (Bernhard Reiter) Date: Wed, 14 Mar 2001 09:22:51 +0100 Subject: [Mapit] faster mapit demo server Message-ID: <20010314092251.A14414@abnoba.intevation.de> We have another mapit demo server running, you can reach it temporarily under: http://intevation.de:12345/ It is served by an 1.1 GHertz AMD GNU/debian machine over Apache 1.3.19 via FastCGI. Pound it a bit, if you like. www.mapit.de is still our very slow P 133MHertz machine, so do not be surprised when its a bit slower. Bernhard -- Professional Service around Free Software (intevation.net) The FreeGIS Project (freegis.org) Association for a Free Informational Infrastructure (ffii.org) FSF Europe (fsfeurope.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available Url : http://www.intevation.de/pipermail/mapit/attachments/20010314/8cddd795/attachment.bin From bernhard at intevation.de Wed Mar 14 09:48:52 2001 From: bernhard at intevation.de (Bernhard Reiter) Date: Wed, 14 Mar 2001 09:48:52 +0100 Subject: [Mapit] Re: Map It In-Reply-To: ; from jmullenllc@mindspring.com on Tue, Mar 13, 2001 at 01:09:28PM -0600 References: Message-ID: <20010314094852.E14414@abnoba.intevation.de> Hi James, thanks for your interest in MapIt!. I will also forward your question and my answer to the mapit mailinglist. http://intevation.de/mailman/listinfo/mapit In general questions are answered faster on the mailinglist. On Tue, Mar 13, 2001 at 01:09:28PM -0600, James Mullen wrote: > I followed up on your advice and, I've looked at Map It. I'm interested as > to how I could use lat/lon for the coordinates instead of world coordinates. > Or is it possible to convert lat/lon to world coordinates? I have exactly > no experience with GIS, the various data formats, and how to convert between > them. You have to decide for one flat (x,y) coordinate system. In the configuration file (info) for the tiles you have to give to specify the corners of each tile in this coordinate system. For maps covering small areas you can use a lat long values in decimal format as flat coordinate system. > For my uses, I would like to use a database to serve the coordinate data to > the map it application. I could do this by creating a utility to create the > data files with the appropriate values You want to create the "markerdefs" file? This is of course possible. > Line 1 & 2 width and height of the individual tiles in pixels. > Line 3 Block starts with a hash (#) character and two numbers that are the > indices of the tile. > Line 4, 5, 6, & 7 coordinates of the lower left and upper right corners of > the tile. > > Then repeat lines 3 thru 7 for each tile located in the directory. > > Wouldn't this allow me to use Map It with my data without trying to modify > the python code? Yes, if you gave the right coordinates in the "info" files your corresponding "markerdefs" files will work without projecting the coordinates. On the technical side note that with FastCGI Installations, one MapIt! process only reads the marker file once. You can use cgi with the current version, but it will be slower of course. If you modify the python code to directly query the marker database for each request you can be faster. Hope this answers your question, Bernhard -- Professional Service around Free Software (intevation.net) The FreeGIS Project (freegis.org) Association for a Free Informational Infrastructure (ffii.org) FSF Europe (fsfeurope.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available Url : http://www.intevation.de/pipermail/mapit/attachments/20010314/01161af7/attachment.bin From bernhard at intevation.de Wed Mar 14 11:31:57 2001 From: bernhard at intevation.de (Bernhard Reiter) Date: Wed, 14 Mar 2001 11:31:57 +0100 Subject: [Mapit] Re: =?iso-8859-1?Q?=5BMapit=5D_M=F6glichkeiten_von_MapIt?= In-Reply-To: <3AA5F150.9A44165@geyer.kabeljournal.de>; from stephan.krauss@geyer.kabeljournal.de on Wed, Mar 07, 2001 at 09:29:04AM +0100 References: <3AA5F150.9A44165@geyer.kabeljournal.de> Message-ID: <20010314113157.J14414@abnoba.intevation.de> Hallo Stephan Krau?, On Wed, Mar 07, 2001 at 09:29:04AM +0100, Stephan Krau? wrote: > Wir sind momentan am erstellen eines interaktiven Stadtplanes f?r > die Bergstadt Geyer. Ein erster Prototyp des Stadtplanes wird am > Montag ( 12.03.2001 ) unter "www.stadt-geyer.de" zu finden sein. Der Prototyp sieht schon recht gut aus. Wir w?rden uns nat?rlich freuen, wenn es einen kurzen Hinweis und Verweise auf die MapIt! gibt. Schliesslich haben Logiball und Intevation diese zur Verf?gung gestellt und uns hilft es, wenn es bekannt wird. Wir werden auch auf den Stadtplan verweisen, da es das erste, uns bekannte externes Projekt mit MapIt! ist. Gru?, Bernhard -- Professional Service around Free Software (intevation.net) The FreeGIS Project (freegis.org) Association for a Free Informational Infrastructure (ffii.org) FSF Europe (fsfeurope.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available Url : http://www.intevation.de/pipermail/mapit/attachments/20010314/c4b9d47c/attachment.bin From jmullenllc at mindspring.com Wed Mar 14 17:44:45 2001 From: jmullenllc at mindspring.com (James Mullen) Date: Wed, 14 Mar 2001 10:44:45 -0600 Subject: [Mapit] More Info Message-ID: I've done some more reading of the source code. Here's how I understand what's going on with Map It! Genmap - creates an image file with embedded markers Showmap - creates the html page with an image map corresponding to the embedded markers in the image created by genmap. It appears from my last posting that MapIt! will work with Lat/lon data as long as it is used in decimal form. So my question now is how do I define the images to use with Mapit? Am I going to have to physically cut each chart into pieces and create an info file for each set? Ultimately, I want to use mapit to do a batch create of the charts, i.e. generate all the web pages ahead of time. What we'll have is a set of static html pages served from the web site. If data is updated, then we regenerate the site. I think this will improve performance overall and we don't have access to cgi from our web host. Can someone give me an idea about how to accomplish this? Thanks From bh at intevation.de Wed Mar 21 14:36:02 2001 From: bh at intevation.de (Bernhard Herzog) Date: 21 Mar 2001 14:36:02 +0100 Subject: [Mapit] More Info In-Reply-To: References: Message-ID: <6q3dc7nt19.fsf@abnoba.intevation.de> "James Mullen" writes: > I've done some more reading of the source code. Here's how I understand > what's going on with Map It! > > Genmap - creates an image file with embedded markers > Showmap - creates the html page with an image map corresponding to the > embedded markers in the image created by genmap. Exactly. > It appears from my last posting that MapIt! will work with Lat/lon data as > long as it is used in decimal form. It should work. All MapIt! currently really cares about is that the coordinates used are orthogonal, that the tiles are aligned with the coordinate axes and the x-coordinate increases to the right and the y-axis increases upwards. > So my question now is how do I define the images to use with Mapit? Am I > going to have to physically cut each chart into pieces and create an info > file for each set? That depends on what you start with. MapIt! comes with a script called epscut which takes an eps file and uses ghostscript to render the tiles for several zoom levels. It also generates the info files. We used it to generate the Europe example tile set from a pdf file. > Ultimately, I want to use mapit to do a batch create of the charts, i.e. > generate all the web pages ahead of time. What we'll have is a set of > static html pages served from the web site. If data is updated, then we > regenerate the site. I think this will improve performance overall and we > don't have access to cgi from our web host. That's pretty much the opposite of what MapIt! was designed for. MapIt! is meant to be used for dynamic content and if you tried to do the same with static content you'd need a huge amount of storage. That's not to say that you couldn't do it with MapIt!, but you'd have to write your own frontend and probably tweak the code in base/ as well. For more specific advice we'd need to know more about your particular application. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/ From bh at intevation.de Wed Mar 28 15:57:00 2001 From: bh at intevation.de (Bernhard Herzog) Date: 28 Mar 2001 15:57:00 +0200 Subject: [Mapit] New Release: Mapit 1.0 Message-ID: <6qk85axahf.fsf@abnoba.intevation.de> Hi all, MapIt 1.0 has just been released. Summary of the changes since 0.9: * Page templates, marker definition files and tile information is now reloaded automatically whenever the files change. * Marker images without alpha channel are treated properly now * The fcgi frontends deal better with socket problems now * The version information for the tag is handled in more reliable way. There are also some changes in the packaging. The source archives now come without any example data. The windows installers and the RPM still contain an example data set but it's a new one. The new example data is a map of Herne and it's free (unlike the Berlin example which is only licensed to be used as a demo data set for MapIt!). The Herne example is also available separately. You can find all the files at ftp://intevation.de/mapit/ or through the web pages. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/