RE: [OpenMap Users] getData returns 0 items

From: Dave Brown <dave_at_dbws.net>
Date: Thu, 23 Feb 2006 10:42:40 -0000

Hi Don, thanks for replying again.

I'm displaying the map when my program starts and am capturing mousevents on
left & right click with the intention to set source & destination lat long
points accordingly.

What I'm really wanting to do is when both src & dest are set, is also try
and calculate a route between the points showing it on the map...

I'm baffled why when the projection changes when the map is drawn that no
roads are detected in the shapefile.. It displays fine, just doesn’t pick
up the fact it contains roads..



-----Original Message-----
From: Don Dietrick [mailto:dietrick_at_bbn.com]
Sent: 23 February 2006 02:31
To: Dave Brown
Cc: openmap-users_at_bbn.com
Subject: Re: [OpenMap Users] getData returns 0 items

Hi Dave,

The ShapeLayer reads the files for the first time when it thinks it's been
added to the map and receives a projection in the
projectionChanged(...) method. If you aren't really interested in
displaying the file and just want to pull the information out of the file,
you might want to use the com.bbn.openmap.dataAccess.shape.EsriGraphicList
to read the Shape file. You can also use the DbfTableModel to read the dbf
file.

Regards,

Don

On Feb 22, 2006, at 1:45 PM, Dave Brown wrote:

> Hi All,
>
> Hoping someone might be able to shed light on my current issue..
>
> I have a shapefile. a streetmap of cairo.. however routing is proving
> difficult as when I load the shapefile, the logging info is stating
> that no items were read.. no intersections and no roads..
>
> I was wondering is there a special property I have to add ? So far
> these are the properties i'm setting...
>
> shapeLayerProps.put("prettyName", "cairo");
> shapeLayerProps.put("lineColor", "000000");
> shapeLayerProps.put("fillColor", "BDDE83");
> shapeLayerProps.put("drawIntersections","true");
> shapeLayerProps.put("drawResults","true");
> shapeLayerProps.put("cairo.shapeFile", "C:/Cairo.shp");
> shapeLayerProps.put("cairo.spatialIndex", "C:/Cairo.ssx");
> shapeLayerProps.put("shapeFileList","cairo");
> shapeLayer.setProperties(shapeLayerProps);
>
> thanks again in advance.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.15.12/266 - Release Date:
> 21/02/2006


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.0.0/267 - Release Date: 22/02/2006
 
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.0.0/267 - Release Date: 22/02/2006
 
--
[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 Feb 23 2006 - 06:02:58 EST

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