[OpenMap Users] AreaShapeLayer

From: Mohamed Tamer Refaei <mtamer_at_gmail.com>
Date: Thu, 28 May 2009 15:57:16 -0400

I have a landuse shape file for one of the US states that I am trying
to display in OPENMAP and color each are differently. I have a .shp
file and I created a .csv file out of a .dbf file that came along with
the .shp file. The code I am using is shown below:

                AreaShapeLayer aslLayer = new AreaShapeLayer();
                Properties aslLayerProps = new Properties();
                aslLayerProps.put("prettyName", layer_name);
                aslLayerProps.put("lineColor", "ff000000");
                aslLayerProps.put("fillColor", "00000000");
                aslLayerProps.put("csvFile", "h.csv");
                aslLayerProps.put("shapeFile", "h.shp");

                  aslLayerProps.put("keyIndex", 1);
                  aslLayerProps.put("nameIndex", 1);
                aslLayerProps.put("csvFileHasHeader", "false");

                aslLayerProps.put("areas", 21);
                aslLayerProps.put("21.fillcolor", "ffCCCCCC");
                 aslLayer.setProperties(aslLayerProps);
                                .
                                .
                                .
                               and then I add the layer to a LayerHandler.

The first few lines of the .csv file is shown below:
,43,
,42,
,21,
,43,
,43,
,43,
,43,
,21,
,42,
,11,
,12,
,11,

The shape file is dispalyed correctly but it is not colored at all.
I appreciate any help with the issue.

Regards
-- 
----------------------------------
Tamer Refaei
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu May 28 2009 - 15:59:29 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT