From gordan.starcevic at datatrak.at Sat Mar 2 20:11:27 2002 From: gordan.starcevic at datatrak.at (Starcevic Gordan) Date: Sat, 2 Mar 2002 20:11:27 +0100 Subject: [Mapit-de] MapIt configuration... Message-ID: Dear Sirs, I was reading the MapInfo manuals and I reached certain level of developing own MapIt application, but I don't know what to do further. Therefore I will explain what I have done until now: To prepare necessary software I downloaded and installed: - german version of MapIt "mapit-1.0.1-1-de.exe" - program Imagemagick "ImageMagick-win2k.zip" (for converting bmp, jpg etc. files to eps, ps etc. files) - Programms Ghostscript "gs704w32.exe" and Ghostwiev "gsv42w32.exe" - Editor program WinEdit (this editor has option to search the line by the line number (Ctrl+g)) I also sucessfully installed MapIt demo application on my WinNT 4.0 PC and it worked. Then I started to prepare own MapIt application with the default values and faced with problems: I produced one picture in BMP format. This picture shows one map. I converted this image with the programm "imagemagick" to one eps file using command: convert aus.bmp aus.eps I moved the new aus.eps file into the c:\programme\mapit\src\tools directory and being in this directory I started at the dos prompt the program epscut with the command: c:\programme\mapit\python\python epscut aust2.eps The result in the dos screen looks like this: gs -sDEVICE=ppmraw -r72 -dNOPAUSE -dSAFER -q -sOutputFile=C:\TEMP\~228-2 -g400x253 -c "1.098901 1.100000 scale 0.000000 0.000000 translate /oldshowpage /showpage load def /showpage {} def" -faust2.eps -c oldshowpage quit Der Befehl ist entweder falsch geschrieben oder konnte nicht gefunden werden. Bitte ?berpr?fen Sie die Schreibweise und die Umgebungsvariable 'PATH'. 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 115, in render_tile image = PIL.Image.open(temp) File ".\Image.py", line 879, in open IOError: [Errno 2] No such file or directory: 'C:\\TEMP\\~230-1 The only result of the above command was two directories (as specified in epscut as default), but they were empty (only the first directory had file info with two numbers in it). Could please somebody tell me what is wrong here and what I missed to do? What should I and where change? How and where to put information about real coordinates relevant to the map in the image and later to the markers? If error is in *.eps file, what should I change there? Is it possible to download somewhere one sample of one eps file that works good? Thank you in advance! Gordan From bernhard at intevation.de Mon Mar 4 11:26:24 2002 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 4 Mar 2002 11:26:24 +0100 Subject: [Mapit-de] MapIt configuration... In-Reply-To: References: Message-ID: <20020304102624.GH19109@intevation.de> Hallo, auf mapit-de kann auch Deutsch geschrieben werden. :) On Sat, Mar 02, 2002 at 08:11:27PM +0100, Starcevic Gordan wrote: > - Programms Ghostscript "gs704w32.exe" and Ghostwiev "gsv42w32.exe" > - Editor program WinEdit (this editor has option to search the line by the > line number (Ctrl+g)) > > I also sucessfully installed MapIt demo application on my WinNT 4.0 PC and > it worked. Gut. > I produced one picture in BMP format. This picture shows one map. Ich nehme an, das ist ein sehr grosses Bild. Ansonsten einfach das eine Bild als eine Kachel verwenden. Ansonsten dieses direkt in Kacheln zerlegen und nicht erst in eps umwandeln. Das Ziel sind ja die Kacheln mit entsprechenden Koordinaten Dateien. Das kann u.A. durch mehrmaliges Anwenden von convert und der "-crop" Options geschehen. "convert" ist ein Programm, welches mit imagemagick mitkommt. > I converted this image with the programm "imagemagick" to one eps file using > command: convert aus.bmp aus.eps > I moved the new aus.eps file into the c:\programme\mapit\src\tools directory > and being in this directory I started at the dos prompt the program epscut > with the command: c:\programme\mapit\python\python epscut aust2.eps > > > The result in the dos screen looks like this: > gs -sDEVICE=ppmraw -r72 -dNOPAUSE -dSAFER -q -sOutputFile=C:\TEMP\~228-2 > -g400x253 -c "1.098901 1.100000 scale 0.000000 0.000000 translate > /oldshowpage /showpage load def /showpage {} def" -faust2.eps -c > oldshowpage quit > Der Befehl ist entweder falsch geschrieben oder konnte nicht gefunden > werden. Bitte ?berpr?fen Sie die Schreibweise und die Umgebungsvariable > 'PATH'. > Could please somebody tell me what is wrong here and what I missed to do? > What should I and where change? Was passiert, wenn "gs" einfach in einer Kommandoeingabe eingetippt wird? Das sollte das Programm ghostscript finden. Ansonsten die Position von gs.exe in den System Variablen eintragen. > How and where to put information about real coordinates relevant to the map > in the image and later to the markers? Das sollte auf folgender Seite erkl?rt sein: http://www.mapit.de/data.de.html Gru?, Bernhard Reiter -------------- 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-de/attachments/20020304/1c1ef4ba/attachment.bin