{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Working With Polyline 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-polyline-data","__idx":0},"children":["Working With Polyline Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A polyline data object is used to represent a set of 2D points."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-polyline-data-object-from-a-file","__idx":1},"children":["Creating a Polyline data object from a file"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Polyline files have the extension \".xpl\" or \".txt\". A polyline 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.polyline.IPolylineData;\n    import com.interactive.intviewerapi.util.DialogManager;\n    ...\n        IData pol = null;\n        try {\n            pol = IData.factory.createNewInstance(\"/data/POLYLINE/LINE.xpl\");\n        } catch (Exception ex) {\n            DialogManager.getDefault().showMessageDialog(\"Error loading Polyline file LINE.xpl.\",\n                    \"Error Loading Polyline File\", DialogManager.ERROR);\n            return;\n        }\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-polyline-data-object-programatically","__idx":2},"children":["Creating a Polyline data object programatically"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"IPolylineData pol = new PolylineData(\"PolylineDataName\", \"INLINE\", \"XLINE\");\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"adding-a-point-to-a-polyline-data-object","__idx":3},"children":["Adding a point to a Polyline data object"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Point2D newPoint = new Point(100, 200);\npol.addPoint(newPoint);\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"retrieving-the-points-of-a-polyline-data-object","__idx":4},"children":["Retrieving the points of a Polyline data object"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ArrayList<Point2D> points = pol.getPoints();\n"},"children":[]}]},"headings":[{"value":"Working With Polyline Data","id":"working-with-polyline-data","depth":1},{"value":"Creating a Polyline data object from a file","id":"creating-a-polyline-data-object-from-a-file","depth":3},{"value":"Creating a Polyline data object programatically","id":"creating-a-polyline-data-object-programatically","depth":3},{"value":"Adding a point to a Polyline data object","id":"adding-a-point-to-a-polyline-data-object","depth":3},{"value":"Retrieving the points of a Polyline data object","id":"retrieving-the-points-of-a-polyline-data-object","depth":3}],"frontmatter":{"title":"Working With Polyline Data","pageId":"intviewer-apis-for-data/working-with-polyline-data","seo":{"title":"Working With Polyline Data"}},"lastModified":"2026-10-22T14:32:05.575Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/intviewer/intviewer-apis-for-data/working-with-polyline-data","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}