Creating a designated graphics file

Graham Davis gdavis at REFRACTIONS.NET
Wed Jan 4 13:24:22 PST 2006


If you do need to do this from the web, you could also use PHP with the 
CURL and GD libraries compiled into it without any need of mapscript.  
We are retrieving a mapserv image with CURL from a PHP script, and then 
cutting it up into smaller tiles using GD functions.  I don't think you 
would need GD if you only want to retrive the mapserv image and save it, 
PHP should let you do that easily enough.

-- 
Graham Davis
Refractions Research Inc.
gdavis at refractions.net



Bob Basques wrote:

> You could also run MapServer on the commandline as well and pipe the 
> output to a location, you would need some sort of CGI if you need to 
> pass the instructions via the Web though.
>
> bobb
>
>
> Bart van den Eijnden (OSGIS) wrote:
>
>> Do you need this functionality to be available from the web? Then as 
>> Tom said you'll probably need Mapscript.
>>
>> If you don't need it from the web, you could use shp2img and use > to 
>> output it to a file. Ofcourse you can write your files to a 
>> web-accessible directory.
>>
>> shp2img -m mymap.map > c:\temp\out.png
>>
>> Best regards,
>> Bart
>>
>> Chip Taylor wrote:
>>
>>  
>>
>>> Is there a way to use MapServer CGI to output a graphics file (GIF 
>>> or JPG)
>>> to a designated location with a designated name on a Windows/IIS 
>>> server?
>>> For example, I'd like to be able to call  mapserver.exe and tell it 
>>> to name
>>> the file "thismap.jpg" and create it in directory 
>>> c:\wwwroot\projects\maps\
>>>
>>>
>>>
>>> Chip Taylor
>>>
>>> Prepared Response, Inc
>>>
>>>
>>>
>>>
>>>   
>>
>>
>>
>>  
>>


-- 
Graham Davis
Refractions Research Inc.
gdavis at refractions.net



More information about the MapServer-users mailing list