Re: [OpenMap Users] How to convert ESRI shapes to openmap shapes

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 11 Aug 2004 09:35:59 -0400

Hi Jan,

There's nothing special about the shape files, it's just that OpenMap
ShapeLayer can display the geometries inside the .shp files without
having to rely on the .shx (containing indexes into the .shp file for
each shape) and .dbf files (containing attributes for each shape). The
actual values of the shapes in the .shp file are assumed to be decimal
degree lat/lon.

The com.bbn.openmap.plugin.esri.EsriPlugIn does require the .shx and
.dbf file to be there, but it also provides access to the attributes of
the geometries displayed.

To get OpenMap to work for you, you'll either have to translate the
coordinates in the file, or modify the OpenMap code to make the
translation for you. You could modify the
com.bbn.openmap.dataAccess.shape.input.ShpInputStream to convert the
coordinates to dec deg lat/lon on the fly if you want to use the
ESRIPlugIn, or modify the various
com.bbn.openmap.layer.shape.ESRI*Record classes to to the translations
there when the byte[] array is decoded into coordinates (for the
ShapeLayer).

Hope this helps,

- Don

On Aug 11, 2004, at 6:12 AM, Jan Peters-Anders wrote:

> Hello all,
>
> I just gave up fiddling with my projections and I would like to ask if
> there
> is a way of transforming ESRI shapes to "openmap shapes" (sorry for my
> wording but since they do not have a dbf and shx file attached they
> must be
> a special type of shape files). I already built ssx files from my ESRI
> shapes, but I do not know, how to convert the shapes themselves.
>
> Thank you again
>
> Jan
>
> --
>
>
>
>
>
>
> .
>
> NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
> GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
>
> --
> [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"]
Received on Wed Aug 11 2004 - 09:37:05 EDT

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