Questions tagged [nameerror]
Use when NameError from Python is thrown by your code
4
questions with no upvoted or accepted answers
3
votes
0
answers
523
views
Reading files with Japanese filenames with GeoPandas
I'm trying to read all shapefiles in a folder using this script:
import glob
import geopandas as gpd
infolder = r'E:/folder/test_input'
shapefiles = glob.iglob(infolder+'/*.shp')
gdfs = [gpd....
2
votes
0
answers
2k
views
NameError: name data_all1 is not defined in Python 3.x
I have a standalone script using data opened from a Geopackage with Fiona. When I run this portion of my script:
import os
import fiona
import numpy as np
datapath= '/media/sf_SharesShapefiles/'
...
0
votes
0
answers
262
views
ArcPy CalculateGeometryAttributes parameters for area calculation - Failed to execute error
I have a large project I am working on and am stumped on one step.
There is a large group of layers (over 40), for each of which I need to (1) add an area column to the attribute table and then (2) ...
0
votes
0
answers
136
views
Output of first iteration as the input of the next step in a for loop
I use a Python script to find the closest facilities. I have 24 cities to process. For one city, I should create 100 random datasets. To do that, I use Python, and for loops. After I create the random ...