It would be best for this process to be dynamic because the workbook will be updated periodically and want to. I am looking to use a Macro-enabled excel workbook, that I’ve obtained from a fellow colleague (engineering department), to link to some feature classes in my asset database. The result object output can be accessed using the getOutput method, but it can also be accessed by using the index of the result property you are interested in, in this case the output located at index 0. Looking to link a dynamic excel table to ArcMap 10.6.1.
Importing a shapefile to arcgis 10.6 how to#
This typically is how I implement it, when needing to create a lot of layers with different definition queries quickly.įinally, in the above snippet, although it is not necessary, I demonstrated how to populate a variable with the result of the tool output so the layer could be manipulated in the table of contents using arcpy.mapping if this is necessary later in the script. Output layer is the name of the layer to appear in the table of contents.Īlso, Make Feature Layer can accept a where clause to create a definition query at creation time. You will need to add this new Map Layer to your map and/or Geodatabase, and remove the old Map Layer that uses the incorrect Coordinate System. Open ArcMap and navigate to the Window menu and select ArcToolbox. By changing the name of the Shapefile/Map Layer in the Projection process, youve created a new Map Layer/Shapefile with the desired Coordinate System. The input features can be any type of feature class or layer. 6 WORKING WITH DIGITAL TERRAIN MODEL (DTM) DATA FROM DMTI AND GRCA File Format: ASCII Text File. Make Feature Layer requires two inputs, the input features and the output layer. from Surfer and export to a shapefile (.SHP).
Importing a shapefile to arcgis 10.6 software#
NewLyr = arcpy.MakeFeatureLayer_managment( Over the years, one of the most common questions asked is How can I get my contour map out of Surfer mapping software and into ArcMap Its actually quite easy to get maps from Surfer into ArcMap.You can just click File Export from Surfer and export to a shapefile (.SHP). # create layer in TOC and reference it in a variable for possible other actions Interestingly enough, this can all be accomplished using the following provided it is called from within the current map document. For instructions on how to do this, refer to the 'Adding a database server' section of exercise 1. You must add the database server because manager1 has not added it yet. Recently I struggled with a similar task, and initially used the method of identifying the map document, identifying the data frame, creating a layer and adding the layer to the map document. Start ArcMap, open the Catalog window, then expand the Database Servers folder in the Catalog tree.