[Mapserver-users] Weird Itemquery Behavior in 4.2.0 beta?

David Fawcett David.Fawcett at state.mn.us
Mon Jul 26 16:53:59 EDT 2004


Thank you Steve!  

It turns out that I did have facilities that were located outside of
the default extent of my MAP file.  When I originally built the map
file, I only included facilities located inside of Minnesota.  I later
added additional out-state facilities, but did not readjust the default
extent for the map file.  

In the end, I set my extent to:    EXTENT 0 4750000 805000 5506137 and
all of the facilities are queryable.

*A good reminder, as you add more data to your application, make sure
that the default extent still encompases all of your data.  

Because all of the facilities in the shapefile displayed when the
application loaded, I had assumed that the extent was correct.  It
wasn't.

Thanks again for your help.

David.



David J. Fawcett
MN Office of Environmental Assistance

>>> "Steve Lime" <steve.lime at dnr.state.mn.us> 7/26/2004 3:00:39 PM >>>
What is the default extent in allfac.map? Attribute queries apply a
spatial bounding
box filter first. The only thing I can think of is that the default
extent in the mapfile
is not allowing all records to be searched.

Steve

>>> "David Fawcett" <David.Fawcett at state.mn.us> 7/23/2004 2:09:00 PM
>>>
The shapefile can be downloaded here:  

http://data.moea.state.mn.us/maps/facilities/shapefile.htm 

David.

David J. Fawcett
MN Office of Environmental Assistance

>>> "David Fawcett" <David.Fawcett at state.mn.us> 7/23/2004 11:13:26 AM
>>>
Has anyone seen weird behavior with Itemquery or itemquerymap in 4.0
beta?  I am on Win2k.  

I have a point shapefile of facilities, when I do an itemquerymap
request on the PERMITNO field (text), some qstrings return a map of
the
desired facility, others return the EMPTY message indicating no
records
returned.  

I know that there are PERMITNOs for the facilities that are not being
found, and the qstring is simply 'ND-3' or 'IA-2'.  

For example: 
http://data.moea.state.mn.us/cgi-bin/ms4/mapserv.exe?map=e:\web\data.moea.state.mn\maps\facilities\allfac.map&mode=itemquerymap&qlayer=facilities&qitem=permitno&qstring='ND-3'&mapext=shapes



 

works,but:  

http://data.moea.state.mn.us/cgi-bin/ms4/mapserv.exe?map=e:\web\data.moea.state.mn\maps\facilities\allfac.map&mode=itemquerymap&qlayer=facilities&qitem=permitno&qstring='IA-3'&mapext=shapes




does not.  

I have tried to go at debugging a few different ways, but have been
stopped by technical limitations.  

1.  I wanted to see if the problem was specific to 4.0, so  I tried to
install MS 4.2.1, but couldn't get the binaries from UMN to work (see
other current thread).

2.  I suspect that it may be a problem with the shapefile.  It is
pretty old (probably originally created in ArcView 3.x, and has been
edited, appended, etc.  I tried to find a binary version of
shplib.shpfix or shplib.dbfinfo, but didn't succeed there either.  

I can attach or post the shapefile if that would help.  

The shapefile works fine for point queries on any of the facilities
that it contains.  It is the basis for this application: 
http://data.moea.state.mn.us/maps/facilities/ 

Thanks, 

David.

David J. Fawcett
MN Office of Environmental Assistance
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list