[Mapserver-users] Shapefile indexing

Siki Zoltan siki at agt.bme.hu
Wed Dec 17 13:03:04 PST 2003


Hi Martin,

You may use TILEINDEX and TILEITEM parameters to display tiled shapes.
e.g.
LAYER
	NAME index
	TILEINDEX your_layer_with_index_polygon
	TILEITEM "Location"
	STATUS ON
END

The Location is the name of a column in the tile index file, it contains
the name of the shape files.
If they are real tiles it speed up the mapserver processing.
In your case I think the layers cover the same area. So it won't speed
up anything.
 An other solution is to use GROUP parameter in several layers with the 
same group name.

Bye
Zoltán

On Wed, 17 Dec 2003, Martin Kiuru wrote:

> Hello,
> 
> I have 248 shapefiles with size about 500 KB each, and they cover all
> the area of Estonia. So, I need to display that shapes in one layer. To
> do that, I created an index file using "tile4ms" utility (kataster.shp).
> But when I'am trying to crate a new layer using kataster.shp, I see only
> squares (borders of shapefiles - with no polygons inside). So, how can I
> put polygons from shapefiles on my map using indexfile analogically with
> tiff - rasterfiles ? Here is my layer, which shows borders of shapefiles
> :
> 
> 
> LAYER
> NAME "INDEX"
> STATUS ON
> DATA "./shp/kataster"
> TYPE POLYGON
> UNITS METERS
> SIZEUNITS PIXELS
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> MAXSCALE 30000
> CLASS
> NAME "KATASTER1"
> TEMPLATE "ttt_query.html"
> STYLE
> SYMBOL 0
> OUTLINECOLOR 51 51 255
> SIZE 1
> MINSIZE 1
> MAXSIZE 100
> END
> END
> END
> 
> So, can I display many shapefiles in one layer, or I have to generate
> one huge shapefile and work with it ? Please, help!
> 
> Thanks in advice,
> 
> Martin Kiuru.
> 
> _______________________________________________
> 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