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 [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
