diff --git a/Misc/Maps/getGSHHGBoundaryData.m b/Misc/Maps/getGSHHGBoundaryData.m index 4cf077b..e177198 100644 --- a/Misc/Maps/getGSHHGBoundaryData.m +++ b/Misc/Maps/getGSHHGBoundaryData.m @@ -521,9 +521,7 @@ vertices=vertices(1:numPolyTaken); mapData.latLonRecDeg=latLonRecDeg; - mapData.vertices=vertices; - mapData.headerInfo=headerInfo; - mapData.shapeInfo=shapeInfo; + %Sort the vertices and First sort by level number. Levels 1, 5,and 6 %stay at the top, then levels 2 and 3. @@ -606,6 +604,10 @@ firstChildIdx=[]; end + mapData.vertices=vertices; + mapData.headerInfo=headerInfo; + mapData.shapeInfo=shapeInfo; + %Fill the structure to return. childStructureInfo.numRootParents=int32(numRootParents); childStructureInfo.maxChildLevel=int32(maxChildLevel); diff --git a/Misc/Maps/pointIsOnLand.m b/Misc/Maps/pointIsOnLand.m index 5b8fc11..6651eae 100644 --- a/Misc/Maps/pointIsOnLand.m +++ b/Misc/Maps/pointIsOnLand.m @@ -14,9 +14,9 @@ % getGSHHGBoundaryData function; see the comments to that % function for more details on the format. This function % supports dataType=0 maps from that function for -% determinign if a popints is on land, or assuming the -% points is on land, one can pass dataType=1 data to -% determine whether or not the point is on a navigabel river +% determining if a point is on land, or assuming the +% point is on land, one can pass dataType=1 data to +% determine whether or not the point is on a navigable river % (so isOnLand=false) or is not on the river % (isOnLand=true). % @@ -40,7 +40,7 @@ %searched to determine whether it is one land, in a lake, etc. % %EXAMPLE 1: -%This initial example plots Eurpe without lakes and tests a grid of points +%This initial example plots Europe without lakes and tests a grid of points %for being on land or not. Those points that are on land are displayed in %magents and those in the water are cyan. % latLonRecDeg=[30;60;-30;30];