Skip to content

Commit dd6b15b

Browse files
author
David Crouse
committed
Bug Fixes
1 parent 270524d commit dd6b15b

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Misc/Maps/getGSHHGBoundaryData.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,7 @@
521521
vertices=vertices(1:numPolyTaken);
522522

523523
mapData.latLonRecDeg=latLonRecDeg;
524-
mapData.vertices=vertices;
525-
mapData.headerInfo=headerInfo;
526-
mapData.shapeInfo=shapeInfo;
524+
527525

528526
%Sort the vertices and First sort by level number. Levels 1, 5,and 6
529527
%stay at the top, then levels 2 and 3.
@@ -606,6 +604,10 @@
606604
firstChildIdx=[];
607605
end
608606

607+
mapData.vertices=vertices;
608+
mapData.headerInfo=headerInfo;
609+
mapData.shapeInfo=shapeInfo;
610+
609611
%Fill the structure to return.
610612
childStructureInfo.numRootParents=int32(numRootParents);
611613
childStructureInfo.maxChildLevel=int32(maxChildLevel);

Misc/Maps/pointIsOnLand.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
% getGSHHGBoundaryData function; see the comments to that
1515
% function for more details on the format. This function
1616
% supports dataType=0 maps from that function for
17-
% determinign if a popints is on land, or assuming the
18-
% points is on land, one can pass dataType=1 data to
19-
% determine whether or not the point is on a navigabel river
17+
% determining if a point is on land, or assuming the
18+
% point is on land, one can pass dataType=1 data to
19+
% determine whether or not the point is on a navigable river
2020
% (so isOnLand=false) or is not on the river
2121
% (isOnLand=true).
2222
%
@@ -40,7 +40,7 @@
4040
%searched to determine whether it is one land, in a lake, etc.
4141
%
4242
%EXAMPLE 1:
43-
%This initial example plots Eurpe without lakes and tests a grid of points
43+
%This initial example plots Europe without lakes and tests a grid of points
4444
%for being on land or not. Those points that are on land are displayed in
4545
%magents and those in the water are cyan.
4646
% latLonRecDeg=[30;60;-30;30];

0 commit comments

Comments
 (0)