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

Pagurek,Debbie [NCR] Debbie.Pagurek at EC.GC.CA
Fri Jul 22 08:52:25 EDT 2005


Just a guess - I haven't tested this - but shouldn't your layer be TYPE
POINT? Not annotation.

D. Pagurek

-----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 7:26 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] inline feature -- adding a point by
URL does not work


David,

>-----Original Message-----
>From:	Fawcett, David [mailto:David.Fawcett at state.mn.us]
>Sent:	Thu 7/21/2005 1:11 PM
>To:	Gregory S. Williamson
>Cc:	
>Subject:	RE: [UMN_MAPSERVER-USERS] inline feature -- adding a
point by URL does not work
>Hopefully that was it, let me know.
>
>For testing, I would probably put a lot of the args that you are 
>passing in >the URL, directly in the Map file (image path, imageurl,
etc.)  You could >also test with just mode=map and not bother to include
all of the form vars >like zoomdir, zoomsize, program, etc.
>
>David.

Thank you for your help ... alas, still no sccess.

I have stripped down the URL to a minimum, and placed some args into the
map file. Alas, I just get a blank image. I am wondering if there is
anything else that needs to be done to draw such a thing ? 

The error log says:
Thu Jul 21 16:11:23 2005,1916,127.0.0.1,SSF,3,-122.513100 37.686550
-122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution

The desired point does seem to fall within the indicated extent (url
broken up for readability):

http://localhost/cgi-bin/mapserv_46.exe?mode=map&
 map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&
 layer=ssfmappnts&map_ssfmappnts_feature=new&
 map_ssfmappnts_feature_points=-122.438131+37.777319&
 map_ssfmappnts_feature_text=Old848&
 program=%2Fcgi-bin%2Fmapserv.exe

When I run this variant with a shapefile it paints a nice red dot; when
I do it with the inline feature I just get a blank background. When I
run this request with the browse mode the layer shows up in my legend,
and zooming in with a streets layer does seem to indicate that I'm
centered correctly.

Amended map file is below.

Thanks for any suggestions or advice!

Greg W.

(I have cut out the legend, query map and some layers that don't seem
relvant) # 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

#
# Start of web interface definition (including WMS enabling metadata) #
WEB
  HEADER ssf_header.html
  TEMPLATE ssf.html
  FOOTER ssf_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  LOG "mapserver.log"
#  IMAGEPATH "set in ssf_init.html"
IMAGEPATH "../tmp/"
#  IMAGEURL "set in ssf_init.html"
IMAGEURL "../tmp/"
END

...
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END
...
LAYER
  NAME ssfmappnts
  DEBUG ON
  STATUS ON
#  DATA geopnt1  # doesn't matter for dynamic points if this exists or
not
  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 # Rec Areas



More information about the mapserver-users mailing list