inline feature -- adding a point by URL does not work

Fawcett, David David.Fawcett at STATE.MN.US
Thu Jul 21 15:58:41 EDT 2005


Greg, 

I have never tried this functionality, but it appears that your point:  -122.438131+37.777319

doesn't fall within your imgext of -122.454911+37.782652+-122.414361+37.823203

David.



//localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F


David Fawcett
Minnesota Office of Environmental Assistance
david.fawcett at moea.state.mn.us
651.215.0200


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Gregory S. Williamson
Sent: Thursday, July 21, 2005 2:49 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL
does not work


Apparently the documentation should be changed; this functionality does not work for me and judging by two days of silence from the list about this message, it does not for anyone else either.

GSW

-----Original Message-----
From:	UMN MapServer Users List on behalf of Gregory S. Williamson
Sent:	Wed 7/20/2005 1:25 AM
To:	MAPSERVER-USERS at LISTS.UMN.EDU
Cc:	
Subject:	[UMN_MAPSERVER-USERS] inline feature -- adding a point by URL
Dear list,

I've got a basic mapfile of street data derived from TIGER sources which seems to display correctly. I need to add an ability to display a point derived from a geocoding process. I can do this with a point added to a shapefile, but doing it dynamically eludes me.

I have a DATA statement in the layer that I am trying to add my temporary point(s) to. I've tried removing to no apparent effect.

Help with this would be muchly appreciated. Also, if anyone sees any other glaring issues in this map fragment, I'd be glad to hear about them.

This is Mapserver 4.6, running under Windows 2000, Apache 2.054 (the current MapTools "ms4w" build). All of my shapefiles seem to be working ok.

Thanks,

Greg Williamson
DBA
GlobeXplorer LLC

Various relevant snippets:

Map File
# SSF map file
NAME SSF
STATUS ON
SIZE 600 600
EXTENT  -122.5131    37.7095  -122.3509   37.8258
UNITS DD
SHAPEPATH "DATA"
FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list"
IMAGECOLOR 0 0 0
IMAGETYPE PNG

PROJECTION
  "+proj=latlong +ellps=GRS80"
END
<...snip...>
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END
<...snip...>
LAYER
  NAME ssfmappnts
  DEBUG ON
  STATUS ON
  DATA geopnt1
  TYPE ANNOTATION
  LABELITEM "POINT_NAME"
  LABELCACHE ON
  CLASS
    NAME "SSF Map Points"
    SYMBOL 'circle'
    SIZE 6
    COLOR 255 0 0
    LABEL
      ANTIALIAS TRUE
      TYPE TRUETYPE
      FONT garamond-bold
      SIZE 12
      COLOR 50 20 20
      OUTLINECOLOR 255 225 90
      POSITION AUTO
      BUFFER 2
      FORCE TRUE
    END
    TEMPLATE "ssf_m_query.html"
  END
  HEADER "ssf_mhdr.html"
  FOOTER "ssf_mftr.html"
  TOLERANCE 8
END # map points
END # Map File

===============================
A test URL (apologies for the length)
http://localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F

===============================
Mapserver log:
Wed Jul 20 01:21:03 2005,1736,127.0.0.1,SSF,0,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution

==============================
A point in a shapefile that displays correctly:
geopnt1
FID 15503 MULTIPOINT (-122.41202545997528 37.78057859726695)

!DSPAM:42de0aa2195381092533508!



More information about the mapserver-users mailing list