Hi François,
I'd use the EsriPlugIn, and configure the PlugInLayer via the
openmap.properties file for the ScaleFilterLayer:
usparks.class=com.bbn.openmap.plugin.PlugInLayer
usparks.prettyName=US Parks
usparks.plugin=com.bbn.openmap.plugin.esri.EsriPlugIn
usparks.plugin.shp=file:///usr/local/openmap/share/data/park/park.shp
usparks.plugin.shx=file:///usr/local/openmap/share/data/park/park.shx
usparks.plugin.dbf=file:///usr/local/openmap/share/data/park/park.dbf
usparks.plugin.lineColor=ff000000
usparks.plugin.fillColor=ffff0000
The EsriLayer is probably going to be phased out, since it does less
than the PlugIn, and sometimes causes confusion.
The ScaleFilterLayer needs to be updated to handle PlugIns, too, as well
as properly manage 1) Layer status events from the active layer and 2)
the palettes from the active layer.
Hope this helps,
Don
On Wednesday, June 26, 2002, at 07:22 PM, Francois Rouaix wrote:
> Hi folks,
> I'm having some issues using the EsriLayer class
> The following properties file does not work (doesn't
> display park boundaries correctly). However
> if I switch the class definition to use EsriPlugin,
> (see commented line) then it works.
> Now the problem is I want this layer to be used in
> a ScaleFilterLayer. If I use EsriPlugin, I get an out of
> bound array acces in parseScales, apparently due to the
> fact that EsriPlugin is not an instance of Layer so it doesn't
> get added to the layer list of the ScaleFilterLayer object
> during its contruction.
>
> Am I confused in the usage of the EsriPlugIn, or is
> that a bug in the ScaleFilterLayer (or both) ?
>
> usparks.class=com.bbn.openmap.plugin.esri.EsriLayer
> # usparks.class=com.bbn.openmap.plugin.esri.EsriPlugIn
> usparks.prettyName=US Parks
> usparks.shp=file:///usr/local/openmap/share/data/park/park.shp
> usparks.shx=file:///usr/local/openmap/share/data/park/park.shx
> usparks.dbf=file:///usr/local/openmap/share/data/park/park.dbf
> usparks.lineColor=ff000000
> usparks.fillColor=ffff0000
>
> NB: the park boundaries shape files are available from bts.gov
>
> --f
> François Rouaix
> (310) 316 9529
>
>
>
> --
> [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 Fri Jun 28 09:28:35 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT