How can I retrieve the coordinates (I have got 50 coordinates) from my list and use them as destinations on a GIS map?
How can I retrieve the coordinates (I have got 50 coordinates) from my list and use them as destinations on a GIS map?
Hi @abrahim, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Hey @abrahim, you can set the latitude and longitude of a Point on a GIS map to the coordinates you have stored. You could do this programmatically if you've imported those points from an Excel sheet into a Global Table. Simply loop through each row in your table, create a GIS Point in the GIS Map, and set its coordinates.
Hey @Maíra A, here's an example of how you'd do this.
Let's say you have a GIS map and a table of coordinates:
You can run some code to (1) get the lat and long from the table, (2) create a GIS Point, and (3) set the coordinates of that point using the .setProperty() function on Objects. Points have a Latitude and Longitude property you can set.
Table table = Table("Coordinates"); for (int i = 1; i <= table.numRows; i++) { double lat = table[i][1]; double long = table[i][2]; Object point = Object.create("GIS::Point"); point.setProperty("Latitude", lat); point.setProperty("Longitude", long); }
It will look like this:
Here's the model (FlexSim 2025): GIS-Automation.fsm
To clear a GIS map of all points, you can clear the subnodes of the GISNavigator.
treenode nav = Model.find("GISNavigator"); nav.subnodes.clear();
Hope this helps.
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved