Re: [OpenMap Users] Verifying shapefiles with OpenMap ShapeFile class

From: Brian M Dube <brian.dube_at_gmail.com>
Date: Sat, 17 Oct 2009 12:26:02 -0700

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_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sat Oct 17 2009 - 15:26:27 EDT

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