Hi,
I have been experimenting with AreaShapeLayer. From what I see it allows you
to display objects in the shape file in different ways depending on some
attribute value. I have managed to display edges in a shape file that
represents roads in different ways based on the road type. One question. I
dont want to display certains types of road. If I just add attributes to the
openmap.properties file for the values I am interested in, the other values
are displayed using the default edge colour for the layer. The only way I
can see to not display the data I am not interested in is to make the
default edge colour for the layer transparent. However, this seems rather
inefficient because it still has to process all the data I am not interested
in. Is there any way to tell OpenMap to just ignore the data that does not
match one of the '<layer>.areas.<value>=...' in the properties file?
To be more concrete, say the following is in the properties file:
roadl.class=com.bbn.openmap.layer.shape.areas.AreaShapeLayer
roadl.prettyName=Roads
roadl.shapeFile=../shape/transportation/roadl.shp
roadl.spatialIndex=../shape/transportation/roadl.ssx
roadl.csvFile=../shape/transportation/roadl.csv
roadl.csvFileHasHeader=true
roadl.keyIndex=13
roadl.areas=14 15 16
roadl.areas.14.lineColor=ffff0000
roadl.areas.14.lineWidth=2
roadl.areas.15.lineColor=ffff0000
roadl.areas.15.lineWidth=1
roadl.areas.16.lineColor=ffff0000
roadl.areas.16.lineWidth=3
The properties specify I am interested in values 14, 15 and 16 which are
displayed in red with varying thickness. The CSV file also has values 0 and
999 in column 13 which are displayed in black. When I make the default edge
colour transparent the 0 and 999 values (which make up over 65% of the CSV
file) are no longer visible, but it seems to take just as long to render the
layer as when 0 and 999 are visible.
One other thing. The 'nameIndex' attribute allows you to identify a name for
an object which is displayed on the info line in gestures mouse mode. Is
there an easy way to display this name in the area layer itself beside the
object?
Thanks,
Paul
-- [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 Nov 21 02:46:16 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT