About ShapeTree and Raster TileIndex

Bart van den Eijnden bartvde at XS4ALL.NL
Mon May 16 06:40:20 PDT 2005


You should not use the qix entension directly in the TILEINDEX. Mapserver
will handle that part for you behind the scenes.

Use
TILEINDEX "MSRAS_12000.shp"

Or:
TILEINDEX "MSRAS_12000"

My experience is that Mapserver only finds the qix file (and uses it) in
the latter case.

Best regards,
Bart

On Mon, 16 May 2005 15:19:32 +0200, Akio Neuchi <neuchi at TCI-COM.BIZ> wrote:

> Hi Bart,
>
> to test whether the map file looks .qix or directly to .shp,
> I put the extention.
>         TILEINDEX "MSRAS_12000.qix"
> #       TILEINDEX "MSRAS_12000.shp"
> Do you think without the extention, the system see .qix file first?
>
> Best regards,
> Akio
>
> -----Original Message-----
> From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL]
> Sent: Friday, May 13, 2005 7:45 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU; neuchi at TCI-COM.BIZ
> Subject: Re: [UMN_MAPSERVER-USERS] About ShapeTree and Raster TileIndex
>
>
> Hi,
>
> can you try (without the .shp extension):
>
> TILEINDEX "MSRAS_12000"
>
> Btw, the quadtree index only makes a difference if you zoom in, not when
> you
> view the whole layer.
>
> Best regards,
> Bart
>
> Bart van den Eijnden
> Syncera-ITSolutions
> Postbus 270
> 2600 AG  DELFT
>
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl
>
>>>> Akio Neuchi <neuchi at TCI-COM.BIZ> 05/13/05 12:03pm >>>
> Hello to all,
>
> I just made a *.qix file from *.shp file for Raster TileIndex images --
> around 800 gif images,
> and tested with and without shape tree. The result was there is no
> difference in processing speed.
>
> The procedure was,
> gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif,
> shptree MSRAS_12000.shp,
> and I got MSRAS_12000.qix.
> (Under MSRAS_12000 directory there are 800 gif and wld files.)
>
> I wonder if I am following the right procedure, and if so,
> why there is no difference on the processing.
>
> In addition, I have around 100 of Vector TileIndex shape directories,
> and If ShapeTree really works, I am planning to build *.qix for each
> Vector
> shapes.
>
> My OUTPUTFORMAT amd Raster layer are like these:
>
> OUTPUTFORMAT
>     NAME gif
>     MIMETYPE "image/gif"
>     DRIVER "GD/GIF"
>     EXTENSION "gif"
>     IMAGEMODE RGB
> #  IMAGEMODE PC256
>     TRANSPARENT FALSE
>     FORMATOPTION "INTERLACE=OFF"
> END
>
> ### RASTER Layer
> LAYER
>         NAME "MSRAS_12000"
>         GROUP "B_RASTER"
>         TILEINDEX "MSRAS_12000.qix"
> #       TILEINDEX "MSRAS_12000.shp"
>         TILEITEM "Location"
>         TYPE RASTER
> #       STATUS ON
>         STATUS DEFAULT
>         MINSCALE 50
>         MAXSCALE 5000000
>         PROJECTION
>                 "proj=latlong"
> #               "init=epsg:26915"
>         END
> END
>
> Thank you for your suggestions.
> Akio
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the MapServer-users mailing list