[gdal-dev] GeoJSON2SHP and SHP2GeoJSON Java library

Lopes, Jose Jose.Lopes at AGR.GC.CA
Wed Jun 2 14:14:58 EDT 2010


Yes Frank,

This is exactly where I am. 

I got GeoTools to interpret a generic TYPE in a CSV file and generate
shapefiles (this is a starters tutorial...)

Now I want to move from a generic TYPE to a GeoJSON grammar interpreter
that would input into the GeoTools shapefile facility.

I just didn't want to reinvent the wheel if it was already out there...

Thanks for your attention Frank, if you don't know it, maybe there isn't
any and it would be a good project to start...   

Jose Lopes
-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: June 1, 2010 4:06 PM
To: Lopes, Jose
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] GeoJSON2SHP and SHP2GeoJSON Java library

Lopes, Jose wrote:
> Hi,
> 
>  
> 
> I am searching for a pure Java library to convert GeoJSON objects into

> ESRI Shapefiles and vice-versa, preferably open source...
> 
>  
> 
> Up to the moment I found only ogr2ogr with Java binding and the ArcGIS
tools to do this task.
> 
>  
> 
> But I think somebody out there should have made this before with a
pure Java library that can be used independently of any other COTS or
exe, like a jar file...
> 
>  
> 
> Does anybody know of any project like that?

Jose,

I would suggest looking at GeoTools.  It has at least good shapefile
code.
It may also have GeoJSON support.  If not, you might have to implement
that
part yourself.

Good luck,
-- 
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list