[mapserver-users] WMS Request for a single point?

Robert Hicks robhyx at gmail.com
Fri Oct 8 09:40:19 PDT 2010


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)
<David.Fawcett at state.mn.us> 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks
> Sent: Friday, October 08, 2010 11:07 AM
> To: thomas bonfort
> Cc: mapserver-users at lists.osgeo.org
> 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
> <thomas.bonfort at gmail.com> wrote:
>> have a look at http://www.mail-archive.com/mapserver-users@lists.umn.edu/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 <robhyx at gmail.com> 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
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
>
>
> --
> web http://www.hyxspace.com
> aim hyx1138
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>



-- 
web http://www.hyxspace.com
aim hyx1138



More information about the MapServer-users mailing list