[OpenMap Users] Re: problem setting up the shape files even with openmap.jar file added to libraries in build parh

From: Bart Jourquin <bart.jourquin_at_fucam.ac.be>
Date: Tue, 30 Nov 2004 14:29:08 +0100

No, the shapefiles are in openmap/share/data/shape dir.

I solved this the following way:

- copy the relevant shape files in a subdir of your project:
"project/data" for instance
- Add this dir in the Java Build Path (add it as a class folder)

It works here, both with Eclipse and JBuilder....

Bart



Le mardi 30 novembre 2004 à 08:12 -0500, Steve Frierdich a écrit :

> Bart;
> Thanks for you response. I have already done what you suggested, if I
> understood the email you sent me. In the Java Build Path the
> openmap.jar file has been already added in the libraries tab. There
> is no selection in the libraries tab to include directories like to
> look in for files like there is in Visual Studio. I am guessing that
> since the openmap.jar has been included in the Java Build Path that
> the project automatically knows where to look for files.
>
> Steve
>
> Bart Jourquin wrote:
>
> > You need to add the directory which contains the shapes files into
> > the Java Build Path (Right click on the project in the navigator,
> > open the project's properties, choose Java Build Path and add the
> > relevant dir in the Librairies tab....
> >
> >
> > Bart
> >
> > Le lundi 29 novembre 2004 à 18:33 -0500, Steve Frierdich a écrit :
> >
> > > I am using the Eclipse Java Environment for creating and run Java
> > > projects. I created a Crew project in same directory where the
> > > crew example in open map is located (src\openmap\com\bbn\openmap
> > > \examples\crew),. Next I imported the java files(Crew and
> > > RouteLayer) in that directory into the project and used main in
> > > the Crew.java file was used as entry point. When I ran the program
> > > the shape there was an error that stated there was a problem
> > > setting up the shape files.
> > >
> > >
> > >
> > > ShapeLayer SpatialIndex: problem setting up the shape files:
> > >
> > > shape file: data/shape/dcwpo-browse.shp
> > >
> > > spatial index file: data/shape/dcwpo-browse.ssx
> > >
> > >
> > >
> > > I went into the crew.properties file and harded the to files to a
> > > full path and that still did not work.
> > >
> > > Can someone tell me how to solves this problem and why this error
> > > is occurring?
> > >
> > > Thanks
> > >
> > > Steve
> > >
> > > >
> >
> > ----
> > Prof Dr Bart Jourquin
> > F.U.Ca.M. - G.T.M.
> > Chaussée de Binche, 151a, B7000 Mons (Belgium)
> > Tel. : +32 65 323293, Fax. : +32 65 315691
> > http://www.fucam.ac.be/jourquin

----
Prof Dr Bart Jourquin 
F.U.Ca.M. - G.T.M. 
Chaussée de Binche, 151a, B7000 Mons (Belgium) 
Tel. : +32 65 323293, Fax. : +32 65 315691 
http://www.fucam.ac.be/jourquin
--
[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 Tue Nov 30 2004 - 08:29:38 EST

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