[udig-devel] How to convert postgis geometry to jts geometry?

Polyborus plancus Brasiliensis br.carcara at gmail.com
Fri Sep 14 13:38:36 PDT 2007


WKBReader wkbReader = new WKBReader();
Geometry geo = wkbReader.read(rs.getBytes("FieldName"));

Where Geometry and WKBReader are part of JTS

2007/9/13, Jody Garnett <jgarnett at refractions.net>:
>
> If you use the GeoTools PostGIS DataStore it will just do it ...
>
> Internally it uses a well known text and a well known text binary parser
> that produces JTS Geoemtry objects.
> Cheers,
> Jody
> > HI,
> >
> >
> > who can tell me how to convert postgis geometry to jts geometry?
> >
> > Thanks!
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20070914/d82277d3/attachment.html


More information about the udig-devel mailing list