[Mapserver-users] tileindex issue.

Jason M. Nielsen jnielsen at aero-graphics.com
Fri Apr 23 13:40:38 EDT 2004


NAME SLC
STATUS ON
SIZE 558 360
#NAD83 Utah Central US Foot
EXTENT 1467000.000 7325000.000 1565000.000 7478000.000
UNITS FEET 
SHAPEPATH "/var/www/secure/mapserverdata"
IMAGECOLOR 0 0 0  
IMAGETYPE PNG24
FONTSET "fonts/fonts.list"

...

LAYER
  NAME slc2002tiles
  TILEINDEX "sheets/slc/slc2002sheets"
  TILEITEM "location"
  STATUS ON
  TYPE POLYGON
  CLASSITEM "location"
  CLASS
    STATUS ON
    NAME "poly"
    COLOR 200 200 200
    OUTLINECOLOR 0 0 0
  END
END


ogrinfo -al slc2002sheets.shp | more
INFO: Open of `slc2002sheets.shp'
using driver `ESRI Shapefile' successful.

Layer name: slc2002sheets
Geometry: Polygon
Feature Count: 16
Extent: (1468183.750000, 7329842.500000) - (1563787.500000, 7473606.250000)
Layer SRS WKT:
(unknown)
location: String (255.0)
OGRFeature(slc2002sheets):0
  location (String) = A1.tif
  POLYGON ((1468183.750 7473606.250,1492086.250 7473606.250,1492086.250
7437663.750,1468183.750 7437663.750,1468183.750 7473606.250))

OGRFeature(slc2002sheets):1
  location (String) = A2.tif
  POLYGON ((1468183.750 7437666.250,1492086.250 7437666.250,1492086.250
7401723.750,1468183.750 7401723.750,1468183.750 7437666.250))

...
-rw-r--r--  1 root root       704 Apr 23 10:21 d3.txt
-rw-r--r--  1 root root       117 Apr 23 10:21 d4.tfw
-rw-r--r--  1 root root 412491136 Apr 23 10:22 d4.tif
-rw-r--r--  1 root root       704 Apr 23 10:22 d4.txt
[root at localhost mapserverdata]# pwd
/var/www/secure/mapserverdata


Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named
'slc2002tiles'. in /var/www/html/mymstest2/slc0.phtml on line 55

Warning: [MapServer Error]: msTiledSHPOpenFile(): Unable to open a single tile
to use as a template in layer slc2002tiles. in
/var/www/html/mymstest2/slc0.phtml on line 55

Warning: [MapServer Error]: msSHPOpenFile(): (/var/www/html/mymstest2/d4.tif) in
/var/www/html/mymstest2/slc0.phtml on line 55

Warning: [MapServer Error]: msSHPOpenFile():
(/var/www/secure/mapserverdata/d4.tif) in /var/www/html/mymstest2/slc0.phtml on
line 55


It appears to find the shapefile and reference the location attribute. Presuming
this since it at least on this second check tried to use the data path specified
in the map file.

I went so far as to force the full path to the images in the shape file as well
as modifying the DATA path and even added a DATA path to the LAYER. I have
attempted to use the base mapserverdata directory in all situations as well as
the desired location "path"/sheets/slc.

No matter what I do the best result I get is it finds the shape file but then
cant find the images even when it indicates its looking in the very place they
exist.

Confused... Anyone know what I am doing wrong?

Thanks.



More information about the mapserver-users mailing list