Re: Adding shape layers- cdnt yet add my own layer

From: Donald Dietrick <dietrick@bbn.com>
Date: Fri Dec 14 2001 - 08:22:16 EST

Hi anoop,

The file contains pre-projected data, which OpenMap can't display. The
coordinates in the file are outside -90 to 90 and -180 to 180, so
OpenMap doesn't know what to do with them.

- Don

On Friday, December 14, 2001, at 06:58 AM, anoop wrote:

> These may help u further ........
>  
> C:\servers\jakarta_tomcat\webapps\ROOT\data\shape>java
> com.bbn.openmap.layer.sha
> pe.ShapeFile states1_region.shp
> Shape file: states1_region.shp
> version: 1000
> length: 269068
> bounds:
>         min: ESRIPoint[-1,378,574.855199,778,488.689327]
>         max: ESRIPoint[1,491,556.573446,4,414,609.178043]
> records: 32
>  
> C:\servers\jakarta_tomcat\webapps\ROOT\data\shape>java
> com.bbn.openmap.layer.sha
> pe.ShapeFile -v states1_region.shp
> Checking file length...
> correct.
>
> ----- Original Message -----
> From: Donald Dietrick
> To: anoop
> Cc: openmap-users@bbn.com
> Sent: Tuesday, December 11, 2001 9:27 PM
> Subject: Re: Adding shape layers- cdnt yet add my own layer
>
> Hi Anoop,
>
> It sounds like the new layer is being added to the applet.  Do you know
> if the shp file has pre-projected data in it?  It has to be in decimal
> degrees.  You can use the SpatialIndex object to dump the bounding boxes
> to the screen if you run it in the ssx file, to see what the range of
> coordinates are.
>
> - Don
>
> On Tuesday, December 11, 2001, at 01:02 AM, anoop wrote:
>
> > Hi all,
> > this is how my openmap.properties look..the alterred part.
> >
> > # Layers listed here appear on the Map in the order of their names.
> > openmap.layers=date daynight graticule demo shapePolitical india
> >
> > openmap.startUpLayers=demo shapePolitical india
> >
> > # In OpenMap 4.4, the LayerAddPanel was added. This panel allows
> > # certain layers/plugins to be added to the application dynamically.
> > # Only certain layers/plugin have been updated to be able to work with
> > # the Inspector to set their inital parameters. To add a layer to this
> > # list, create a unique marker name for a generic instance of the
> > # layer, and then supply the <layername>.class field and
> > # <layername>.prettyName (see below) for that object. The class name
> > # will be the type of layer/plugin created by the LayerAddPanel, and
> > # this prettyName will be the generic description of the layer
> > # presented to the user. The user will have an opportunity to name
> > # the specific layer that gets created.
> > openmap.addableLayers=earth shape grat rpf shispi eipi
> >
> > grat.class=com.bbn.openmap.layer.GraticuleLayer
> > grat.prettyName=Graticule Layer
> >
> > shape.class=com.bbn.openmap.layer.shape.ShapeLayer
> > shape.prettyName=Shape Layer
> >
> >
> > # ###################################################
> > # These are the properties for individual layers. Consult the
> > # javadocs (Java API pages) for the individual layers for options.
> > # ###################################################
> >
> > ### Layer used by the overview handler
> > overviewLayer.class=com.bbn.openmap.layer.shape.ShapeLayer
> > overviewLayer.prettyName=Overview
> > overviewLayer.shapeFile=data/shape/dcwpo-browse.shp
> > overviewLayer.spatialIndex=data/shape/dcwpo-browse.ssx
> > overviewLayer.lineColor=ff000000
> > overviewLayer.fillColor=ffbdde83
> >
> > ###
> > # Demo layer - the layer's palette has a bunch of buttons to call
> > # the Drawing Tool.
> > demo.class=com.bbn.openmap.layer.DemoLayer
> > demo.prettyName=Demo
> >
> > ###
> > # DrawingToolLayer - no palette, just a generic layer to catch
> > # graphics from the OMDrawingToolLauncher, and to call the
> OMDrawingTool
> > # to edit graphics already part of the layer.
> > drawing.class=com.bbn.openmap.layer.DrawingToolLayer
> > drawing.prettyName=Truck Layer
> > drawing.addToBeanContext=true
> >
> > ### ShapeFile layers
> > shapePolitical.class=com.bbn.openmap.layer.shape.ShapeLayer
> > shapePolitical.prettyName=Political Boundaries
> > # Specify shapefile and spatial-index file as a filename or pathname.
> > # If the former, you must reference the directory where this file
> > # lives in your CLASSPATH
> > shapePolitical.shapeFile=data/shape/dcwpo-browse.shp
> > shapePolitical.spatialIndex=data/shape/dcwpo-browse.ssx
> > # Colors (32bit ARGB)
> > shapePolitical.lineColor=ff000000
> > shapePolitical.fillColor=ffbdde83
> >
> >
> > india.class=com.bbn.openmap.layer.shape.ShapeLayer
> > india.prettyName=India States
> > # Specify shapefile and spatial-index file as a filename or pathname.
> > # If the former, you must reference the directory where this file
> > # lives in your CLASSPATH
> > india.shapeFile=data/shape/states_region.shp
> > india.spatialIndex=data/shape/states_region.ssx
> > # Colors (32bit ARGB)
> > india.lineColor=99FF0000
> > india.fillColor=99FF0000
> >
> > ----- Original Message -----
> > From: Donald Dietrick
> > To: anoop
> > Cc: PRADEEP RAMACHANDRAN ; David Armstrong ; openmap-users@bbn.com
> > Sent: Tuesday, December 11, 2001 12:10 AM
> > Subject: Re: Adding shape layers
> >
> > Hi Anoop,
> >
> > Are you sure that the openmap.properties file being read is the one
> you
> > are modifying? Can you see your new layer on the Layers Menu or on the
> > Layer Panel?
> >
> > For applets, the openmap.properties has to be in the codebase.
> >
> > - Don
> >
> >
> > On Monday, December 10, 2001, at 04:14 AM, anoop wrote:
> >
> > > Hi,
> > > i have not been able to add my own shape layers to the omapplet.
> > > Using ShapeIndex i have generated a .ssx file and hv also edited the
> > > openmap.properties to add another layer, but there has been no
> > > difference at all on the map. Is there something else that i need to
> > > modify?
> > >
> > > thanx\
> > > anoop
> > >

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> > --
> > [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"]
>

--
[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 Fri Dec 14 08:20:51 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT