[OpenMap Users] applet and cvs data

From: Philippe A <pa.1919_at_wanadoo.fr>
Date: Wed, 12 Jan 2005 13:56:06 +0100

Hi all,
first I would like to congratulate all the people involved in creating and
debugging this amazing software which is openmap. I would also add that the
open source principle is really fully applied here. So again Thank you to
all the contributors to this great experiment.
Well, as you probably guessed this post is not only to congratulate (but I m
really sincere in my appreciation of all this work and cooperation). I m
afraid I m unable to use all the features of Openmap as an applet.
I need to display data in csv form with omapplet.
I created my data file and put it in the share/data directory.
I added the layer in the properties file and I tested all with openmap (as
an application) and I got what I wanted.
However when I tried the same operation with omapplet (having copied in a
separate directory omapplet, openmap.jar, openmap.properties and the data
subdirectory) for a local test, the applet loaded normally and everything
worked fine except that my data where not displayed. Curiously my layer
(called positions) appeared active in the panel but did not produce anything
on the map.
I m rather baffled as that the cities layer is displayed perfectly and I
have put my positions.csv in the same subdirectory, both are csv layers and
in the same place.
Is it my data location which is bad ? (in the properties file I put it
data/positions.csv
Is something hardcoded with the cities layer which could explain the
difference ?
Is it a security problem ?
Should I extend openmapapplet ?
Thanks for any idea, probably this question has already been asked but I
didn't manage to find the relevant answer in the archive.

This is the relevant part part of my properties file (cities to compare)
""
###
# 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.
cities.class=com.bbn.openmap.layer.location.LocationLayer
cities.prettyName=World Cities
cities.locationHandlers=csvcities
cities.useDeclutter=false
cities.declutterMatrix=com.bbn.openmap.layer.DeclutterMatrix

csvcities.class=com.bbn.openmap.layer.location.csv.CSVLocationHandler
csvcities.prettyName=World Cities
csvcities.locationFile=data/cities.csv
csvcities.csvFileHasHeader=true
csvcities.locationColor=FF0000
csvcities.nameColor=008C54
csvcities.showNames=false
csvcities.showLocations=true
csvcities.nameIndex=0
csvcities.latIndex=5
csvcities.lonIndex=4
csvcities.csvFileHasHeader=true

###
# test of h4 data on a csvlayer
positions.class=com.bbn.openmap.layer.location.LocationLayer
positions.prettyName=positions
positions.locationHandlers=csvlocationhandler
positions.useDeclutter=false
positions.declutterMatrix=com.bbn.openmap.layer.DeclutterMatrix

csvlocationhandler.class=com.bbn.openmap.layer.location.csv.CSVLocationHandl
er
csvlocationhandler.prettyName=positions
csvlocationhandler.locationFile=data/posb12151500.csv
csvlocationhandler.csvFileHasHeader=true
csvlocationhandler.locationColor=FF0000
csvlocationhandler.nameColor=008C54
csvlocationhandler.showNames=true
csvlocationhandler.showLocations=true
csvlocationhandler.nameIndex=0
csvlocationhandler.latIndex=1
csvlocationhandler.lonIndex=2
""

Thanks for reading.

Philippe Albouy


--
[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 Jan 12 2005 - 08:18:30 EST

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