wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 159
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: 42374
    
  64
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: 159
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: 42374
    
  64
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: 159
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: 42374
    
  64
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: 159
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: 42374
    
  64
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to parsing a shape file.