-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all examples and tests with dimensionality
- Loading branch information
Showing
19 changed files
with
330 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
import { GeoJSONGeometryCollection } from "../../src"; | ||
import { GeoJSON2DGeometryCollection, GeoJSON3DGeometryCollection } from "../../src"; | ||
import { geoJsonLineString3D } from "./line_string"; | ||
import { multiGeoJsonMultiLineString2D } from "./multi_line_string"; | ||
import { geoJsonMultiPoint2D } from "./multi_point"; | ||
import { singleGeoJsonMultiPolygon3D } from "./multi_polygon"; | ||
import { geoJsonPoint2D, geoJsonPoint2DWithBbox, geoJsonPoint3D } from "./point"; | ||
import { geoJsonPolygon2D } from "./polygon"; | ||
|
||
export const singleGeoJsonGeometryCollection2D: GeoJSONGeometryCollection = { | ||
export const singleGeoJsonGeometryCollection2D: GeoJSON2DGeometryCollection = { | ||
type: "GeometryCollection", | ||
geometries: [geoJsonPoint2D], | ||
}; | ||
|
||
export const multiGeoJsonGeometryCollection2D: GeoJSONGeometryCollection = { | ||
export const multiGeoJsonGeometryCollection2D: GeoJSON2DGeometryCollection = { | ||
type: "GeometryCollection", | ||
geometries: [geoJsonPoint2D, geoJsonMultiPoint2D, geoJsonPolygon2D, multiGeoJsonMultiLineString2D], | ||
}; | ||
|
||
export const multiGeoJsonGeometryCollection3D: GeoJSONGeometryCollection = { | ||
export const multiGeoJsonGeometryCollection3D: GeoJSON3DGeometryCollection = { | ||
type: "GeometryCollection", | ||
geometries: [geoJsonPoint3D, geoJsonLineString3D, singleGeoJsonMultiPolygon3D], | ||
}; | ||
|
||
export const singleGeoJsonGeometryCollection2DWithBbox: GeoJSONGeometryCollection = { | ||
export const singleGeoJsonGeometryCollection2DWithBbox: GeoJSON2DGeometryCollection = { | ||
...singleGeoJsonGeometryCollection2D, | ||
bbox: geoJsonPoint2DWithBbox.bbox, | ||
}; | ||
|
||
export const multiGeoJsonGeometryCollection2DWithBbox: GeoJSONGeometryCollection = { | ||
export const multiGeoJsonGeometryCollection2DWithBbox: GeoJSON2DGeometryCollection = { | ||
...multiGeoJsonGeometryCollection2D, | ||
bbox: [-3.0, -2.0, 30.0, 30.0], | ||
}; | ||
|
||
export const multiGeoJsonGeometryCollection3DWithBbox: GeoJSONGeometryCollection = { | ||
export const multiGeoJsonGeometryCollection3DWithBbox: GeoJSON3DGeometryCollection = { | ||
...multiGeoJsonGeometryCollection3D, | ||
bbox: [0.0, 0.0, 0.0, 20.0, 10.0, 10.0], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { GeoJSONPoint } from "../../src"; | ||
import { GeoJSON2DPoint, GeoJSON3DPoint } from "../../src"; | ||
|
||
export const geoJsonPoint2D: GeoJSONPoint = { | ||
export const geoJsonPoint2D: GeoJSON2DPoint = { | ||
type: "Point", | ||
coordinates: [1.0, 2.0], | ||
}; | ||
|
||
export const geoJsonPoint3D: GeoJSONPoint = { | ||
export const geoJsonPoint3D: GeoJSON3DPoint = { | ||
type: "Point", | ||
coordinates: [1.0, 2.0, 10.0], | ||
}; | ||
|
||
export const geoJsonPoint2DWithBbox: GeoJSONPoint = { | ||
export const geoJsonPoint2DWithBbox: GeoJSON2DPoint = { | ||
...geoJsonPoint2D, | ||
bbox: [1.0, 2.0, 1.0, 2.0], | ||
}; | ||
|
||
export const geoJsonPoint3DWithBbox: GeoJSONPoint = { | ||
export const geoJsonPoint3DWithBbox: GeoJSON3DPoint = { | ||
...geoJsonPoint3D, | ||
bbox: [1.0, 2.0, 10.0, 1.0, 2.0, 10.0], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.