{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Working With Coordinate Reference Systems","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":false}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"working-with-coordinate-reference-systems","__idx":0},"children":["Working With Coordinate Reference Systems"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"transform-coordinates-from-one-crs-to-another","__idx":1},"children":["Transform coordinates from one CRS to another"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"String fromEpsgCode = ...\nString toEpsgCode = ...\nICoordinateSystemTransformationService service = ICoordinateSystemTransformationService.Factory.getInstance();\nICoordinateSystemTransformation coordinateTransformation = service.createTransformation(fromEpsgCode, toEpsgCode);\ndouble[] xy1  = coordinateTransformation.coordTrans(10, 20);\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"retrieving-the-name-of-a-crs","__idx":2},"children":["Retrieving the name of a CRS"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"String epsgCode = ...\nICoordinateSystemChooserService service2 = ICoordinateSystemChooserService.Factory.getInstance();\nString name = service2.getCoordinateSystemName(epsgCode);\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"opening-a-crs-chooser","__idx":3},"children":["Opening a CRS Chooser"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"String defaultEpsgCode = ...\nICoordinateSystemChooserService service2 = ICoordinateSystemChooserService.Factory.getInstance();\nICoordinateSystemChooser chooser = service2.createChooser(defaultEpsgCode, ICRSProvider.LAT_LONG);\nchooser.display(new ICoordinateSystemSelectionListener() {\n   @Override\n   public void coordinateSystemSelected(String selectedCode) {\n      DialogManager.getDefault().showMessageDialog(selectedCode + \" selected\");\n   }\n});\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When building your own panel that opens a CRS chooser, consider using the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/intviewer/intviewer-apis-for-dialogs-and-editors/reusable-components"},"children":["com.interactive.intviewerapi.editors.utils.EpsgCodePanel"]}," reusable component instead."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can plug-in your own chooser using the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/intviewer/other-useful-intviewer-apis/coordinate-system-chooser-service"},"children":["Coordinate System Chooser Service Extension"]},"."]}]},"headings":[{"value":"Working With Coordinate Reference Systems","id":"working-with-coordinate-reference-systems","depth":1},{"value":"Transform coordinates from one CRS to another","id":"transform-coordinates-from-one-crs-to-another","depth":3},{"value":"Retrieving the name of a CRS","id":"retrieving-the-name-of-a-crs","depth":3},{"value":"Opening a CRS Chooser","id":"opening-a-crs-chooser","depth":3}],"frontmatter":{"title":"Working With Coordinate Reference Systems","pageId":"other-useful-intviewer-apis/working-with-coordinate-reference-systems","seo":{"title":"Working With Coordinate Reference Systems"}},"lastModified":"2026-10-22T14:32:05.580Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/intviewer/other-useful-intviewer-apis/working-with-coordinate-reference-systems","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}