File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How to parsing a shape file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to parsing a shape file." Watch "How to parsing a shape file." New topic
Author

How to parsing a shape file.

Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
How to parse the shape file in java. I want to read only the data in the shape file. Please help me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
What is a "shape file"? Its not a commonly known file format, so you need to tell us about its structure.


Ping & DNS - my free Android networking tools app
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
Its it a vector data for for geographic information systems. I want to parse those file and feed to the database.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
So you're talking about the ESRI format? Both OpenMap and GeoTools have Java APIs for reading that.
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
We can't use JShape or FShape. I don't want to display any image, just want to pull out the data as x,y,z coordinates. Is OpenMap and GeoTools are free ware and re-distributable?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Is OpenMap and GeoTools are free ware and re-distributable?

Such information is easily found on their respective web sites.
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
Both the API are licenced version. Is there any other open source API available? Kindly help me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Both the API are licenced version. Is there any other open source API available?

You do realize that a "license" could be an "open source license", yes?
 
wood burning stoves
 
subject: How to parsing a shape file.