Skip to content

Commit cd6f50a

Browse files
authored
corrects WKID to 4326 (#389)
* corrects WKID to 4326 * use SpatialReferences.getWgs84
1 parent 8a12999 commit cd6f50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/esri/samples/geometry/project/ProjectSample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void start(Stage stage) {
8989
Point originalPoint = mapView.screenToLocation(point2D);
9090
inputPointGraphic.setGeometry(originalPoint);
9191
// project the web mercator point to WGS84 (WKID 4326)
92-
Point projectedPoint = (Point) GeometryEngine.project(originalPoint, SpatialReference.create(4236));
92+
Point projectedPoint = (Point) GeometryEngine.project(originalPoint, SpatialReferences.getWgs84());
9393
// show the original and projected point coordinates in a callout from the graphic
9494
Callout callout = mapView.getCallout();
9595
callout.setTitle("Coordinates");

0 commit comments

Comments
 (0)