Hi François,
Are you adding vpflb to the openmap.components property list? That's
what adds it to the MapHandler, and how the layers would connect to it.
You should also add a
vpflb.path=(some name)
property, and the (some name) would be the name used in the
VPFLayer.libraryBean property.
Hope this helps,
- Don
On Thursday, July 25, 2002, at 04:18 PM, Francois Rouaix wrote:
> I'm trying to fine tune my map generation based on VMap0
> (e.g. go past simple political boundaries, and adding layers
> for other coverages).
> I'd like to use the .libraryBean feature as recommended in
> the doc, but can't get it to work.
>
> The following (two layers not using libraryBean) works:
> ----------------------------
> # Grass & Crops
> vpfgrass.class=com.bbn.openmap.layer.vpf.VPFLayer
> vpfgrass.prettyName=VPF Grass & Crops
> vpfgrass.vpfPath=/d/01/linux/VMap0/EURNASIA/vmaplv0;/d/01/linux/VMap0/NO
> AMER/vmaplv0;/d/01/linux/VMap0/SASAUS/vmaplv0;/d/01/linux/VMap0/SOAMAFR/
> vmaplv0
> vpfgrass.coverageType=veg
> vpfgrass.featureTypes=area
> vpfgrass.area=grassa cropa
> vpfgrass.fillColor=ffbdde83
>
> # Forest
> vpfforest.class=com.bbn.openmap.layer.vpf.VPFLayer
> vpfforest.prettyName=VPF Forest
> vpfforest.vpfPath=/d/01/linux/VMap0/EURNASIA/vmaplv0;/d/01/linux/VMap0/N
> OAMER/vmaplv0;/d/01/linux/VMap0/SASAUS/vmaplv0;/d/01/linux/VMap0/SOAMAFR
> /vmaplv0
> vpfforest.coverageType=veg
> vpfforest.featureTypes=area
> vpfforest.area=treesa
> vpfforest.fillColor=ff449000
> ------------------------------
>
> However if I switch to:
>
> ------------------------------
> vpflib.class=com.bbn.openmap.layer.vpf.LibraryBean
> vpflib.vpfPath=/d/01/linux/VMap0/EURNASIA/vmaplv0;/d/01/linux/VMap0/NOAM
> ER/vmaplv0;/d/01/linux/VMap0/SASAUS/vmaplv0;/d/01/linux/VMap0/SOAMAFR/vm
> aplv0
>
> # Grass & Crops
> vpfgrass.class=com.bbn.openmap.layer.vpf.VPFLayer
> vpfgrass.prettyName=VPF Grass & Crops
> #
> vpfgrass.vpfPath=/d/01/linux/VMap0/EURNASIA/vmaplv0;/d/01/linux/VMap0/NO
> AMER/vmaplv0;/d/01/linux/VMap0/SASAUS/vmaplv0;/d/01/linux/VMap0/SOAMAFR/
> vmaplv0
> vpfgrass.libraryBean=vpflib
> vpfgrass.coverageType=veg
> vpfgrass.featureTypes=area
> vpfgrass.area=grassa cropa
> vpfgrass.fillColor=ffbdde83
>
> # Forest
> vpfforest.class=com.bbn.openmap.layer.vpf.VPFLayer
> vpfforest.prettyName=VPF Forest
> #
> vpfforest.vpfPath=/d/01/linux/VMap0/EURNASIA/vmaplv0;/d/01/linux/VMap0/N
> OAMER/vmaplv0;/d/01/linux/VMap0/SASAUS/vmaplv0;/d/01/linux/VMap0/SOAMAFR
> /vmaplv0
> vpfforest.libraryBean=vpflib
> vpfforest.coverageType=veg
> vpfforest.featureTypes=area
> vpfforest.area=treesa
> vpfforest.fillColor=ff449000
> --------------------------------------
> then I get the errors
>
> ImageServer: image request adding layer graphics from : VPF Forest
>
> *** ERROR ***
> VPFLayer.getRectangle: Data path probably wasn't set correctly (). The
> warehouse not initialized.
> *************
> ImageServer: image request adding layer graphics from : VPF Grass &
> Crops
>
> *** ERROR ***
> VPFLayer.getRectangle: Data path probably wasn't set correctly (). The
> warehouse not initialized.
> *************
>
> This is in the context of an ImageServer.
> Am I doing something wrong ?
>
> François Rouaix
> (310) 316 9529
> http://www.rouaix.org/fmr/
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Thu Jul 25 16:32:08 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT