changing name for generated maps in ms_tmp directory
Malte
MalteAhrens at ARCOR.DE
Wed May 23 07:41:37 PDT 2007
Hi Steve,
thanks alot for your for your suggestion to use shp2img - worked like a
charme.
I used the tool forefiles from Win2000 Resource Kit to get the filenames of
the Shape-Files...
Here is the content of my Batch-File:
set Filter=*.shp
set Dateien_Quelle=..\..\apps\pmapper-3.1-beta4\data\regio\
set Dateien_Ziel=D:\ms4w\tools\Kartengenerator\Kartendateien\
set Map_Datei=D:\ms4w\apps\pmapper-3.1-beta4\config\default\regio.map
set PfadDLL=D:\ms4w\tools\Kartengenerator\ArcSDE_DLLs
REM Abstatt
REM -------
set Gemeinde=abstatt
set Extent=3519637 5435754 3526865 5439671
set Filter=*.shp
FORFILES -p%Dateien_Quelle% -m%Filter% -c"shp2img -e %Extent% -m %Map_Datei%
-l @FNAME_WITHOUT_EXT -o %Dateien_Ziel%%Gemeinde%\@FNAME_WITHOUT_EXT.png"
set Filter=*.tif
FORFILES -p%Dateien_Quelle% -m%Filter% -c"shp2img -e %Extent% -m %Map_Datei%
-l @FNAME_WITHOUT_EXT -o %Dateien_Ziel%%Gemeinde%\@FNAME_WITHOUT_EXT.png"
REM Ahorn
REM -----
set Gemeinde=ahorn
set Extent=3535168 5477707 3543875 5491667
set Filter=*.shp
FORFILES -p%Dateien_Quelle% -m%Filter% -c"shp2img -e %Extent% -m %Map_Datei%
-l @FNAME_WITHOUT_EXT -o %Dateien_Ziel%%Gemeinde%\@FNAME_WITHOUT_EXT.png"
set Filter=*.tif
FORFILES -p%Dateien_Quelle% -m%Filter% -c"shp2img -e %Extent% -m %Map_Datei%
-l @FNAME_WITHOUT_EXT -o %Dateien_Ziel%%Gemeinde%\@FNAME_WITHOUT_EXT.png"
...
...
...
Have a nice day,
Malte
Steve Lime wrote:
>
> I would use shp2img to do this. It doesn't sound like you need to use the
> CGI because there is nothing dynamic. Could also write a simple script to
> do it. With shp2img or a script you have total control over the output
> names.
>
> Steve
>
> (BTW the unique id is generated for sure in the CGI (mapserv.c) and
> perhaps MapScript has that ability, that I'm not sure about though.)
>
--
View this message in context: http://www.nabble.com/changing-name-for-generated-maps-in-ms_tmp-directory-tf3715971.html#a10765304
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list