[postgis-users] itemnquery limitation

David Blasby dblasby@refractions.net
Wed Aug 13 17:37:28 2003


This is a multi-part message in MIME format.
---------------------- multipart/mixed attachment
Tom,

I've been running your .map file from the command line like this:

../../mapserver/mapserver-cvs/mapserver/mapserv 
"QUERY_STRING=map=%2Fnet%2Flion_direct%2Fraid%2Fshare%2FRefractions%2FProjects%2FPostGIS%2Fwork_dave%2Ftest2%2FWCms.map&MINX=2001272.875&MINY=643833.625&MAXX=2156198.25&MAXY=771771.5625&mode=itemnquery&zoomsize=2&program=%2Fcgi-bin%2Fmapserv&map_web_header=WCms_headerSch.html&map_web_footer=WCms_footerSch.html&HeaderHtml=WCms_headerSch.html&FooterHtml=WCms_footerSch.html&map_web_imagepath=%2Fnet%2Flion_direct%2Fraid%2Fshare%2FRefractions%2FProjects%2FPostGIS%2Fwork_dave%2Ftest2%2F&map_web_imageurl=%2Ftmp%2F&qlayer=nodes&qitem=nodeid&qstring=%22nodeid+in+%28413.0%2C430.0%2C431.0%2C432.0%2C433.0%2C434.0%2C436.1%2C450.0%2C451.0%2C452.0%2C453.0%2C454.0%2C455.0%2C456.0%2C457.1%2C457.2%2C457.3%2C457.4%2C458.1%2C458.2%2C434.7%2C434.6%2C434.5%2C459.0%2C434.4%2C434.3%2C434.2%2C434.1%2C528.0%29%22&layer=gp_nodes&layer3=gp_nodes"


I got the query string by changing your html file (test.html) slightly:
1. made it point to my server stuff
2. changed:    <form method="get" name="hiddenform" 
action="http://yahoo.com">
3. added: <input type ='submit' name="aldfj" value="dslfkj">

Load the page, then hit the button.  You'll get thrown to yahoo but, in 
the address bar, you'll see the query string.

I've attached the .map file I've been using (its basically the same as 
yours, but I cut it down to one layer since the others were not being 
used in the itemnquery).

dave

---------------------- multipart/mixed attachment
#
# Start of map file
#
NAME WCms
STATUS ON
SIZE 600 600
SCALE 10000
EXTENT 1831330.000000 470250.000000 2343330.000000 982250.000000
UNITS FEET
SHAPEPATH "data"
IMAGECOLOR 255 255 255

IMAGETYPE PNG

WEB
  HEADER WCms_header.html
  TEMPLATE WCms.html
  FOOTER WCms_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "/var/www/html/tmp/"
  IMAGEURL "/tmp/"
  METADATA
    WMS_TITLE "WebInsights Mapping Tool"
    WMS_ABSTRACT "This is the UMN MapServer demonstration application for Wake County located in North Carolina."
    WMS_ACCESSCONSTRAINTS none

    # change this value to match your setup
    WMS_ONLINERESOURCE "http://localhost/mapserver/wc/WCms.html"

    WMS_SRS "EPSG:26915"
  END
END

QUERYMAP
  SIZE 600 600
  STATUS ON
  STYLE HILITE
  COLOR 200 200 160
 # COLOR 255 0 0
  #OUTLINECOLOR 255 0 0
END

#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny    
  END
  STYLE 1
  SIZE 80 2
  COLOR 255 255 255
  UNITS MILES
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END

#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 3 3 END
  FILLED TRUE
END

SYMBOL
  NAME 'triangle'
  TYPE vector
  POINTS
	0 6
	3 0
	6 6
	0 6
    	END
  FILLED TRUE
END

SYMBOL
  NAME 'cross'
  TYPE vector
  POINTS
	2 0
	2 4
	-99 -99
	0 2
	4 2
  END
END
#
# Start of layer definitions
#

LAYER
    NAME "nodes"
    GROUP gp_nodes
    CONNECTIONTYPE postgis
	CONNECTION "user=dblasby dbname=postgis_delme host=localhost port=5432"
    DATA "the_geom from nodescomb_2003"
    STATUS OFF
    TYPE POLYGON
	CLASSITEM "nodeid"
	LABELITEM "nodeid"
    LABELMAXSCALE 50000
   
    CLASS
      EXPRESSION /./  
      NAME "nodes"
      TEMPLATE "WCms_nodes.html"
      OUTLINECOLOR 0 225 0
	  LABEL
		TYPE TRUETYPE
		FONT lucidaSans_regular		
        COLOR 0 225 0	
		SIZE 7
		#MINSIZE 4
		#MAXSIZE 8
		POSITION CC
		#MINFEATURESIZE 100
		#MINFEATURESIZE AUTO
		#MINDISTANCE 200
		BUFFER 2	
    	END
    END
    HEADER "WCms_nodes_header.html"
    FOOTER "WCms_nodes_footer.html"
  
END # Nodes DB

END # Map File

---------------------- multipart/mixed attachment--