Verifying shapefiles with OpenMap ShapeFile class

View: New views
2 Messages — Rating Filter:   Alert me  

Verifying shapefiles with OpenMap ShapeFile class

by Reese, Nathan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Verifying shapefiles with OpenMap ShapeFile class

I am unable to verify a shapefile using the documented command line arguments for the ShapeFile class.

My test directory contains the openmap jar and the sample shapefile.  The shapefile includes .shp, .shx, .dbf, and .prj files.

>From the command line I have tried the following
>java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.shp
>java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.shx
>java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.dbf
>java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile

All result in the error statements provided below
*** ERROR ***
ShapeLayer SpatialIndex: problem setting up the shape files:
  shape file: data/shape/dcwpo-browse.shp
  spatial index file: data/shape/dcwpo-browse.ssx
*************

*** ERROR ***
ShapeLayer SpatialIndex: problem setting up the shape files:
  shape file: data/shape/cntry02/cntry02.shp
  spatial index file: data/shape/cntry02/cntry02.ssx
*************

I am confused by this response.  Why is the application looking for dcwpo-browse.ssx and cntry02.ssx?  Do I need to set up a properties file?  Am I using the ShapeFile class as intended?  Is there a better way to verify and validate a shapefile using openmap?

Thanks,

Nathan


Re: Verifying shapefiles with OpenMap ShapeFile class

by Brian M Dube :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 17, 2009 at 02:39:21PM -0400, Reese, Nathan wrote:
> I am unable to verify a shapefile using the documented command line arguments for the ShapeFile class.
>
> My test directory contains the openmap jar and the sample shapefile.  The shapefile includes .shp, .shx, .dbf, and .prj files.
>
> >From the command line I have tried the following
> >java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.shp
> >java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.shx
> >java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile.dbf
> >java -jar openmap-4.6.4.jar com.bbn.openmap.layer.shape.ShapeFile -v testShapeFile

`java -jar' is not what you want to run a class like this. You want
`java -cp openmap-4.6.4.jar ...' and then specify the class as you
have above.

Brian

> All result in the error statements provided below
> *** ERROR ***
> ShapeLayer SpatialIndex: problem setting up the shape files:
>   shape file: data/shape/dcwpo-browse.shp
>   spatial index file: data/shape/dcwpo-browse.ssx
> *************
>
> *** ERROR ***
> ShapeLayer SpatialIndex: problem setting up the shape files:
>   shape file: data/shape/cntry02/cntry02.shp
>   spatial index file: data/shape/cntry02/cntry02.ssx
> *************
>
> I am confused by this response.  Why is the application looking for dcwpo-browse.ssx and cntry02.ssx?  Do I need to set up a properties file?  Am I using the ShapeFile class as intended?  Is there a better way to verify and validate a shapefile using openmap?
>
> Thanks,
>
> Nathan

--
Brian M. Dube
Aircraft Owners and Pilots Association, Member 05135381
Experimental Aircraft Association, Member 1002851

--
[To unsubscribe to this list send an email to "majdart@..."
with the following text in the BODY of the message "unsubscribe openmap-users"]