Questions tagged [assertionerror]
The assertionerror tag has no usage guidance.
12
questions
0
votes
1answer
46 views
AssertionError: Invalid MXD filename
I am trying to publish a draft service definition using arcpy.mapping.CreateMapSDDraft and am getting the referenced Assertion Error. I've tried the responses to users with similar questions with no ...
1
vote
0answers
47 views
arcpy.mapping.UpdateLayer returns runtime error
I am trying to update the style for a layer present in my saved map document with a source .lyr file present on my disk in the home folder. It returns an assertion error. The code I am trying to run ...
3
votes
3answers
130 views
Projection fails when ran with assertions enabled [closed]
The following minimal example runs fine only when assertions are disabled:
src/main/kotlin/main.kt:
package com.regions
import org.geotools.geojson.feature.FeatureJSON
import org.geotools.geometry....
0
votes
1answer
120 views
Add Table View to Data View in ArcMap gives Assertion Error
I'm trying to create a Python AddIn for ArcMap 10.6 and the first process of the tool will be to add a tableview to a map document. At this point I just want python code to bring up rows from a table ...
1
vote
0answers
224 views
Installing GeoTrace plugin in QGIS on Mac OSX?
I am trying to install the experimental plugin called GeoTrace in QGIS 3.2 on Mac OSX.
Error message is as follows:
File "/Users/petergriffin/Library/Application Support/QGIS/QGIS3/profiles/default/...
1
vote
1answer
127 views
Adding geoprocessing results as layer to dataframe using ArcPy? [duplicate]
I am still new to ArcPy.
I'm running a really simple script, it selects a feature from a dataset (one town out of many), saves the data, and adds it to the (empty) dataframe.
map = mapping....
0
votes
1answer
180 views
AssertionError in adding lyr file
This is only part of a bigger code block that I'm building.
The goal of these lines is to import a new layer, and select one feature from the feature class(TOWNSSURVEY_POLYM). The code imports the ....
5
votes
0answers
437 views
plugin compile with make would not compile module [closed]
Ubuntu 14.04
QGIS 2.6
PyQt4
I'm following one of many tutorials on 'plugin builder', here is the latest one I'm trying with: http://www.digital-geography.com/build-qgis-plugin/
It all seems very ...
5
votes
2answers
1k views
ArcPy Report syntax error
I'm working on trying to use arcpy to automate the creation of a report, but I'm running into a problem.
>>> arcpy.mapping.ExportReport('2013pp',"C:\reports\2013_Graffiti.rlf","C:\reports\...
5
votes
2answers
4k views
Creating empty group layer within existing group layer using arcpy.mapping?
Referencing this question, Adding new group layer with ArcPy?, I'm trying to use python to add a empty group within a group layer. So far I'm able to add a empty group within the map document, ...
4
votes
5answers
1k views
Can ArcPy's AsShape be used with GeoJSON FeatureCollection of Polygons with Labels?
The AsShape documentation provides examples that work very well.
However, I have been given what I believe to be valid GeoJSON that is a FeatureCollection of two polygons each with a Label.
It ...
5
votes
2answers
9k views
Assertion Error when attempting arcpy.mapping.AddLayer
Whenever I attempt to use AddLayer it gives me: Runtime error <type 'exceptions.AssertionError'>
This is what I've been using:
arcpy.mapping.AddLayer(MainDF, r"\\GEOGDATA\campusmapping\...