[mapserver-users] Disappearing point in a map

Chip Taylor work at xwb.com
Fri Oct 10 14:53:00 PDT 2008


I have a map where I pass in the information about a point via the URL. I am
using mapserver version 5.2 on a Windows Server 2000.  In some cases the
point just does not appear.  For example, the map extents of
-78.9043321338311+35.0222546417047+-78.8914558661689+35.0367113582953 will
not show a point at -78.897894, 35.029483 and yet a map extents of
-78.9041121338311+35.0222546417047+-78.8912358661689+35.0367113582953 will
show the point of -78.897674, 35.029483, less than 300 linear feet away.

Here is the URL passing in the first example:

https://devmap/bin/mapserv.exe?mode=map&map=map_files/US.map&mapsize=580
475&map_MyPoint_feature=new&map.layer[MyPoint]=feature+points+-78.897894+35.
029483+END+TEXT+%27Secondary%20Building%27END&layers=roads&mapext=-78.904332
1338311+35.0222546417047+-78.8914558661689+35.0367113582953&program=%2Fbin%2
Fmapserv.exe

And here is the mapfile:


MAP
  NAME "US"
  STATUS ON
  UNITS DD
EXTENT -127.00 43.00 -115.00 50.00
SIZE 500 400
IMAGECOLOR 156 188 217
IMAGETYPE png
  SYMBOLSET "../etc/NAVsymbols.sym"
  SHAPEPATH "../Shape_Files/navteq_data/"
  FONTSET "../etc/fonts.txt"
  Include "InlineSyms.map"

##################################### 
# Symbol for drawing Star
#
Symbol
NAME 'Star'
TYPE VECTOR
FILLED true
   POINTS
	0     0.375
	0.35  0.375
	0.5   0
	0.65  0.375
	1     0.375
	0.75  0.625
	0.875 1
	0.5   0.75
	0.125 1
	0.25  0.625
   END
END

##################################### 
  # ==================================================
  # Web Interface Definition
  # ==================================================
  WEB
    # the following "preset_scales" metadata is a list of specific scales
that
    # the mapfile is configured for.  These values are not used, but can be
    # placed in other applications such as ka-Map
(http://ka-map.maptools.org/)
    METADATA
      "preset_scales"
"2500,7500,12000,17500,35000,75000,125000,200000,400000,750000,2000000,40000
00,7500000,15000000,30000000,60000000"
    END
    MINSCALE 1  # necessary for CGI point query

     TEMPLATE "../HTML_Files/sitemap.html"
     IMAGEPATH 'd:/wwwroot/tmp/'
     IMAGEURL "/tmp/"
     LOG "d:/MapLogs/mapserver.log"
     #ERROR "../maperror.htm"

  END

  # ==================================================
  # Projection Definition
  # ==================================================
  PROJECTION
    "init=epsg:4269"
  END

 ##################################### 
# MyPoint
#
LAYER
NAME "MyPoint"
TYPE Annotation
STATUS DEFAULT
 METADATA
       "wms_title"    "MyPoint"  ##required
  END
 CLASS
  COLOR -1 0 0
   STYLE
	COLOR 255 0 0
	OUTLINECOLOR 255 255 0 
	SYMBOL 'star' 
	SIZE 20 
       END
        
  LABEL
    FONT "Arial"
    TYPE TRUETYPE
    ANTIALIAS TRUE
    COLOR 0 0 0
    BACKGROUNDCOLOR 220 220 220
    OFFSET 10 0
    SIZE 10
    POSITION lr
  END
 END
END
END #mapfile

Any help would be greatly appreciated.

Chip Taylor
Prepared Response, inc






More information about the MapServer-users mailing list