Hi there, I have a question relating to the AreaShapeLayer object. I've
kind of got things working, wonder if you can help:
I want to select a specific polygon from a shape file so I:
use the AreaShapeLayer (see line 1 below),
after specifying the shapefile/ssx file I reference the dbf file (line 5),
then reference the keyIndex column (line 7).
I then specify the matching string (line 8), in this case all areas with
a matching string of CaspianSea
finally I colour the matching polygons.
(ignore the numbers, there just for reference)
1)Coastline.class=com.bbn.openmap.layer.shape.areas.AreaShapeLayer
2)Coastline.prettyName=Coastline
3)Coastline.shapeFile=data/shape/semi_detailed_world.shp
4)Coastline.spatialIndex=data/shape/semi_detailed_world.ssx
5)Coastline.dbfFile=data/shape/semi_detailed_world.dbf
6)Coastline.nameIndex=5
7)Coastline.keyIndex=5
8)Coastline.areas=CaspianSea
9)Coastline.areas.CaspianSea.fillColor=00000000
10)Coastline.lineColor=ff000000
11)Coastline.fillColor=ffbdde83
This works fine with records with no spaces ie. "CaspianSea", it doesn't
seem to work with records with spaces ie. "New Zealand" as the
properties file entry would look like this:
8)Coastline.areas=New Zealand
is there a way of specifying records with spaces? I've tried with quotes
but no success!
also I can't reference records with just numbers eg:
8)Coastline.areas=0030
Any Ideas?
Thanks for your help, have a good weekend!
Christian.
-- [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 18 12:06:02 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:39 EDT