[mapserver-users] dynamic point with reference map
Stephen Woodbridge
woodbri at swoodbridge.com
Tue Mar 12 07:18:51 PST 2002
Chuck,
I would guess the that is the minimum size of a png image that is a
solid color because of png compression. Have tryed run shp2img to see
what you get?
-Steve W.
Chuck Bokath wrote:
>
> Steve,
>
> Thanks, that is great information. The problem I have when I try and create
> a map, is that it ends up with 114 bytes.
> I am not sure what is I am doing wrong to get the 114 byte map image. The
> reference image is fine.
>
> So it seems that I will not need a reference map, since I do not want an
> interactive browser based application--I am strictly looking for a backend
> engine that does not generate html but only png images with points, driven
> by lat/long coordinates.
>
> Now the question is, why is my map 114 bytes? The log says normal execution,
> everything is AOK,
>
> Here is the map file, any suggestions?
>
> MAP
> STATUS ON
> SIZE 600 600
> UNITS DD
> EXTENT -83.2 29.500 -81.2500 31.5000
> SYMBOLSET /export/home/bokath_c/gis/mapserver_3.5/symbols/examples.sym
> IMAGECOLOR 50 0 255
> IMAGETYPE png
> NAME ATL
>
> WEB
> TEMPLATE "Atlanta.html"
> IMAGEPATH "/tmp/"
> IMAGEURL "/tmp"
> LOG "./atl.log"
> END
>
> REFERENCE
> STATUS OFF
> IMAGE "/export/home/bokath_c/develop/webserver/cgi-bin/Atlanta.png"
> SIZE 600 600
> END
>
> LAYER
> NAME properties
> TYPE ANNOTATION
> STATUS DEFAULT
> CLASS
> NAME "user-defined properties"
> TEXT "House"
> SYMBOL 26
> COLOR 0 0 0
> LABEL
> TYPE TRUETYPE
> ANTIALIAS TRUE
> SIZE 8
> POSITION AUTO
> COLOR 0 0 0
> BACKGROUNDCOLOR 255 255 204
> END
> END
> END
>
> END
>
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Monday, March 11, 2002 6:07 PM
> To: chuck.bokath at air2web.com; mapserver-users at lists.gis.umn.edu
> Subject: Re: [mapserver-users] dynamic point with reference map
>
> You can't add points to a reference map. You can create a map that looks
> like
> a reference map with a normal call to the mapserver (mode=map). I think
> there
> may be some confusion as to what a reference map is or isn't. A
> reference map
> is a component of a web app- period.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> Chuck Bokath <chuck.bokath at air2web.com> 03/11/02 03:48PM >>>
>
> Hello,
>
> Can I use a reference map to add points on top of?
>
> In the cgi world, should I use mode=reference? Such a cgi request would
> look
> something like
> http://someserver/cgi-bin/mapserv?mode=reference&map_webuser_feature=new&map
>
> _webuser_feature_points=-84.33333+33.333333+map_webuser_feature_text=My+Hous
> e!&...
>
> Any help would be greatly appreciated.
>
> br
> chuck
More information about the MapServer-users
mailing list