GeoTools is an alternative...
http://docs.codehaus.org/display/GEOTDOC/01+CRS+Helper+Class
You need two things to have a GIS ... for geotools:
- geometry: JTS
- referencing: the referencing module
For comparison PostGIS:
- geometry: GEOS (a port of JTS)
- referencing: Proj
Here is a quick code example:
import org.geotools.referencing.CRS;
CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:4326");
CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:23032");
MathTransform transform = CRS.findMathTransform(sourceCRS, targetCRS, true);
Geometry targetGeometry = JTS.transform( sourceGeometry, transform);
On 19/08/2010, at 1:14 AM, Mohammed Rashad wrote:
> does geotools have support for proj4 library? if No does it have any
> alternative?
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel