tile index for large amount of shp

Giuseppe De Rossi giuseppe.derossi at EMAIL.IT
Sat Jul 15 02:14:01 PDT 2006


Hi Stephen,
I need your kind help : is this procedure right for  type text layer ?
I've some dwg files that I elaborate by using an application which generates
the shp files for every layer. There are polygons , lines , points and text,
since now I was able to generate tile index for polygons and lin.
Of course I'm collecting layers with the same geometry.
When I've applied the procedures for four file of TxT type , I got:

c:\tile4ms.exe F300_TestiVari.in F300_TestiVari-idx
Aborted. DBF fields do not match for file:F300_001100_TestiVari.shp
Aborted. DBF fields do not match for file:F300_001200_TestiVari.shp
Processed 4 of 4 file

I saw that in the shp file there are 4 rectanguler idx-shape and the idx-dbf
there are the name of four file, can I go on ? 
why do you thing I got this kijnd of error ?

Thanks in advance and best regards.

Giu 

	--------- Original Message --------
	Da: Stephen Woodbridge <woodbri at SWOODBRIDGE.COM>
	To: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
	Oggetto: Re: [UMN_MAPSERVER-USERS] tile index for large amount of shp
	Data: 09/07/06 15:11
	
	> 
> 
> 
> Hi Giuseppe,
> 
> Yes, a tileindex is exactly what you need here. It will improve 
> performance and significantly reduce your mapfile layers.
> 
> Try this:
> 
> ls map*-streets.shp > streets.in
> tile4ms streets.in streets-idx
> shptree streets-idx
> 
> and in your mapfile replace ALL you map*-streets layers with a single
> 
> Layer
> name ...
> tileindex "streets-idx"
> # no data statement
> ....
> end
> 
> Do the same for the other layers. So you have a tileindex for each 
> theme. And make sure all files have .qix spatial indexes for performance
> 
> for x in *.shp ; do shptree $x ; done
> 
> And enjoy :)
> 
> There is one caveat and that is the all map*-streets.shp files must have 
> the same attributes defined for a given tileindex and the attributes 
> must be in the same order within the files.
> 
> -SteveW
> 
> Giuseppe De Rossi wrote:
> > Hi,
> > I need some kind explanations about  tile index technique. At the moment
I
> > have about 750 layers as shp file. they are organized as:
> > 
> > map1-streets.shp
> > map1-rivers.shp
> > map1-particels.shp
> > ...
> > map1-referencedPointsN.shp
> > ...
> > ...
> > mapN-streets.shp
> > mapN-rivers.shp
> > ...
> > mapN-referencedPointsN.shp
> > 
> > Some are polygons type, some are lines and some are text and points.
> > The user can visualize one layer and turn it on or off  by using both
the
> > location : map1-particels and the theme: particel-map1. The real number
of
> > differen theme-layer is 
> > 
> > I've two oreder of problems , the maximum number of layers and the
> > performance.
> > could be  the first problem resolved by tile index tecnique ? can I
improve
> > the perfomance too without recompiling mapserve ?
> > can I apply this tech into my problem ? what are the single steps of
> > procedure ?
> > 
> > I appraciete any info and suggestion.
> > 
> > thanks in advance and best regards
> > 
> > 
> > Giu.
> > 
> > 
> > 
> >  
> >  --
> >  Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> >  
> >  Sponsor:
> >  Ti piace la chitarra? Impara a suonarla senza fatica ed evitando tutti
gli
> > errori, con l'aiuto di un maestro professionista
> >  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5144&d=20060709
> > 
> 
> 
>  
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a
dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi, clicca qui

 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2911&d=20060715



More information about the MapServer-users mailing list