RE: [OpenMap Users] ESRI Layers, not showing attributes

From: Rick Lane <lane_richard_b_at_bah.com>
Date: Wed, 29 Jun 2005 13:24:19 -0400

Rubén,

Thanks for the help, however there are two issues:

1) setDrawingAttributes is a member of ShapeLayer, not ESRILayer

2) *somewhere* (I'm thinking in the .dbf file) these colors and other
attributes are stored, because when I go through the standard OpenMap-way of
importing the shape files through the UI, the colors are correct. I
shouldn't have to do it manually.

Rick

-----Original Message-----
From: Rubén Ruiz [mailto:vinilo_at_cancerbero.org]
Sent: Wednesday, June 29, 2005 1:04 PM
To: 'Rick Lane'
Subject: RE: [OpenMap Users] ESRI Layers, not showing attributes

Properties p = new Properties();
p.put("LiceColor","FFAABBCC");
...
...
layer.setDrawingAttributes(p);

Hope this helps..
Rubén Ruiz.

-----Mensaje original-----
De: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] En
nombre de Rick Lane
Enviado el: miércoles, 29 de junio de 2005 18:08
Para: openmap-users_at_bbn.com
Asunto: [OpenMap Users] ESRI Layers, not showing attributes

Hello,

I'm trying to load a shape file with attributes at runtime, without going
through the built-in "add layer" menu included with OpenMap. I have a dbf,
shp, and shx file, and when using the aforementioned "add layer" method, it
works fine, but whenever I create an ESRILayer object, it seems the graphics
draw, but some of the attributes (such as color) are not preserved
(everything is black).

String dbf = "c:/EEE1Lines.dbf";
String shp = "c:/EEE1Lines.shp";
String shx = "c:/EEE1Lines.shx";
EsriLayer layer = new EsriLayer("Thinger",
                                                dbf,
                                                shp,
                                                shx,
                                                DrawingAttributes.DEFAULT);

Is there a step I'm missing?

Thanks,
Rick

--
[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"]
--
[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 Wed Jun 29 2005 - 13:30:23 EDT

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