[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shap
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error |
Date: |
Mon, 3 Jan 2022 10:36:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?61757>
Summary: [octave forge](mapping) function "shaperead"
Atttributes property/value document error
Project: GNU Octave
Submitted by: None
Submitted on: Mon 03 Jan 2022 03:36:53 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Bob Maier
Originator Email: robert.s.maier@gmail.com
Open/Closed: Open
Release: 4.4.1
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
mapping package version 1.4.1
This concerns documentation for the Attributes property/value pair.
In the first example, I defined Attributes to include:
{"BoundingBox","X","Y","GEOID20"} The first three are in the .shp file but
not in the .dbf file. The example fails to read "GEOID20" from the .dbf
file.
In the second example, I defined Attributes to include only "GEOID20" and
everything worked fine.
octave:381> attr = {"BoundingBox","X","Y","GEOID20"};
octave:382> bl =
shaperead(BLNAME,"BoundingBox",[lon,lat],"Attributes",attr,"Recordnumbers",[1:1000:150000])
shaperead: file /home/maier/bob/IRC/CENSUS/tl_2021_04_tabblock20.dbf couldn't
be read;
no attributes appended
bl =
10x1 struct array containing the fields:
Geometry
BoundingBox
X
Y
octave:383>
octave:383> attr = {"GEOID20"};
octave:384> bl =
shaperead(BLNAME,"BoundingBox",[lon,lat],"Attributes",attr,"Recordnumbers",[1:1000:150000])
bl =
10x1 struct array containing the fields:
Geometry
BoundingBox
X
Y
GEOID20
octave:385>
The Attributes cell list evidently should NOT include any attributes included
in the .shp file, such as "BoundingBox". Including them will cause dbfread to
fail.
Perhaps this is simply a matter of documentation?
Great package! Thank you.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61757>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error,
anonymous <=
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/03
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/07
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/07
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/08
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/08
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/08
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, anonymous, 2022/01/09
- [Octave-bug-tracker] [bug #61757] [octave forge](mapping) function "shaperead" Atttributes property/value document error, Philip Nienhuis, 2022/01/09