The cvs file in the props file is the way to go on this question. The
following shows how to add a list of points to your map. There are two
entries, one for the actual point and the other for a text description.
I use two so you can turn on and off descriptions at certain ranges
while keeping the point shown. Basically I do this to avoid text
clutter when zoomed way out.
openmap.layers=majorcities majorcitypoints
# LocationLayer that holds cities. The palette for this layer lets
# you turn on the names and declutter matrix, if you want. The
# declutter matrix can get expensive at small scales.
majorcities.class=com.bbn.openmap.layer.location.LocationLayer
majorcities.prettyName=Major Cities
majorcities.locationHandlers=csvmajorcities
majorcities.useDeclutter=true
majorcities.declutterMatrix=com.bbn.openmap.layer.DeclutterMatrix
# Major Citiies points with no names location handlers
csvmajorcities.class=com.bbn.openmap.layer.location.csv.CSVLocationHandl
er
csvmajorcities.prettyName=Major Cities CSV
csvmajorcities.locationFile=data/Major_World_Cities.csv
csvmajorcities.csvFileHasHeader=true
csvmajorcities.locationColor=FFFF9966
csvmajorcities.nameColor=FF000000
csvmajorcities.showNames=true
csvmajorcities.showLocations=true
csvmajorcities.nameIndex=0
csvmajorcities.latIndex=5
csvmajorcities.lonIndex=4
csvmajorcities.csvFileHasHeader=true
# Major City points with no names
majorcitypoints.class=com.bbn.openmap.layer.location.LocationLayer
majorcitypoints.prettyName=Major City Points
majorcitypoints.locationHandlers=csvmajorcitypoints
majorcitypoints.useDeclutter=true
majorcitypoints.declutterMatrix=com.bbn.openmap.layer.DeclutterMatrix
majorcitypoints.pointImageURL=file:///usr/local/openmap-4.5.4/share/data
/icons/city.gif
# Major City points with no names location handlers
csvmajorcitypoints.class=com.bbn.openmap.layer.location.csv.CSVLocationH
andler
csvmajorcitypoints.prettyName=Major City Points CSV
csvmajorcitypoints.locationFile=data/Major_World_Cities.csv
csvmajorcitypoints.csvFileHasHeader=true
csvmajorcitypoints.locationColor=FFFF0000
csvmajorcitypoints.nameColor=FF000000
csvmajorcitypoints.showNames=false
csvmajorcitypoints.showLocations=true
csvmajorcitypoints.nameIndex=0
csvmajorcitypoints.latIndex=5
csvmajorcitypoints.lonIndex=4
csvmajorcitypoints.csvFileHasHeader=true
Martin
-----Original Message-----
From: Chris Hopkins [mailto:chopkins@cra.com]
Sent: Thursday, January 29, 2004 9:29 AM
To: 'openmap-users@bbn.com'
Subject: [OpenMap Users] FW: Generating shape files for Narragansett Bay
Hi all -
I have removed the attachments as I didn't want to send them to the list
(let me know if you would like them though). The basic question that my
co-worker has is how one generates a shapefile that OpenMap can use as a
background from a list of lat/lon data points. Has anyone done this?
Thanks!
- Chris
> -----Original Message-----
> From: Anna Salzberg
> Sent: Thursday, January 29, 2004 11:21 AM
> To: Chris Hopkins
> Cc: Mark Hanson
> Subject: Generating shape files for Narragansett Bay
>
>
> Hi Chris,
>
> As we've discussed, I've attached a file with list of polygons that
> define a more detailed map of the Narragansett Bay (near Newport, RI)
> than can be produced by zooming into the world map. In fact, I've
> attached 2 screen shots (with different zoom levels) of how the
> polygons fit into the zoomed world map. My questions are: 1. does BBN
> have a detailed map of Narragansett Bay? 2. if not, how can I generate
> a shape file based on these polygon lat lon points?
>
> Thanks much!!!
> Anna
>
-- [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"] -- [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 Jan 29 12:40:25 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT