Robert, 

This is an example of changing mapfile parameters via the request URL.  It is 
documented on this page:    
http://mapserver.org/cgi/controls.html

If Steve's example using 'mapsize' doesn't work, I would try 'map_size'.  You 
are just setting/changing the values for the SIZE and EXTENT properties in the 
MapFile.  See the documentation here:  http://mapserver.org/mapfile/map.html

Also, I haven't tested it, but you could try specifying the map extent, which 
it sounds like you want to set to the same extent (bbox) as your image.  I 
would try something like &map_extent=-97+43+-92+49 where the coords in the 
snippet match the bbox of your image.  

Note, you will want to make sure that the aspect ratio of your map_size matches 
the aspect ratio of your extent.  If not, MapServer will adjust the extent to 
fill the image.  

David. 


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Hicks
Sent: Tuesday, October 12, 2010 8:06 AM
To: Lime, Steve D (DNR)
Cc: [email protected]; Fawcett, David (MPCA)
Subject: Re: [mapserver-users] WMS Request for a single point?

Ok after some sleuthing, I'm going to assume the bounding box of the
image is that specified in the map file. Is there a way to specify it
in the call?

Also so more immediate questions: What kind of request is this? Is
there a spec available? I'm really only used to GetMap requests so
this is a little new to me.

On Fri, Oct 8, 2010 at 2:30 PM, Robert Hicks <[email protected]> wrote:
> Ok great! So that gave me an image with a push pin on it. So here is
> another question: what is the bounding box of the requested image, and
> can I specify it? I need to be able to merge this image together with
> another GeoTiff (preferably using gdalmerge) so that the point lands
> on the same geographic location in the base image. The original image
> is in EPSG 4326, and I'm not sure what units of measurement this call
> is using. I tried requesting the point layer as a tif but I think it
> just gave me a regular non geotiff, which is fine because I can update
> the header using gdal_translate but I need to know the bounding box in
> 4326.
>
> On Fri, Oct 8, 2010 at 12:41 PM, Lime, Steve D (DNR)
> <[email protected]> wrote:
>> I think you need:
>>
>>  &mapsize=1000+500
>>
>> Or set it in the mapfile and mapserver will use that.
>>
>> Steve
>>
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf Of Robert Hicks
>> Sent: Friday, October 08, 2010 11:40 AM
>> To: Fawcett, David (MPCA)
>> Cc: [email protected]
>> Subject: Re: [mapserver-users] WMS Request for a single point?
>>
>> Great, thanks for all the help everyone! I tried that command:
>> http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500
>> (I had to change a few things), and I get this error:
>>
>> "msDrawMap(): Image handling error. Unable to initialize image.
>> msPrepareImage(): General error message. Image dimensions not
>> specified. msCalculateScale(): General error message. Invalid image
>> width or height. "
>>
>> Any ideas?
>>
>> On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA)
>> <[email protected]> wrote:
>>> This example works:  
>>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END
>>>
>>> You can access your layer through the layer name or it's (zero-based) index.
>>>
>>> The simple example layer is below with a simple circle symbol defined in 
>>> the map file.
>>>
>>>  LAYER
>>>    NAME 'singlepoint'
>>>    TYPE point
>>>    STATUS DEFAULT
>>>    CLASS
>>>        STYLE
>>>            COLOR 255 0 0
>>>            SIZE 15
>>>            symbol "circle"
>>>        END
>>>    END
>>>   END
>>>
>>> SYMBOL
>>>  NAME "circle"
>>>  TYPE ellipse
>>>  FILLED true
>>>  POINTS
>>>    1 1
>>>  END
>>> END
>>>
>>>
>>> -----Original Message-----
>>> From: [email protected] 
>>> [mailto:[email protected]] On Behalf Of Robert Hicks
>>> Sent: Friday, October 08, 2010 11:07 AM
>>> To: thomas bonfort
>>> Cc: [email protected]
>>> Subject: Re: [mapserver-users] WMS Request for a single point?
>>>
>>> Ok, that looks extremely promising. I'm going to go ahead and try it
>>> on my local Mapserver.
>>>
>>> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort
>>> <[email protected]> wrote:
>>>> have a look at 
>>>> http://www.mail-archive.com/[email protected]/msg05881.html
>>>>
>>>> the syntax for cgi commands has changed since then, you'd have to use
>>>> something like
>>>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end
>>>>
>>>> or &map.layer[site].feature.points=582248.23+4841497.11
>>>>
>>>> (I cant remember what syntax is correct)
>>>>
>>>> --
>>>> regards,
>>>> thomas
>>>>
>>>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks <[email protected]> wrote:
>>>>> Hello all! Ok, this is probably a long shot but, is there a way to
>>>>> request an image from Mapserver that is just a point? The idea is I
>>>>> have another larger (reference) map image and I want to place a push
>>>>> pin on top of it in a specified point. It has to be a WMS call so that
>>>>> I can take the image and merge it with the other larger map into one
>>>>> so that it can be put into a PDF. Any help would be appreciated.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> --
>>>>> web http://www.hyxspace.com
>>>>> aim hyx1138
>>>>> _______________________________________________
>>>>> mapserver-users mailing list
>>>>> [email protected]
>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> web http://www.hyxspace.com
>>> aim hyx1138
>>> _______________________________________________
>>> mapserver-users mailing list
>>> [email protected]
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>>
>>
>>
>>
>> --
>> web http://www.hyxspace.com
>> aim hyx1138
>> _______________________________________________
>> mapserver-users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>
>
>
> --
> web http://www.hyxspace.com
> aim hyx1138
>



-- 
web http://www.hyxspace.com
aim hyx1138
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to