[Cartoweb-users] tileindex and layer.ini

giuseppe.derossi at email.it giuseppe.derossi at email.it
Thu Jul 13 03:05:57 EDT 2006


Hi Pierre,
first thank you very much for your support.
I got it: in the last step everything was ok, no error messaage but no map,
in my last attemp, before asking for another help of yours,   I've added the
colour, and the map appeared :-)) .

Thanks and best regards.

Giu



	--------- Original Message --------
	Da: Pierre GIRAUD <pierre.giraud at camptocamp.com>
	To: 
	        Cc: cartoweb-users at lists.maptools.org
	Oggetto: Re: [Cartoweb-users] tileindex and layer.ini
	Data: 12/07/06 09:29
	
	> 
> 
> 
> The TILEITEM parameter should give the name of the field in the 
> shapefile that points to the name of each tile.
> 
> If you created your tileindex shapefile with the gdaltindex command, you 
> don't need to specify any TILEITEM as it is defaultly set to LOCATION 
> (like in the built shapefile).
> 
> Regards
> 
> giuseppe.derossi at email.it wrote:
> 
> >Hi Pierre,
> >You're right, I forgot to move the F636_PRG-IDX.(shp,dbf,idx) in the data
> >directory.
> >
> >Unfortunately my problems are not over. In Fact now I'm fighting against
> >thie error:
> >
> >Class : SoapFaultWrapperMessage : Mapserver error: Error in msDrawMap():
> >Failed to draw layer named 'F636_PRG-IDX'.
> >Error in msDBFGetItemIndex(): Item 'F636_PRG-IDX' not found.
> >
> >I've created the F636_PRG-IDX.(shp,dbf,idx) and moved them in the
directory.
> >All files I merged, have the same structure.
> >
> >In the .map and .map.ini 
> >LAYER 
> >    NAME "F636_PRG-IDX"
> >    STATUS ON 
> >    TILEINDEX "F636_PRG-IDX.shp" 
> >    TILEITEM "F636_PRG-IDX" 
> >    TYPE POLYGON
> >    
> >  END  
> >
> >Can you help me ?
> >
> >Thanks in advance.
> >
> >Giu
> >
> >
> >
> >	--------- Original Message --------
> >	Da: Pierre GIRAUD <pierre.giraud at camptocamp.com>
> >	To: 
> >	        Cc: cartoweb-users at lists.maptools.org
> >	Oggetto: Re: [Cartoweb-users] tileindex and layer.ini
> >	Data: 11/07/06 13:15
> >	
> >	> 
> >  
> >
> >>Hello,
> >>
> >>Of course Cartoweb is able to handle tileindexes.
> >>It doesn't do something special in this case.
> >>
> >>The error ti reports is a Mapserver error. It doesn't find the shapefile

> >>where it is expected to be.
> >>
> >>Is your tileindex in the right place ?
> >>C:wampwwwcartoweb3/projects/F636/server_conf/F636/F636_PRG-IDX.shp
> >>C:wampwwwcartoweb3/projects/F636/server_conf/F636/data/F636_PRG-IDX.shp
> >>
> >>Regards.
> >>
> >>Pierre
> >>
> >>
> >>giuseppe.derossi at email.it wrote:
> >>
> >>    
> >>
> >>>Hi,
> >>>I'm testing the tile index tecnique which consists on condencing some
> >>>      
> >>>
> >layer
> >  
> >
> >>>of the same theme and the same features into a index_layer, so one can
> >>>manage a lot of number of layers.
> >>>I've inserted a text as following in the .map and .map.ini :
> >>>
> >>>
> >>> LAYER 
> >>>   NAME "F636_PRG-IDX"
> >>>   STATUS ON 
> >>>   TILEINDEX "F636_PRG-IDX.shp" 
> >>>   TILEITEM "F636_PRG-IDX" 
> >>>   TYPE POLYGON
> >>> END 
> >>>
> >>>then I tryed to update the layer.ini, according to the folowwing :
> >>>
> >>>; layers 
> >>>layers.root.className = LayerGroup 
> >>>layers.root.children =  Layers, City
> >>>layers.root.rendering = block 
> >>>
> >>>
> >>>
> >>>layers.Layers.className = LayerGroup 
> >>>layers.Layers.children = [...some other layer...],  F636_PRG
> >>>layers.Layers.label = Layers  
> >>>
> >>>
> >>>[...some other layer...],  
> >>>
> >>>
> >>>layers.F636_PRG.className = LayerGroup 
> >>>layers.F636_PRG.children = F636_PRG-IDX
> >>>layers.F636_PRG.label =  F636_PRG
> >>>
> >>>layers.F636_PRG-IDX.className = Layer 
> >>>layers.F636_PRG-IDX.label = F636_PRG
> >>>layers.F636_PRG-IDX.msLayer = F636_PRG-IDX
> >>>
> >>>
> >>>On running after a good compilation I got :
> >>>
> >>>Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
> >>>C:wampwwwcartoweb3commonStructHandler.php(47) : eval()'d code on line 1
> >>>
> >>>Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
> >>>C:wampwwwcartoweb3commonStructHandler.php(47) : eval()'d code on line 1
> >>>
> >>>Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
> >>>C:wampwwwcartoweb3commonStructHandler.php(47) : eval()'d code on line 1
> >>>
> >>>But I can see the Map and the box for choosing the layer but on turning
> >>>      
> >>>
> >the
> >  
> >
> >>>PRG layer on I got :
> >>>
> >>>
> >>>Class : SoapFaultWrapperMessage : Mapserver error: Error in
msDrawMap():
> >>>Failed to draw layer named 'F636_PRG-IDX'.
> >>>Error in msSHPOpenFile():
> >>>(C:wampwwwcartoweb3/projects/F636/server_conf/F636/F636_PRG-IDX.shp)
> >>>Error in msSHPOpenFile():
>
>>>(C:wampwwwcartoweb3/projects/F636/server_conf/F636/data/F636_PRG-IDX.shp)
> >>>
> >>>
> >>>and a serie of other error.
> >>>
> >>>Is there an error in the layer.ini
> >>>Is there anyone who can help me ? Does Cartoweb support the tile inedx
> >>>tecnique ? 
> >>>could the auto layer tecnique  be used togheter ?
> >>>
> >>>Thanks and best regards.
> >>>
> >>>
> >>>Giu
> >>>
> >>>
> >>>
> >>>--
> >>>Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> >>>
> >>>Sponsor:
> >>>Grande Offerta di Benvenuto Cassine di Pietra:
> >>>36 bottiglie di ottimo vino veneto direttamente a casa tua!
> >>>
> >>>Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3923&d=20060711
> >>>
> >>>
> >>>_______________________________________________
> >>>Cartoweb-users mailing list
> >>>Cartoweb-users at lists.maptools.org
> >>>http://lists.maptools.org/mailman/listinfo/cartoweb-users
> >>> 
> >>>
> >>>      
> >>>
> >>-- 
> >>_________________________________________________________
> >>Pierre GIRAUD
> >>Géomaticien, Analyste
> >>
> >>Camptocamp France SAS
> >>Savoie Technolac, BP 352
> >>73377 Le Bourget du Lac, Cedex 
> >>
> >>Tel : 00 33 4 79 44 44 93
> >>Mail : pierre.giraud at camptocamp.com
> >>http://www.camptocamp.com  
> >>
> >>
> >>
> >> 
> >>    
> >>
> > --
> > Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> > 
> > Sponsor:
> > Vuoi cambiare i tuoi interessi ma non la tua banca? Prova con Conto
Arancio
> > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5039&d=20060711
> >
> >
> >  
> >
> 
> 
> -- 
> _________________________________________________________
> Pierre GIRAUD
> Géomaticien, Analyste
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex 
> 
> Tel : 00 33 4 79 44 44 93
> Mail : pierre.giraud at camptocamp.com
> http://www.camptocamp.com  
> 
> 
> 
>  
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Logos Finanziaria SPA. Società di credito ad erogazione diretta. Fino a
30.000 euro in 24 ore! Clicca e scopri come

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




More information about the Cartoweb-users mailing list