Hello all,
Any progress made on this? What's the current status on this problem for you
all?
Evana
Sent from my iPhone
> On Sep 7, 2014, at 8:23 AM, "[email protected]"
> <[email protected]> wrote:
>
> FYI In the Spatial4j project, I’m contending with geodesics. I’ve gotten
> several interns over the last couple years and one of them, Evana, was
> assigned to create polygons from a circle in both cartesian space and a
> geodesic space to a given error tolerance. And furthermore, the polygon
> should circumscribe the circle, not inscribe which is far easier. So in
> geodesic space with a circle above the equator, the points of the polygon
> should be closer together towards the top of the circle but farther apart
> towards the bottom because the closer to a pole you get, the more skewing
> happens for most projections.
>
> The geodesic aspect wasn’t finished but I think it may have been dateline
> and/or pole wrapping issues, which you unlikely have. The code is
> GeoDirclePolygonizer in Evana’s branch:
> https://github.com/Evana13G/spatial4j/blob/MainPolygonizer/src/main/java/com/spatial4j/core/context/GeoCirclePolygonizer.java
>
> ~ David Smiley
> Freelance Apache Lucene/Solr Search Consultant/Developer
> http://www.linkedin.com/in/davidwsmiley
>
>> On Wed, Sep 3, 2014 at 11:13 PM, jingyuwang1 <[email protected]> wrote:
>> Hi:
>> I am a java developer in Autonavi,ShangHai,China.
>> Recently,a problem has perplexed me a long time,it is how to create a circle
>> on the earth with the giving coordinate and radius(121.57090046,31.21557082
>> and 50 meters ). I sincerely hope to get your help!
>> The better solution i find in google is the following:
>>
>> public static Polygon createCircle(double x, double y, final double RADIUS) {
>> GeometricShapeFactory shapeFactory = new GeometricShapeFactory();
>> shapeFactory.setNumPoints(64);
>> shapeFactory.setCentre(new Coordinate(x, y));
>> shapeFactory.setSize(RADIUS * 2);
>> Polygon circle = shapeFactory.createCircle();
>> circle.setSRID(4326);
>> return circle;
>> }
>> but it seem not accurancy,no matter the RADIUS parameter is meters or
>> radians. My aim is to get a circle from java JTS such as the follow:
>> <Catch.jpg>
>> I will be glad to wait for your answer!
>> best wish !
>> yujin.wang
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds. Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Jts-topo-suite-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user