creating an ESRI shapefile  
Author Message
spud_g00





PostPosted: 2007-7-12 2:45:00 Top

java-programmer, creating an ESRI shapefile I need to create an ESRI shapefile set (.shp, .shx, .dbf) from an
object. The object is drawn to the screen -- or any Graphics2D -- via
its draw() method, so a good starting point would be an implementation
of Graphics2D which writes to a shapefile instead of the screen.

Does anybody know of a good library to help with the creation of
shapefiles in Java?

 
Brandon McCombs





PostPosted: 2007-7-14 7:52:00 Top

java-programmer >> creating an ESRI shapefile email***@***.com wrote:
> I need to create an ESRI shapefile set (.shp, .shx, .dbf) from an
> object. The object is drawn to the screen -- or any Graphics2D -- via
> its draw() method, so a good starting point would be an implementation
> of Graphics2D which writes to a shapefile instead of the screen.
>
> Does anybody know of a good library to help with the creation of
> shapefiles in Java?
>

Does ESRI provide anything in their APIs?
 
Spud Demon





PostPosted: 2007-7-14 10:08:00 Top

java-programmer >> creating an ESRI shapefile On Jul 13, 11:52 pm, Brandon McCombs <email***@***.com> wrote:
> email***@***.com wrote:
> > I need to create an ESRI shapefile set (.shp, .shx, .dbf) from an
> > object. The object is drawn to the screen -- or any Graphics2D -- via
> > its draw() method, so a good starting point would be an implementation
> > of Graphics2D which writes to a shapefile instead of the screen.
>
> > Does anybody know of a good library to help with the creation of
> > shapefiles in Java?
>
> Does ESRI provide anything in their APIs?

As a matter of fact their MapObjects product does. But the project
I'm doing this for doesn't use MapObjects, and it would be more
complicated to convert my data to MapObjects features than to
implement my own shapefile writer.

Same goes for OpenMap.

 
 
Jim Korman





PostPosted: 2007-7-15 3:23:00 Top

java-programmer >> creating an ESRI shapefile On Fri, 13 Jul 2007 19:07:41 -0700, Spud Demon
<email***@***.com> wrote:

>On Jul 13, 11:52 pm, Brandon McCombs <email***@***.com> wrote:
>> email***@***.com wrote:
>> > I need to create an ESRI shapefile set (.shp, .shx, .dbf) from an
>> > object. The object is drawn to the screen -- or any Graphics2D -- via
>> > its draw() method, so a good starting point would be an implementation
>> > of Graphics2D which writes to a shapefile instead of the screen.
>>
>> > Does anybody know of a good library to help with the creation of
>> > shapefiles in Java?
>>
>> Does ESRI provide anything in their APIs?
>
>As a matter of fact their MapObjects product does. But the project
>I'm doing this for doesn't use MapObjects, and it would be more
>complicated to convert my data to MapObjects features than to
>implement my own shapefile writer.
>
>Same goes for OpenMap.

check out the geotools api..

http://geotools.codehaus.org/Features

as a starting point, specifically the

org.geotools.feature and
org.geotools.data

contain most of what is needed.

Jim