From julius_kim at hotmail.com Fri Mar 1 15:00:41 2002 From: julius_kim at hotmail.com (Julius Kim) Date: Fri, 1 Mar 2002 09:00:41 -0500 Subject: [Mapit] lat/long Message-ID: Hello, I have a question about how I can represent lat/long coordinates on a raster image? Is there an easy way to convert lat/long to x/y? Julius -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/mapit/attachments/20020301/8ee3ff6e/attachment.html From julius_kim at hotmail.com Fri Mar 1 17:37:20 2002 From: julius_kim at hotmail.com (Julius Kim) Date: Fri, 1 Mar 2002 11:37:20 -0500 Subject: [Mapit] installation problems Message-ID: Syntax error on line 388 of c:/program files/apache group/apache/conf/httpd.conf : Invalid command 'PythonHandler', perhaps mis-spelled or defined by a module not included in the server configuration Note the errors or messages above, and press the key to exit. 27... I followed the instructions to a T and still get the above errors. Does anyone have any hints or experiences? Thanks. Julius -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/mapit/attachments/20020301/045f2504/attachment.html From jan at intevation.de Fri Mar 1 17:59:25 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Fri, 1 Mar 2002 17:59:25 +0100 Subject: [Mapit] lat/long In-Reply-To: References: Message-ID: <20020301165925.GA26237@intevation.de> Hi Julius, On Fri, Mar 01, 2002 at 09:00:41AM -0500, Julius Kim wrote: > I have a question about how I can represent lat/long coordinates on a raster image? Is there an easy way to convert lat/long to x/y? which lat/long coordinates belongs to certain point on a rasterimage depends on the applied geographic projection. Can you describe your problem more detailed? Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From bh at intevation.de Mon Mar 4 15:24:31 2002 From: bh at intevation.de (Bernhard Herzog) Date: 04 Mar 2002 15:24:31 +0100 Subject: [Mapit] installation problems In-Reply-To: References: Message-ID: <6qsn7gjtr4.fsf@abnoba.intevation.de> "Julius Kim" writes: > Syntax error on line 388 of c:/program files/apache group/apache/conf/httpd.conf > : > Invalid command 'PythonHandler', perhaps mis-spelled or defined by a module not > included in the server configuration > Note the errors or messages above, and press the key to exit. 27... Is modpython installed? It would also help if you tell us which versions of the various programs that are involved here (apache, modpython, windows), otherwise we probably can't reproduce the problem here. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/ From gordan.starcevic at datatrak.at Thu Mar 7 23:58:22 2002 From: gordan.starcevic at datatrak.at (Starcevic Gordan) Date: Thu, 7 Mar 2002 23:58:22 +0100 Subject: [Mapit] How to produce correct tiles... Message-ID: Dear Sirs, could you please tell me why I can not produce correct tiles. I installed demo version of Mapit on WindowsNT Ver.4.0 and it works fine. Using Imagemagick(Ver. "ImageMagick-win2k.zip"), I converted one jpg file to eps file (using the command convert europe.jpg europe.eps). Using python, epscut file and eps file I got following error: _________________________________________________________________________ C:\Programme\Mapit\src\tools>python epscut europe.eps gs -sDEVICE=ppmraw -r72 -dNOPAUSE -dSAFER -q -sOutputFile=C:\TEMP\~154-1 -g400x 382 -c "0.995025 0.994792 scale 0.000000 0.000000 translate /oldshowpage /showpa ge load def /showpage {} def" -feurope.eps -c oldshowpage quit writing europe\2\1x1.png Traceback (innermost last): File "epscut", line 284, in ? main() File "epscut", line 280, in main make_tile_hierarchy(epsfile, basedir, factors, regions, overview_size) File "epscut", line 252, in make_tile_hierarchy factors[i], region, reference_size) File "epscut", line 189, in render_tiles alpha=alpha, indexed = 1) File "epscut", line 122, in render_tile image.save(outputfile) File ".\Image.py", line 686, in save KeyError: .png C:\Programme\Mapit\src\tools> _________________________________________________________________________ I am also using program ghostscript (Ver. gs704w32.exe). After installing I got two files gswin32.exe and gswin32c.exe. Because epscut looks for gs program that I don't have on my computer, I renamed gswin32c.exe (command line version) to gs.exe. Could you please tell me: - what is wrong here? - how to automatically (not to write coordinates for each tile manually)produce tiles from one eps file that stems from one bigger image map that has coordinates in WGS84? - Where to specify coordinate system? - Is it possible to insert the coordinates in the program only once and if it is, where? Thank you in advance for your (if possible, more detailed) answer. Gordan Starcevic From bh at intevation.de Fri Mar 8 11:44:47 2002 From: bh at intevation.de (Bernhard Herzog) Date: 08 Mar 2002 11:44:47 +0100 Subject: [Mapit] How to produce correct tiles... In-Reply-To: References: Message-ID: <6qhenr49uo.fsf@abnoba.intevation.de> Starcevic Gordan writes: [problems with epscut and PNG:] > File "epscut", line 122, in render_tile > image.save(outputfile) > File ".\Image.py", line 686, in save > KeyError: .png That means that for some reason the Python Imaging Library (PIL) doesn't know about PNG files. Which version of PIL do you use? Some older versions had a bug related to this. MapIt! itself has a workaround for this bug, but epscut doesn't. You could try to add the line import PIL.PngImagePlugin to epscut (a good place would be right after the "import PIL.Image") or upgrade to a newer version. The bug was fixed in 1.1.2 IIRC. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://www.mapit.de/