On Sat, Aug 2, 2014 at 5:32 PM, Eric Holsinger <e...@heregear.com> wrote:

> My bad - i should have referenced GEOT-3763.  I think I got a bit confused
> based upon threads I found and your question about the other bug having to
> do with an issue over the poles.
>
> So - GEOT-3763 is the one I'm talking about.  Also, the code I've laid out
> is fairly simplex - maybe try it and see?  I'm effectively just trying to
> create a LineString in WGS84, then run buffer(...) to get back a polygon
> buffer around that Linestring, in a distance of meters that I provide.
> Thus, the transforms I was attempting in that code between WGS84 >
> Cartesian and then back - from a couple of examples I saw out on the web.
>

Oh no, now I see. What you are trying to do makes no sense, the CARTESIAN
CRS is not what you think, and cannot be used to do buffers in meters.
It actually is a geogentric CRS, where x,y and z are three orthogonal axis,
x going from the center of earth to the intersection between equator and
the greenwitch meridian, Z set along the earth rotation axis, and Y
starting from the earth center to point to the intersection between the
dateline and equator
(and besides, JTS cannot work with 3D coordinates to start with, it's fully
planar).

To do what you want with some degree of precision you'll have to find a
"normal" map projection centered on, or at least containg, the geometry you
want
to buffer. The UTM system can be a starting point.

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to