[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt outpu
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite |
Date: |
Wed, 28 Mar 2018 04:09:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 |
Follow-up Comment #5, bug #53422 (project octave):
Part of the code missing for the Point geometry type:
%% Point
s = struct;
j = 1;
s(j).Geometry = 'Point';
s(j).X = 597600;
s(j).Y = 172250;
s(j).BoundingBox = [min(s(j).X), min(s(j).Y); max(s(j).X), max(s(j).Y)];
s(j).Custom1 = 'abc';
s(j).Custom2 = 42;
j = 2;
s(j).Geometry = 'Point';
s(j).X = 598600;
s(j).Y = 170250;
s(j).BoundingBox = [min(s(j).X), min(s(j).Y); max(s(j).X), max(s(j).Y)];
s(j).Custom1 = 'cdf';
s(j).Custom2 = 43;
% test if input and output have the same field values
shapewrite(s, 'point.shp');
s2 = shaperead('point.shp');
test = all(cellfun(@(k) isequal(s.(k), s2.(k)), fieldnames(s2)))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53422>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53422] Corrupt output when writing polygons to shapefile with shapewrite (Mapping package), anonymous, 2018/03/22
- [Octave-bug-tracker] [bug #53422] Corrupt output when writing polygons to shapefile with shapewrite (Mapping package), Philip Nienhuis, 2018/03/22
- [Octave-bug-tracker] [bug #53422] [octave-forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite (Mapping package), Philip Nienhuis, 2018/03/22
- [Octave-bug-tracker] [bug #53422] [octave-forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/22
- [Octave-bug-tracker] [bug #53422] [octave-forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, anonymous, 2018/03/23
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, John W. Eaton, 2018/03/23
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/23
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/23
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, anonymous, 2018/03/28
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite,
anonymous <=
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/28
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/28
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/28
- [Octave-bug-tracker] [bug #53422] [octave forge] (mapping) Corrupt output when writing polygons to shapefile with shapewrite, Philip Nienhuis, 2018/03/28