Comments (1)
In the user provided example file, Read_Shp did not throw an error on field being missing, it issued a warning (below). Subsequently an error was raised, but due to #99, not to the missing field.
if hasattr(options, 'field') and options.field not in fields:
msg = 'field: %s not found in shape file fields: %s'
msg %= (options.field, fields)
self.logger.warning(msg)
warnings.warn(msg)
sDNA_GH.Read_Shp: INFO: Tools == [<ShapefileReader object at 0x000000000000014C>]
sDNA_GH.custom.tools.ShapefileReader: WARNING: field: BtEn not found in shape file fields: ['Shape_Leng', 'ID', 'LConn',---long list---, 'MCF2000', 'DivH2000']
...\UserObjects\sdna-gh\sDNA_GH\custom\tools.py:1: UserWarning: field: BtEn not found in shape file fields: ['Shape_Leng', 'ID', 'LConn', ---long list---, 'MCF2000', 'DivH2000']
#! /usr/bin/awk NR==3
sDNA_GH.custom.tools: ERROR:
The error:
{{ Unable to add polyline to document }}
occurred when adding shape number: 15830 from shapefile: C:...\Unreadable_shapefile\shp_file_test\shp_file_test....shpRuntime error (Exception):
The error:
{{ Unable to add polyline to document }}
occurred when adding shape number: 15830 from shapefile: C:...\Unreadable_shapefile\shp_file_test\shp_file_test....shpTraceback:
line 1971, in , "...\UserObjects\sdna-gh\sDNA_GH\custom\tools.py"
line 2012, in call, "...\UserObjects\sdna-gh\sDNA_GH\custom\tools.py"
line 1968, in gdm_of_new_geom_from_group, "...\UserObjects\sdna-gh\sDNA_GH\custom\tools.py"
line 130, in run_tools, "...\UserObjects\sdna-gh\sDNA_GH\custom\skel\tools\runner.py"
line 1237, in script, "...\UserObjects\sdna-gh\sDNA_GH\main.py"
line 375, in RunScript, "...\UserObjects\sdna-gh\sDNA_GH\custom\skel\basic\smart_comp.py"
from sdna_gh.
Related Issues (20)
- Read_Shp needs to read in Shapefiles of Polygons HOT 1
- sDNA Hulls needs to get Read_Shp to deal with its output shape file contains Polygons? HOT 1
- sDNA Network radii returns a shapefile of multiple polylines per data record HOT 1
- Double check console logging level & dynamic update change HOT 3
- Do not overwrite options whose names are all in CAPS plus _
- Search sub folders of Python 2.7 folders for a python.exe HOT 1
- Metas has been set to DEFAULT_NAME_MAP HOT 1
- food4rhino.com renamed the upload from sDNA_GH.zip to sdnagh.zip, breaking the Python package import.
- Write_Shp writes 3D Grasshopper Polylines as 2D Polylinez in shapefiles HOT 1
- Some polylines in GIS Shapefiles are unaddable by rhinoscriptsyntax.AddPolyline
- Look into writing zero length polylines in Write_Shp. HOT 1
- Order of fields from Read Shp can be different to their order in Data. HOT 2
- Fields named "Layer" and "Path" in shp files from QGIS mess up import of other .dbf data by Read_Shp HOT 1
- Components can glitch and not update their options from Grasshopper input params. HOT 1
- Feature: Make Python 3 transition consistent. PythonOptions.python_paths prioritised 2.7 & error messages and comments still recommend Python 2.7
- Will not fix. Error in Rhino 8.4 on first placement of an sDNA_Integral component HOT 1
- Rhino 8 bug. Error on first running of sDNA_Integral in Rhino 8.5 HOT 2
- Bug fix. Error when Recolour_objects must call Parse_Data
- Rhino 8. ghdoc.py doesn't work in CPython 3 components.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdna_gh.