Skip to content

Commit 3d6ac01

Browse files
committed
Fix bad source formatting
1 parent b9d4a99 commit 3d6ac01

24 files changed

Lines changed: 528 additions & 528 deletions

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ characters). If the VectorFeatures are polygons, you can also apply
6565
the values of a particular property of the dataset's features to
6666
a given patch variable.
6767

68-
For the common use case of converting a VectorDataset of points into
69-
a corresponding set of turtles with the same attributes, the
70-
[gis:create-turtles-from-points](#giscreate-turtles-from-points)
68+
For the common use case of converting a VectorDataset of points into
69+
a corresponding set of turtles with the same attributes, the
70+
[gis:create-turtles-from-points](#giscreate-turtles-from-points)
7171
primitive should be used.
7272

7373
There are also several things you can do with a VectorFeature from a
@@ -82,12 +82,12 @@ the first and last vertex of the list will be the same. The vertex
8282
lists are made up of values of type Vertex, and the centroid will be
8383
a value of type Vertex as well.
8484

85-
For the common use case of spawning a number of turtles inside the
86-
bounds of a Polygon VectorFeature, the
87-
[gis:create-turtles-inside-polygon](#giscreate-turtles-inside-polygon)
88-
primitive should be used. Though the
89-
[gis:random-point-inside](#gisrandom-point-inside) primitive can
90-
also be used if you don't want the spawned turtles to take on
85+
For the common use case of spawning a number of turtles inside the
86+
bounds of a Polygon VectorFeature, the
87+
[gis:create-turtles-inside-polygon](#giscreate-turtles-inside-polygon)
88+
primitive should be used. Though the
89+
[gis:random-point-inside](#gisrandom-point-inside) primitive can
90+
also be used if you don't want the spawned turtles to take on
9191
the attributes of the Polygon.
9292

9393
There are a number of operations defined for RasterDatasets as well.
@@ -544,21 +544,21 @@ gis:load-dataset *file*
544544
```
545545

546546

547-
Loads the given data file, re-projecting the data as necessary.
547+
Loads the given data file, re-projecting the data as necessary.
548548

549549
Relative paths are resolved relative to the location of the current
550550
model, or the user's home directory if the current model
551551
hasn't been saved yet.
552552

553-
For ESRI shapefiles and ESRI grid files, if there is a ".prj" file
553+
For ESRI shapefiles and ESRI grid files, if there is a ".prj" file
554554
associated with the file, then `load-datset` will consult that file
555555
and re-project to the current global projection if needed. If no ".prj"
556556
file is found, then the data is assumed to use the same projection as
557557
the current global coordinate system.
558558

559-
For GeoJSON files, as per the most-recent specification (RFC 7946),
560-
the coordinate system for GeoJSON files is always WGS84 and will be
561-
imported accordingly.
559+
For GeoJSON files, as per the most-recent specification (RFC 7946),
560+
the coordinate system for GeoJSON files is always WGS84 and will be
561+
imported accordingly.
562562

563563
Currently, three types of data file are supported:
564564

@@ -569,18 +569,18 @@ Currently, three types of data file are supported:
569569
contains raster data, consisting of a grid of values. When
570570
the target file is an ASCII grid file, `load-dataset`
571571
reports a RasterDataset.
572-
* "**.geojson**" or "**.json**" (GeoJSON): contains vector data
573-
similar to shapefiles and similarly reports a VectorDataset.
572+
* "**.geojson**" or "**.json**" (GeoJSON): contains vector data
573+
similar to shapefiles and similarly reports a VectorDataset.
574574

575-
Note that not all aspects of the GeoJSON standard are supported.
576-
In particular, to be properly imported, a GeoJSON file must
577-
satisfy the following:
575+
Note that not all aspects of the GeoJSON standard are supported.
576+
In particular, to be properly imported, a GeoJSON file must
577+
satisfy the following:
578578

579-
* It only contain numeric or string data within the properties.
580-
all other json data will be stringified.
579+
* It only contain numeric or string data within the properties.
580+
all other json data will be stringified.
581581
* All "Features" within a "FeatureCollection" must be of the same
582582
shape type ("Point", "LineString", etc.) Additionally, if not all
583-
the "Features" in the "FeatureCollection" have the same set of
583+
the "Features" in the "FeatureCollection" have the same set of
584584
property names, default values will be supplied where there
585585
are missing entries (0 for numbers and "" for strings.)
586586
* It must not use "GeometryCollection", which is not supported
@@ -600,20 +600,20 @@ gis:store-dataset *dataset* *file*
600600
```
601601

602602

603-
Exports the given dataset to the given file.
603+
Exports the given dataset to the given file.
604604

605605
For VectorDatasets, two file formats are supported, ESRI shapefiles
606-
and GeoJSON. If the given file name ends in ".geojson" or ".json",
606+
and GeoJSON. If the given file name ends in ".geojson" or ".json",
607607
then the file will be exported as a GeoJSON file. If the file name
608608
ends in any other extension or no extension at all, the dataset
609609
will be exported as a shapefile and the associated file extensions
610610
will be supplied (".shp", ".prj", etc.)
611611

612-
For RasterDatasets, only ESRI ASCII grid files are supported and
612+
For RasterDatasets, only ESRI ASCII grid files are supported and
613613
the associated file extensions will be automatically supplied.
614614

615-
Relative paths are resolved relative to the location of the current
616-
model, or the user's home directory if the current model hasn't
615+
Relative paths are resolved relative to the location of the current
616+
model, or the user's home directory if the current model hasn't
617617
been saved yet.
618618

619619

@@ -753,7 +753,7 @@ gis:random-point-inside *VectorFeature*
753753

754754
Reports a single randomly-generated Vertex that lies within the
755755
given feature polygon. Generated points are uniformly
756-
distributed within the polygon and both polygon holes and
756+
distributed within the polygon and both polygon holes and
757757
multi-polygon features are supported.
758758

759759
```
@@ -788,11 +788,11 @@ gis:set-property-value *VectorFeature* *property-name* *value*
788788
```
789789

790790

791-
Sets the value of the given property of the given VectorFeature. The
791+
Sets the value of the given property of the given VectorFeature. The
792792
type of the given value (string or number) must match the property
793-
type of the VectorFeature. This command may be used in conjunction
794-
with store-dataset to make changes to VectorFeatures and export
795-
them back as GIS datasets.
793+
type of the VectorFeature. This command may be used in conjunction
794+
with store-dataset to make changes to VectorFeatures and export
795+
them back as GIS datasets.
796796

797797

798798

@@ -1038,7 +1038,7 @@ to setup
10381038
]
10391039
end
10401040
```
1041-
1041+
10421042

10431043

10441044
### `gis:create-turtles-from-points-manual`
@@ -1082,7 +1082,7 @@ to setup
10821082
;; Each city turtle still has a name, country, and population set just like the non-manual version.
10831083
end
10841084
```
1085-
1085+
10861086

10871087

10881088
### `gis:create-turtles-inside-polygon`
@@ -1140,7 +1140,7 @@ to setup
11401140
]
11411141
end
11421142
```
1143-
1143+
11441144

11451145

11461146
### `gis:create-turtles-inside-polygon-manual`
@@ -1165,7 +1165,7 @@ the rest of the mappings will be untouched.
11651165

11661166
See the `create-turtles-from-points-manual` entry for an example of
11671167
how to override default mappings with manual ones.
1168-
1168+
11691169

11701170

11711171
### `gis:coverage-minimum-threshold`

USING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ characters). If the VectorFeatures are polygons, you can also apply
5252
the values of a particular property of the dataset's features to
5353
a given patch variable.
5454

55-
For the common use case of converting a VectorDataset of points into
56-
a corresponding set of turtles with the same attributes, the
57-
[gis:create-turtles-from-points](#giscreate-turtles-from-points)
55+
For the common use case of converting a VectorDataset of points into
56+
a corresponding set of turtles with the same attributes, the
57+
[gis:create-turtles-from-points](#giscreate-turtles-from-points)
5858
primitive should be used.
5959

6060
There are also several things you can do with a VectorFeature from a
@@ -69,12 +69,12 @@ the first and last vertex of the list will be the same. The vertex
6969
lists are made up of values of type Vertex, and the centroid will be
7070
a value of type Vertex as well.
7171

72-
For the common use case of spawning a number of turtles inside the
73-
bounds of a Polygon VectorFeature, the
74-
[gis:create-turtles-inside-polygon](#giscreate-turtles-inside-polygon)
75-
primitive should be used. Though the
76-
[gis:random-point-inside](#gisrandom-point-inside) primitive can
77-
also be used if you don't want the spawned turtles to take on
72+
For the common use case of spawning a number of turtles inside the
73+
bounds of a Polygon VectorFeature, the
74+
[gis:create-turtles-inside-polygon](#giscreate-turtles-inside-polygon)
75+
primitive should be used. Though the
76+
[gis:random-point-inside](#gisrandom-point-inside) primitive can
77+
also be used if you don't want the spawned turtles to take on
7878
the attributes of the Polygon.
7979

8080
There are a number of operations defined for RasterDatasets as well.

src/org/myworldgis/io/asciigrid/AsciiGridConstants.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,42 @@
1010
import java.util.Locale;
1111

1212
/**
13-
*
13+
*
1414
*/
1515
public interface AsciiGridConstants {
16-
16+
1717
//--------------------------------------------------------------------------
1818
// Class variables
1919
//--------------------------------------------------------------------------
20-
20+
2121
/** */
2222
public static final String ASCII_GRID_FILE_EXTENSION_1 = "asc";
23-
23+
2424
/** */
2525
public static final String ASCII_GRID_FILE_EXTENSION_2 = "grd";
26-
26+
2727
/** */
2828
public static final String COLUMN_COUNT = "NCOLS";
29-
29+
3030
/** */
3131
public static final String ROW_COUNT = "NROWS";
32-
32+
3333
/** */
3434
public static final String LEFT_LONGITUDE = "XLLCORNER";
35-
35+
3636
/** */
3737
public static final String BOTTOM_LATITUDE = "YLLCORNER";
38-
38+
3939
/** */
4040
public static final String CELL_SIZE = "CELLSIZE";
41-
41+
4242
/** */
4343
public static final String NAN_VALUE = "NODATA_VALUE";
44-
44+
4545
/** */
4646
public static final NumberFormat DIMENSION_FORMAT = new DecimalFormat("##0.######", new DecimalFormatSymbols(Locale.US));
47-
47+
4848
/** */
49-
public static final NumberFormat VALUE_FORMAT = new DecimalFormat("####################0.##########",
49+
public static final NumberFormat VALUE_FORMAT = new DecimalFormat("####################0.##########",
5050
new DecimalFormatSymbols(Locale.US));
5151
}

src/org/myworldgis/io/geojson/GeoJsonConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ public interface GeoJsonConstants {
44

55
public final static String GEOJSON_EXTENSION = "geojson";
66

7-
public final static String JSON_EXTENSION = "json";
7+
public final static String JSON_EXTENSION = "json";
88

99
}

0 commit comments

Comments
 (0)