[mapserver-users] tileindex shptree
Eric Weisbender
Weisbend at wapa.gov
Mon Oct 31 06:37:10 PDT 2011
Frank,
It depends on where you click on the data for the query. Attached is a screen shot of where the different errors occur. Also, below is the mapfile running on MapServer 5.6.5. If you would like me to send you the shape files I can do that as well. Thanks so much for your help.
EW
MAP # begin .map file
NAME RMR
SYMBOLSET /data/gis/www/html/ms_common/symbol.list
FONTSET /data/gis/www/html/ms_common/fonts/fonts.list
STATUS ON
SIZE 600 500
EXTENT -264634.5 4050685.5 975961.5 5039620.5
UNITS METERS
SHAPEPATH "/data/gis/vector/rmr/shapes"
DATAPATTERN ".*"
TEMPLATEPATTERN ".*"
RESOLUTION 96
OUTPUTFORMAT
NAME png
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
PROJECTION
"init=epsg:26913"
END
WEB
HEADER "/data/gis/www/html/ms_common/ms_header.html"
TEMPLATE "rmrt.html"
FOOTER "/data/gis/www/html/ms_common/ms_footer.html"
ERROR "http://gis.hq.wapa.gov/ms_common/errort.html?[mpt]&message=[errmsg]"
MINSCALE 100
IMAGEPATH "/data/gis/www/html/tmp/"
IMAGEURL "/tmp/"
#LOG "rmrt.log"
METADATA
WMS_TITLE "Rocky Mountain Region"
WMS_ABSTRACT "WAPA MapServer for the Rocky Mountain Region"
WMS_ACCESSCONSTRAINTS "none"
WMS_FEATURE_INFO_MIME_TYPE "text/html"
WMS_ONLINERESOURCE "http://gis.hq.wapa.gov/cgi-bin/mapserv?map=/data/gis/www/html/rmr/rmrt.map&"
WMS_SRS "EPSG:26913"
END
END
QUERYMAP
SIZE 400 300
STATUS ON
STYLE HILITE
COLOR 0 255 255
END
REFERENCE
STATUS ON
IMAGE graphics/refmap.png
EXTENT -315667.756 3995206.206 1037558.937 5080105.709
SIZE 250 200
MINBOXSIZE 10
MAXBOXSIZE 100
MARKER star
MARKERSIZE 20
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
LEGEND
STATUS ON
IMAGECOLOR 255 255 255
KEYSIZE 16 12
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 9
COLOR 0 0 0
END
END
SCALEBAR
STATUS EMBED
POSITION LR
COLOR 0 0 0
BACKGROUNDCOLOR 255 255 255
OUTLINECOLOR 0 0 0
UNITS MILES
INTERVALS 4
SIZE 200 5
TRANSPARENT ON
STYLE 0
LABEL
COLOR 255 255 255
OUTLINECOLOR 0 0 0
FONT "arial-bold"
TYPE truetype
SIZE 8
END
END
########## LAYER DEFINITIONS ##########
LAYER
NAME 'fotest'
STATUS OFF
TILEINDEX "/data/gis/vector/rmr/shapes/fo_test_idx"
TILEITEM "location"
TYPE POLYGON
CLASS
NAME "Index Test"
TEMPLATE "strs.html"
STYLE
OUTLINECOLOR 0 0 255
END
END
HEADER "strs_header.html"
FOOTER "strs_footer.html"
END
END
>>> On 10/28/2011 at 3:31 PM, in message <CA+YzLBdmmvztPpkRL1D=u5gc09zHDYO_7HmYDrWEUUOyJai1_w at mail.gmail.com>, Frank Warmerdam <warmerdam at pobox.com> wrote:
Eric,
Do things fail consistently fora given request? I would be
willing to do some examination of this problem this evening
(pacific time) if you can provide a canned demonstration of
the issue (mapfile+tileindex+query). I should be able to fake
the data referred to by the tileindex if necessary.
I don't feel that adding a spatial index (.qix) is the right
solution. Something is either wrong with your tileindex
or with mapserver (IMHO).
Best regards,
On Fri, Oct 28, 2011 at 2:09 PM, Eric Weisbender <Weisbend at wapa.gov> wrote:
> Hello,
>
> We are using a tileindex layer to draw multiple county parcel data layers.
> For some reason the query of these layers is either hit or miss. Sometimes
> it returns a query. Other times a query returns "Invalid field index 0"
> from the error file defined in the mapfile. And the third query result I'm
> getting is "Internal Server Error" from I assume apache. These results are
> all on the same data indexed by this one tileindex layer. Would it help if
> I built a shptree qix file and do I just do that for the tileindex file or
> all file the tileindex file is pointing to. I have wasted two day's on this
> and am completely open to any and all idea's. Thanks in advance.
>
> EW
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111031/051821b7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms_errors.bmp
Type: image/bmp
Size: 2574390 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111031/051821b7/attachment.bin>
More information about the MapServer-users
mailing list