[Mapserver-users] Problem wtih tileindex and queryByRect()

Daniel Lagos dlagos at vianauta.com
Tue Jul 15 12:48:05 EDT 2003


Hello everybody,

I am using: 

redhat 7.1,

php 4.0.6,
configure' '--with-apxs' '--with-mysql' '--enable-dbase' '--enable-ftp' 
'--with-freetype-dir=/usr/lib' '--with-png-dir=/usr/lib' 
'--with-jpeg-dir=/usr/lib' '--with-tiff-dir=/usr/lib' 
'--with-zlib-dir=/usr/lib' '--with-gd' '--x-libraries=/usr/X11R6/lib' 
'--x-includes=/usr/X11R6/include' '--with-readline=/usr/include/readline' 
'--with-pgsql' '--enable-trans-sid' '--with-regex=system'

php/mapscript 3.5
./configure --with-proj --with-png --with-gdal --with-freetype --with-jpeg 
--with-php=/usr/include/php --with-gd --with-apxs=/usr/sbin/apxs


and i trying to use tile shapefile (shp2tile-1.1), all works well, however my 
problem are:

1. message Warning when use property DATA and TILEINDEX in the LAYER OBJECT at 
MAPFILE:
	
LAYER
    NAME nodoMetro

    METADATA
            "DESCRIPTON" "Estaciones de Metro"
            "RESULT_FIELDS" "ID"
    END

    TYPE POINT
    STATUS OFF
    LABELITEM "ESTACION"
    LABELMAXSCALE 20000
    DATA NodoMetro
    TILEINDEX TileNodoMetro
    TILEITEM LOCATION
    ...
	error: Warning: MapServer Error in msTiledSHPOpenFile(): Unable to open a 
single tile to use as a template

but if i change and comented DATA parameter:

LAYER
    NAME nodoMetro

    METADATA
            "DESCRIPTON" "Estaciones de Metro"
            "RESULT_FIELDS" "ID"
    END

    TYPE POINT
    STATUS OFF
    LABELITEM "ESTACION"
    LABELMAXSCALE 20000
  
------->   #DATA NodoMetro <---------     
   
    TILEINDEX TileNodoMetro
    TILEITEM LOCATION
     ....

work fine, but my  problem is when i use the function queryByRect() with this 
Layer no get results.

i am very confused...any idea??.

Thanks in advance,

PD: sorry by my english.

-- 
____________________________________________
Daniel A. Lagos H.
Vianauta S.A.
Lota 2257 Of. 401, Providencia
Santiago, CHILE
Tel:  +56 (2) 234 1575
Fax: +56 (2) 234 1578
www.vianauta.com





More information about the mapserver-users mailing list