Hi William,
I'm not familiar with that class, but my 11:30PM guess is that it's purely
geometric, like all
the JTS geometries, as such you should pass a radius in "degrees"

Cheers
Andrea


On Thu, Dec 24, 2015 at 7:39 PM, William Bowen <williamrbo...@gmail.com>
wrote:

> I'm having trouble creating shapes from the GeometricShapeFactory in Geo
> Tools 14. Namely, given a lat/long, I would expect the coordinates to be
> created according to my SRID (4326) and look like lat/longs but instead I
> get numbers seemingly on a different CRS like:
>
> List(4552.971727307984,-5947.9371003344,
> 4766.310254798524,-5777.468633508588, 4973.220940309102,-5599.253051374699,
> ...)
>
> Some simplified Scala sample code for creating an arc is below. I'm having
> the same issue with createCircle() and other shape factory methods, so it
> must be something I'm doing incorrectly:
>
> val arcFactory = new GeometricShapeFactory(new GeometryFactory(new
> PrecisionModel(PrecisionModel.FLOATING), 4326))
> arcFactory.setCentre(new Coordinate(36.033611, -76.333056))
> // Size from 4.0 NM is 14816.0 in meters
> arcFactory.setSize(14816)
> // Angle in radians, converted from degrees
> arcFactory.createArc(5.368118804656389, 3.6496323105958797)
>
>
> When I log it all out, it looks something like:
>
> Creating arc at 36.033611, -76.333056 of size 4.0 NM (14816.0 m) from
> start angle 5.368118804656389 radians (307.57055143162347 deg) to end angle
> 3.6496323105958797 radians (209.1085281717227 deg)
>
> But as mentioned before, the generated coordinates do not conform to my
> expecations (lat/long) pairs. What am I missing? When I print the SRID of
> the generated geometry, it's coming out as 4326 but the coordinates don't
> seem to reflect this, so a transform() doesn't seem appropriate here.
>
> Thank you guys so much for your help!
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>


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

*Geosolutions' Winter Holidays from 24/12 to 6/1*

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to