Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

TerrSet Errors - Data Path Not Found

I've been trying to struggle through Terrset but just can't get it to do what I want. I initially had problems downloading the files from geoexplorer but seem to have figured that out. The problem now ...
user8453264's user avatar
5 votes
1 answer
814 views

Set default for folder parameter in QGIS processing scripts

In QGIS processing scripts we can define a folder as input parameter as follows: [...define input/output parameters...] ##mypath=folder [...rest of the script...] Question: Is it possible (and if ...
Jochen Schwarze's user avatar
0 votes
0 answers
697 views

QGIS 2.18 python error

I very new to all the python-QGIS issue. I try to run this one line code in order to know if the PYTHON 2.7 recognize the modules of QGIS: import qgis.core and got this error: Traceback (most ...
newGIS's user avatar
  • 4,082
2 votes
3 answers
1k views

Moving MXD to different folder without breaking links using ArcPy? [duplicate]

I was wondering what was the equivalent of "Save As" in ArcPy, which works perfectly fine in ArcMap. As the MXDs are currently set up with relative path moving MXD would break the links, however if ...
Curtis's user avatar
  • 213
5 votes
0 answers
220 views

Check for mxd write access with python addin

I'm looking for a way to check for writing access to an mxd upon the initiation of a python AddIn tool. My tool should only be enabled if the user has writing access to the mxd. I thought there was a ...
Emil Brundage's user avatar
1 vote
1 answer
51 views

Create many Layers and data views with arcpy

This code I've created works for 1 (one) active layer and for 1 (one) field. I need to implement this code for many layers and fields in a open .mxd file. I have 11 fields (years 2003 to 2015). I ...
vcruvinelr's user avatar
1 vote
1 answer
565 views

Getting catalog path from IFeatureClass using ArcObjects?

VB.NET against ArcGIS 10.1 I have a function which searches a geodb for a feature class name. If found I would like to display where it was found. Currently I only return the FeatureClass object like ...
sinDizzy's user avatar
  • 437
0 votes
2 answers
47 views

Is it possible to show a map information, at the personal tool window?

I'm creating a tool to change some 'Map Document Properties' (for example Title, Description, Author), with arcpy (it can also be model builder, or both), to execute from a personal toolbox. But I ...
raphael's user avatar
  • 171
3 votes
1 answer
2k views

How to avoid updating PATH by copying SIP module to appropriate directory

I continue to have very time-consuming problems with import statements in the Python scripts that I attempt to write. In this particular script, I want to use QGIS functionality, and so it begins: ...
james's user avatar
  • 93
0 votes
1 answer
393 views

Identifying ArcMap document versions with PythonWin?

ArcPy method to determine ArcMap document version I want to be able to identify ArcMap documents by the folder using PythonWin. When using Ryan's script (link above) I ran into some kind of problem....
Pfalbaum's user avatar
  • 921
2 votes
2 answers
796 views

Python script to Export multiple MXDs to JPG

I have a project where I have many MXDs in one folder, and would like to export each one to JPGs in another folder. I've been stumped with a particular error message I'm running in to: Runtime ...
Owen Stuckey's user avatar
1 vote
1 answer
180 views

Select the correct paths for The TIGER geocoder (linux)

I'm following this tutorial to setup the geocoder. I'm stuck on the step 2.8.1.4 "edit the paths in the declare_sect column to those that fit Debbie's pg, unzip,shp2pgsql, psql, etc path locations."...
Luis Ramon Ramirez Rodriguez's user avatar
2 votes
1 answer
925 views

Loader_Generate_Nation_Script is not creating the scripts

I'm working on setting up the TIGER geocoder on a Linux machine. I have installed PostgreSQL and PostGIS, now I'm working on the extension, point 2.8.1 of this guide: I'm having problems with the ...
Luis Ramon Ramirez Rodriguez's user avatar
1 vote
0 answers
410 views

Creating .sd file from .mxd in Python?

How would I save a .sd (service definition) file from an MXD purely with Python? I can create an .sd by stepping through the process and saving as a service definition. However, I'm looking to fully ...
JCB's user avatar
  • 152
2 votes
1 answer
71 views

Python qgis script

How to get the path of points? Because I want to open it using this code: lyr = QgsVectorLayer(path,"YXC","ogr")
zuotianhui's user avatar
1 vote
1 answer
2k views

Opening .mxd files in Python not via ArcPy?

I am an old user of Python, but relatively new to GIS. I have a .mxd file and would like to read it into Python. Is arcpy the only way to do so? I tried with pyshp but it does not accept this file ...
splinter's user avatar
  • 357
1 vote
1 answer
130 views

MXD "CURRENT" and Absolute path different behavior

I am using the following code (ArcGIS 10.3.1) to produce a batch of PDFs: mxd = 'CURRENT' cid = 2 rf = ur'D:\Δοκιμές\Tester' gdb = rf+'\\Ant.gdb' arcpy.env.workspace = gdb mxd = arcpy.mapping....
Panos's user avatar
  • 173
2 votes
1 answer
568 views

Replace Feature Class with Another Feature Class inside an .mxd

I am trying to create a script that makes a copy of the same feature class within the same file GDB by using the "copyfeatures" syntax which works fine. I am then trying to iterate through a list of ....
jaehmann's user avatar
-1 votes
1 answer
333 views

Arcpy error when attempting to reference 'CURRENT' mxd with script tool within ModelBuilder

I have an ArcMap 10.5 ModelBuilder model that contains within it a script tool referencing the 'CURRENT' mxd. Both the script tool and the ModelBuilder tool are set to run in the foreground. The ...
spaine's user avatar
  • 490
-2 votes
1 answer
72 views

Paths and Python question [closed]

I have a problem because I want to store some paths from images by using python 2.7 in Windows 10. Path are like this: var1='C:/my/store/path' and inside the final folder, where in my example is ...
Mar's user avatar
  • 1,119
4 votes
2 answers
3k views

Retrieving Full Path to Feature Class in ArcMap

I often need the full path to various feature classes so that I may insert them into a Python script. I have been using ArcCatalog for this by copying the path in the Location bar for a given feature ...
reevesii's user avatar
  • 1,529
1 vote
1 answer
940 views

Standalone Python/PyQGIS path setup

I'm trying to run a script using python. The script requires some qgis functionality. I believe I have set the path, pythonpath, etc. correctly. The OS is Windows 7 64-bit with qgis located at the non-...
Glenn Geers's user avatar
7 votes
3 answers
2k views

Full Network Paths In QGIS

Is it possible to use full network paths in QGIS rather than relative paths or drive paths? I use a remote desktop connection to log in to a machine where some QGIS work is done, however when ting to ...
cgoode's user avatar
  • 71
5 votes
1 answer
4k views

Identifying ArcMap document version without ArcPy?

Is it possible to identify what version (10.0, 10.5 etc.) an ArcMap document (.mxd) has been saved in? I am aware of ArcPy method to determine ArcMap document version, but I am interested in a ...
Niffler's user avatar
  • 161
1 vote
0 answers
649 views

QGIS 2.18.3 path and sip module cannot be load in ubuntu 16.04

I'm currently installing QGIS 2.18.3 it works fine at first, after upgrading my ubuntu the problems comes out every time I run my QGIS; it always shows "Couldn't load SIP module. Python support will ...
Wira Bhakti's user avatar
1 vote
1 answer
73 views

Publish an orthophoto without needing mxd file

I wonder if anyone has a tool or a method that can help me to Publish an orthophoto without the need to include it in mxd file.
Fatin RIMAWI's user avatar
1 vote
1 answer
50 views

Data record for an MXD

Say that in a layout view of an MXD, I draw a simple rectangle. Does a record of this rectangle exist anywhere in the project data in a way that can be edited or duplicated? Reason: My team is ...
Map Man's user avatar
  • 1,343
1 vote
0 answers
378 views

QGIS python functions in relative path?

I am using QGIS 2.18.3 to create an atlas. This works well and I now want to call some functions to create richer content in a text box. To do this I am calling a python function from an expression. ...
ragnvald's user avatar
  • 3,201
1 vote
0 answers
910 views

ArcMap HTML Popup XSL: Images with relative path

I added a HTML Popup to a map that displays several fields data and one image that's stored in a folder next to the map.mxd file. One of the fields in the table is the filename.jpg for each image. All ...
Demian Andrade's user avatar
0 votes
1 answer
66 views

Automate Sourcing Data from Multiple .GDB's to a Single "Template" MXD using ModelBuilder?

I have a single "template" MXD I'm using and repeatedly resourcing the layers to newly created features that always fall within the same 4 geodatabases. The new features all follow the same ...
GIS_GOD's user avatar
  • 399
2 votes
1 answer
61 views

Point layer draws very slowly after using ArcPy to add to mxd?

I am using an ArcPy script to add a point feature class to an mxd. The map document will draw this layer very slowly, approximately 50 to 100 points per second. If I remove the layer and add it ...
Craig T's user avatar
  • 486
3 votes
1 answer
410 views

Arcpy.mapping Select by Location problem

I need to adjust a premade .mxd many times, so I'd like to speed it up with this script. Everything is working except the Select by Location part. The query reduce the Address layer to a single point ...
Gary's user avatar
  • 540
4 votes
1 answer
268 views

Avoiding arcpy.mapping.ExportToPDF locking mxd with data driven pages?

I've written a script that makes use of a data driven pages mxd, but I'm having issues with locks. The script iterates through a series of feature classes and uses them as the base layer for the DDP. ...
Emil Brundage's user avatar
2 votes
2 answers
2k views

Using arcpy.mapping to make changes to an open mxd

I want to use arcpy.mapping to make some changes to a mxd. I am using the Spyder environment for python. To change the title I can use the following code: import arcpy myMap = r'C:\path_to_mxd\...
Stefano Potter's user avatar
1 vote
1 answer
189 views

Fixing broken path for renamed feature class in multiple .mxd's?

I have read up on the ESRI technical article here. Basically I had a corrupt feature class that I rebuilt from a backup and renamed. As I created more .mxd's with this renamed feature class, all ....
gnarkilleptic's user avatar
1 vote
0 answers
246 views

Iterating rasters using parse path in complex model in ModelBuilder? [closed]

I have a complex model (with many tools/steps chained - named from "a" to "p") and I need iterate two input rasters (p1.img and p2.img), so that all the model outputs returned for the two input files. ...
Thallita Grande's user avatar
1 vote
1 answer
151 views

Error when exporting "MXDPERFSTAT" tool

I am running this tool: https://www.arcgis.com/home/item.html?id=a269d03aa1c840638680e2902dadecac Mxdperfstat- basically it records the loading time for drawing the layers so you can optimize data and ...
NULL.Dude's user avatar
  • 2,141
0 votes
2 answers
62 views

Update multiple different layer data sources in mxd with multiple lists

I need to update 3 layers in a template mxd then save that mxd. It needs to loop through a fGDB and for each feature, update the three layers then save a copy for each loop. What I have loops through ...
user1714326's user avatar
1 vote
1 answer
93 views

Updating MXD data paths on new computer: a few questions

Fairly new to python, trying to update the data paths for several dozen MXD files to a new computer that doesn't have the "B" drive of the author. Does the physical\logical data drive have to ...
Ecomapman's user avatar
1 vote
1 answer
598 views

Is it possible to get the SDE version of layers currently used in a MXD

Is it possible to get the SDE version of layers currently used in a MXD through python? I can get a list (using arcpy.ListVersions) of all versions in the SDE connection file but I only want the ...
Tigger77777's user avatar
1 vote
1 answer
355 views

Customizing / Editing Dynamic Text for <path> in ArcGIS Desktop?

To encourage GIS users here to adhere more rigidly to the existing folder architecture as well as demonstrate the functionality of dynamic text, I'm trying to update one of our templates so that I can ...
mastorey's user avatar
  • 449
1 vote
0 answers
120 views

ArcGIS WFS Errors - Multiple Feature Class References

I am trying to add WFS capabilities to an existing MXD, but it throws errors for multiple references to a Feature Class. To work around this, I've tried two options: Creating database views and ...
guest1111's user avatar
1 vote
1 answer
2k views

Stopping edit session at start of ArcPy script?

I have a simple script that I use to select features from a ArcSDE database and export them to a personal.gdb. Currently, I have to manually save and stop my edit session in the MXD so that the ...
Ajc5286's user avatar
  • 53
3 votes
1 answer
257 views

Retreiving Map from MapDocument is Slow (ArcObjects 10.3)

I am designing a small ArcObjects (10.3.1) .Net Desktop Application that analyzes an .mxd for sde layers with broken connections and if possible fixes them. Everything works fine, however when ...
GeoSharp's user avatar
  • 3,266
4 votes
2 answers
2k views

Using timestamp in text format published parameter of FME?

I have an FME workspace (FME 2015.1) that creates an output file, let's say result.xslx. What I would like to do is to build up the output file name from various parameters, e.g. the project name and ...
Jochen Schwarze's user avatar
1 vote
1 answer
293 views

How to delete specific line in Text elements using ArcPy?

I work with several maps (in folder named "aa") and the text boxes in the layout view are: I try to delete,using Arcpy, the empty line in the this text properties box so my result will be one ...
newGIS's user avatar
  • 4,082
1 vote
0 answers
241 views

Setting output name to be same as input name in ModelBuilder using Parse Path? [closed]

Can you comment on my model as to why the output name is totally different from input name?
tzehuey's user avatar
  • 19
5 votes
0 answers
944 views

ArcMap MXD will open on one computer but not any others? [closed]

I have an MXD which I use on 10.2 at one office and it works fine, all layers there, no errors, data links fine. The MXD lives on a shared LAN and is launched from there. If that MXD is launched on ...
user25644's user avatar
  • 1,089
2 votes
0 answers
2k views

Relative Image paths in QGIS

I want to import images with a relative path to my QGIS Project. I followed this https://www.youtube.com/watch?v=JnQk0NRqCyM tutorial. So far, so good. Works fine. My problem is, that my QGIS-Project ...
Schlobbo's user avatar
0 votes
0 answers
25 views

arcpy.mapping use a template (mxd) to apply layout view? [duplicate]

Is there a class or a function in arcpy.mapping that can import an empty mxd, that contains only the layout elements, and applying it?
Imen Dhifi's user avatar

1 2 3
4
5
9