hi Don,
thanks for your help.
I have downloaded a few free shape files from some websites and I would
like to open these shape files
in OpenMap.
I changed the shapePolitical.shapeFile and shapePolitical.spatialIndex in
OpenMap.properties to the
names of those shape files. for example :
shapePolitical.shapeFile=data/shape/roads.shp
shapePolitical.spatialIndex=data/shape/roads.ssx
However, there was no display of the shape files. I also created the ssx using
java -cp com.bbn.openmap.layer.SpatialIndex -c roads.ssx roads.shp. But
that didn't help.
I assume that OpenMap should be able to open any files with .shp extension.
Is that true ?
Thank you.
regards,
Kwang Mien
>Hi Kwang,
>
>To change the layers in the OpenMap application, you modify the
>openmap.properties file. There are instructions in the openmap.properties
>file for modifying the different properties. The openmap.layers property
>lists keywords for the different layers created, and the properties using
>that keyword as a prefix are used by that layer to configure itself. For
>instance, the default world layer uses the shapePolitical keyword, and the
>shapePolitical.class property defines the Layer class created. The
>shapePolitical.shapeFile property defines the shape file used for that
>layer's political shapes. That property would be the one you would change
>for a different shape file.
>If you have data in a different format, you would add a different keyword
>to the openmap.layers property and define a set of properties appropriate
>for the new type of layer you are adding.
>
>Hope this helps,
>
>Don
>
>On Dec 29, 2004, at 7:49 PM, Chan Kwang Mien wrote:
>
>>hi,
>>
>>I am new to using OpenMap 4.6.1.
>>I have a query regarding loading maps in OpenMap 4.6.1. By default, when
>>I run OpenMap,
>>the World Map is loaded.
>>
>>Can anyone tell me the procedure to load my own map, i.e. to replace the
>>World Map with another
>>map ?
>>
>>Thank you.
>>
>>regards,
>>Kwang Mien
>>--
>>[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"]
>>
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Don Dietrick, dietrick_at_bbn.com
>BBN Technologies, Cambridge, MA
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>--
>[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 Thu Dec 30 2004 - 00:46:11 EST