Re: [OpenMap Users] Query regarding Shape Files

From: Chan Kwang Mien <chankm_at_i2r.a-star.edu.sg>
Date: Fri, 04 Feb 2005 09:13:08 +0800

hi Don,

I downloaded the roads.shp file from www.geotools.org.

I generated a spatial index from the roads.shp file as follows :

java com.bbn.openmap.layer.shape.SpatialIndex -c roads.ssx roads.shp

and

i also check using

java com.bbn.openmap.layer.shape.SpatialIndex -d -c roads.ssx

and it gives me the following output for the last line :

Record 825: 66850, 40 : 608450.91960898, 4924861.16290276, 608461.96373034,
4924891.45383137

I presume that is in decimal degree lat/lon data.

Then i modified the openmap.properties to include

shapePolitical.shapeFile=roads.shp
shapePolitical.spatialIndex=roads.ssx

But when i tried to display the roads.shp in Openmap, nothing was
displayed. Besides the roads.shp, I have also
tried many other shape files. All of them have the same problems.

Could you help me on this ? Thank you.


Regards,
Kwang Mien


>Hi Kwang,
>
>It depends on the data in the files, OpenMap needs the Shape files to
>contain decimal degree lat/lon data. There are many places on the web to
>download data that comes like this, most worldwide data sets are like
>this. There's an entry in the FAQ on the website for sources to download data.
>
>- Don
>
>On Feb 2, 2005, at 8:08 PM, Chan Kwang Mien wrote:
>
>>hi,
>>
>>I have downloaded shape files from many websites, for e.g. www.geotools.org,
>>in order to display them in Openmap. But I was not able to display these
>>shape files.
>>
>>Does anyone know of any websites where I could download shape files which
>>can be
>>displayed in Openmap.
>>
>>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 Feb 03 2005 - 20:05:12 EST

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