|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #53422] Corrupt output when writing polygons to shapefile with shapewrite (Mapping package) |
Date: | Thu, 22 Mar 2018 14:00:26 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?53422> Summary: Corrupt output when writing polygons to shapefile with shapewrite (Mapping package) Project: GNU Octave Submitted by: None Submitted on: Thu 22 Mar 2018 06:00:24 PM UTC Category: Octave Forge Package Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Matt Parkan Originator Email: address@hidden Open/Closed: Open Discussion Lock: Any Release: 4.2.1 Operating System: Microsoft Windows _______________________________________________________ Details: Hi all, When writing polygons to a shapefile with shapewrite, only a .shp file is produced (no .shx or .dbf files). The .shp file seems to be corrupt and cannot be opened with Quantum GIS (2.14.4) or read with ogrinfo. However, it can be opened with shaperead. Example: s = struct; j = 1; s(j).Geometry = 'Polygon'; s(j).X = [1 2 2 1 1]; s(j).Y = [2 2 1 1 2]; s(j).BoundingBox = [1 1; 2 2]; s(j).Name = 'att1'; j = 2; s(j).Geometry = 'Polygon'; s(j).X = [2 3 3 2 2]; s(j).Y = [3 3 2 2 3]; s(j).BoundingBox = [2 3; 2 3]; s(j).Name = 'att2'; shapewrite(s, 'test.shp'); I = shaperead('test.shp'); _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53422> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |