{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Working With GIS Data","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-gis-data","__idx":0},"children":["Working With GIS Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note"]},": You will need to include GisData to your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Module Dependencies"]}," list."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-gis-data-object-from-a-file","__idx":1},"children":["Creating a GIS data object from a file"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["GIS data files supported by INTViewer are in the *.shp and *.dxf formats."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A GIS data file can be loaded as follows:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"    import com.interactive.intviewerapi.data.IData;\n    import com.interactive.intviewerapi.data.gis.IGisData;\n    import com.interactive.intviewerapi.util.DialogManager;\n    ...\n        IGisData gisData = null;\n        try {\n            gisData = IData.factory.createNewInstance(\"/data/GIS/cities.shp\", IGisData.class);\n        } catch (Exception ex) {\n            DialogManager.getDefault().showMessageDialog(\"Error loading GIS data file cities.shp.\",\n                    \"Error Loading GIS Data File\", DialogManager.ERROR);\n            return;\n        }\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"loading-gis-data-from-a-file-chooser","__idx":2},"children":["Loading GIS Data from a file chooser"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To select one dataset:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"   import com.interactive.intviewerapi.data.ISingleDataChooser;\n   // get the chooser for gis data type\n   ISingleDataChooser<IGisData> singleChooser = ISingleDataChooser.Factory.createNewInstance(IDataChooser.GIS);\n   // popup the chooser dialog\n   int rc = singleChooser.setDataChooserVisible(true);\n   if (rc == JFileChooser.APPROVE_OPTION) {\n      IGisData gisData = singleChooser.getSelectedData();\n   }\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To select multiple datasets:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"   import com.interactive.intviewerapi.data.IMultipleDataChooser;\n   // get the file chooser for gis data type\n   IMultipleDataChooser<IGisData> multipleChooser = IMultipleDataChooser.Factory.createNewInstance(IDataChooser.GIS);\n   // popup the chooser dialog\n   int rc = multipleChooser.setDataChooserVisible(true);\n   if (rc == JFileChooser.APPROVE_OPTION) {\n      for (IGisData gisData : multipleChooser.getSelectedData()) {\n      }\n   }\n"},"children":[]}]},"headings":[{"value":"Working With GIS Data","id":"working-with-gis-data","depth":1},{"value":"Creating a GIS data object from a file","id":"creating-a-gis-data-object-from-a-file","depth":3},{"value":"Loading GIS Data from a file chooser","id":"loading-gis-data-from-a-file-chooser","depth":3}],"frontmatter":{"title":"Working With GIS Data","pageId":"intviewer-apis-for-data/working-with-gis-data","seo":{"title":"Working With GIS Data"}},"lastModified":"2026-10-22T14:32:05.574Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/intviewer/intviewer-apis-for-data/working-with-gis-data","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}