Virtual Spatial Data

Lawrence Hartpence hartpence_gis at CO.JASPER.IA.US
Thu Aug 30 08:47:21 EDT 2007


Hello,

I am learning about using Virtual Spatial Data in Mapserver.  I added an
Access table with xy data.  It displays fine and labels fine, but when I try
to query it, I get the following error: "mapserv(): Web application error.
No way to generate a valid map extent from selected shapes."   This happens
when I try to click on the point.

Here the URL:
http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery=

Any ideas what I am doing wrong?

Here is an excerpt from my map file:

LAYER
        CONNECTION "<OGRVRTDataSource>
        <OGRVRTLayer  name='Septic'>
        <SrcDataSource>ODBC:@Septic</SrcDataSource>
        <SrcLayer>tblSewersyAllHistoricInfo</SrcLayer>
        <GeometryField encoding='PointFromColumns' x='X' y='Y'/>
        <GeometryType>wkbPoint</GeometryType>
        </OGRVRTLayer>
        </OGRVRTDataSource>"
        CONNECTIONTYPE OGR
        DATA "Septic"
        #METADATA
        #        "wms_srs"   "4326"
        #        "wms_title"   "Septic"
        #END
        NAME "Septic"

 	  TEMPLATE 'C:\MS4W\Apache\htdocs\Septic\Septic_query.html'
	  HEADER 'C:\MS4W\Apache\htdocs\Septic\Septic_head.html'
 	  TRANSPARENCY 100
        SIZEUNITS PIXELS
        STATUS ON
        TOLERANCE 7
        TOLERANCEUNITS PIXELS
        TYPE POINT
        UNITS FEET
	  LABELITEM 'septic permit number'
        CLASS
          STYLE
            COLOR 0 200 0
            MAXSIZE 100
            MINSIZE 1
            SIZE 6
            SYMBOL "square"
          END
   LABEL
    TYPE TRUETYPE
    SIZE 10
    FONT Arial  
    COLOR 0 250 50
   # OUTLINECOLOR 0 0 0
    POSITION UC
    #ANGLE AUTO
    OFFSET 0 5
    MINDISTANCE 200
   END #LABEL

        END
END


Lawrence



More information about the mapserver-users mailing list