### Instantiate GeoJSONReader Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Creates a new instance of the GeoJSONReader. No specific setup or imports are required beyond having the library available. ```java public GeoJSONReader() ``` -------------------------------- ### GeoJSONFactory Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSONFactory.html The default constructor for the GeoJSONFactory class. No specific setup is required to use it. ```java public GeoJSONFactory() ``` -------------------------------- ### Get MultiPolygon Coordinates Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html Retrieves the coordinates of the MultiPolygon as a four-dimensional double array. ```java public double[][][][] getCoordinates() ``` -------------------------------- ### Initialize Polygon Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Polygon.html Constructor for creating a new Polygon instance with specified coordinates. ```java public Polygon​(double[][][] coordinates) ``` -------------------------------- ### Initialize LineString Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/LineString.html Constructor for creating a new LineString instance with a 2D array of coordinates. ```java public LineString​(double[][] coordinates) ``` -------------------------------- ### Geometry Class Overview Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Geometry.html Provides an overview of the Geometry class, its inheritance, and known subclasses. ```APIDOC ## Geometry Class ### Description Represents a geometric object in the JTS2GeoJSON library. It is an abstract class that extends the `GeoJSON` class and serves as a base class for various geometry types. ### Direct Known Subclasses `GeometryCollection`, `LineString`, `MultiLineString`, `MultiPoint`, `MultiPolygon`, `Point`, `Polygon` ### Methods Inherited from `org.wololo.geojson.GeoJSON` - `getType()` - `setType(String type)` - `toString()` ### Methods Inherited from `java.lang.Object` - `clone()` - `equals(Object obj)` - `finalize()` - `getClass()` - `hashCode()` - `notify()` - `notifyAll()` - `wait()` - `wait(long timeout)` - `wait(long timeout, int nanos)` ``` -------------------------------- ### Point Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Point.html Constructor for the Point class. Initializes a Point object with the given coordinates. ```java public Point(double[] coordinates) ``` -------------------------------- ### LineString Class Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/LineString.html Details about the LineString class, its constructors, and methods. ```APIDOC ## LineString Class ### Description Represents a LineString geometry in GeoJSON format. ### Constructor Summary Constructors | Description ---|--- `LineString(double[][] coordinates)` | Creates a new LineString with the given coordinates. ### Method Summary All Methods | Instance Methods | Concrete Methods | Modifier and Type | Method | Description ---|---|---|---|---|--- | | | `double[]` | `getBbox()` | Returns the bounding box of the LineString. | | | `double[][]` | `getCoordinates()` | Returns the coordinates of the LineString. ### Methods inherited from class org.wololo.geojson.GeoJSON `getType`, `setType`, `toString` ### Methods inherited from class java.lang.Object `clone`, `equals`, `finalize`, `getClass`, `hashCode`, `notify`, `notifyAll`, `wait`, `wait`, `wait` ### Constructor Detail #### LineString ```java public LineString(double[][] coordinates) ``` ### Method Detail #### getCoordinates ```java public double[][] getCoordinates() ``` #### getBbox ```java public double[] getBbox() ``` ``` -------------------------------- ### GeometryCollection Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeometryCollection.html Initializes a new instance of the GeometryCollection class. ```APIDOC ## GeometryCollection Constructor ### Description Constructs a GeometryCollection with an array of geometries. ### Method `GeometryCollection(Geometry[] geometries)` ### Parameters #### Request Body - **geometries** (Geometry[]) - Required - An array of Geometry objects. ``` -------------------------------- ### Initialize MultiLineString Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiLineString.html Constructor for creating a MultiLineString instance with coordinates. ```java public MultiLineString​(double[][][] coordinates) ``` -------------------------------- ### Geometry Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Geometry.html Details the constructor available for the Geometry class. ```APIDOC ## Constructor Detail ### Geometry ```java public Geometry() ``` **Description:** Initializes a new instance of the `Geometry` class. ``` -------------------------------- ### Point Class API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Point.html API documentation for the Point class, including constructors and methods for retrieving coordinates and bounding boxes. ```APIDOC ## Point Class ### Description Represents a GeoJSON Point geometry. This class extends the Geometry class and provides methods to manage coordinate data. ### Constructor - **Point(double[] coordinates)** - Initializes a new Point with the specified coordinates. ### Methods - **getCoordinates()** (double[]) - Returns the coordinates of the point. - **getBbox()** (double[]) - Returns the bounding box of the point. ``` -------------------------------- ### Feature Class Constructors and Methods Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Feature.html API reference for the Feature class, detailing constructors and accessor methods for GeoJSON features. ```APIDOC ## Feature Class ### Description Represents a GeoJSON Feature object, extending the base GeoJSON class. ### Constructors - **Feature(Geometry geometry, Map properties)** - Initializes a new Feature with geometry and properties. - **Feature(Object id, Geometry geometry, Map properties)** - Initializes a new Feature with an ID, geometry, and properties. ### Methods - **getId()** (Object) - Returns the feature ID. - **getGeometry()** (Geometry) - Returns the geometry associated with the feature. - **getProperties()** (Map) - Returns the properties map of the feature. ``` -------------------------------- ### Feature Constructors Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Feature.html Constructors for initializing a Feature with geometry and properties, optionally including an ID. ```java public Feature​(Geometry geometry, Map properties) ``` ```java public Feature​(Object id, Geometry geometry, Map properties) ``` -------------------------------- ### MultiPolygon Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html Initializes a new MultiPolygon instance with the specified coordinates. ```java public MultiPolygon​(double[][][][] coordinates) ``` -------------------------------- ### GeoJSONWriter Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONWriter.html Constructor for initializing a new GeoJSONWriter instance. ```java public GeoJSONWriter() ``` -------------------------------- ### MultiPoint Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPoint.html Constructor for creating a MultiPoint object with specified coordinates. Requires an array of double arrays representing the points. ```java public MultiPoint (double[][] coordinates) ``` -------------------------------- ### Library Class Overview Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/package-summary.html List of available classes in the jts2geojson library for handling GeoJSON and Geometry objects. ```APIDOC ## Class Summary ### Description The following classes are available within the org.wololo:jts2geojson library for processing spatial data: - **Feature**: Represents a GeoJSON Feature. - **FeatureCollection**: Represents a collection of GeoJSON Features. - **GeoJSON**: Base class for GeoJSON objects. - **GeoJSONFactory**: Factory class for creating GeoJSON objects. - **Geometry**: Base class for JTS geometries. - **GeometryCollection**: Represents a collection of JTS geometries. - **LineString**: Represents a JTS LineString. - **MultiLineString**: Represents a JTS MultiLineString. - **MultiPoint**: Represents a JTS MultiPoint. - **MultiPolygon**: Represents a JTS MultiPolygon. - **Point**: Represents a JTS Point. - **Polygon**: Represents a JTS Polygon. ``` -------------------------------- ### getBbox Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html Retrieves the bounding box of the MultiPolygon. ```APIDOC ## getBbox Method ### Description Returns the bounding box of this MultiPolygon. ### Method `getBbox()` ### Returns * **double[]** - The bounding box coordinates of the MultiPolygon. ``` -------------------------------- ### FeatureCollection Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/FeatureCollection.html Constructor for initializing a FeatureCollection with an array of Feature objects. ```java public FeatureCollection​(Feature[] features) ``` -------------------------------- ### MultiPoint Class API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPoint.html API documentation for the MultiPoint class, including constructor and coordinate retrieval methods. ```APIDOC ## MultiPoint Class ### Description Represents a GeoJSON MultiPoint geometry, extending the Geometry class. ### Constructor - **MultiPoint(double[][] coordinates)** - Initializes a new MultiPoint object with the provided coordinates. ### Methods - **getCoordinates()** (double[][]) - Returns the coordinates of the MultiPoint. - **getBbox()** (double[]) - Returns the bounding box of the MultiPoint. ``` -------------------------------- ### MultiPolygon Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html Constructs a MultiPolygon object with the specified coordinates. ```APIDOC ## MultiPolygon Constructor ### Description Constructs a new MultiPolygon object. ### Method `MultiPolygon(double[][][][] coordinates)` ### Parameters * **coordinates** (double[][][][]) - The array of polygon coordinates defining the MultiPolygon. ``` -------------------------------- ### GeometryCollection Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeometryCollection.html Constructor for initializing a GeometryCollection with an array of geometries. ```java public GeometryCollection​(Geometry[] geometries) ``` -------------------------------- ### Geometry Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Geometry.html The default constructor for the Geometry class. ```java public Geometry() ``` -------------------------------- ### FeatureCollection Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/FeatureCollection.html Constructs a new FeatureCollection with the specified array of Features. ```APIDOC ## FeatureCollection Constructor ### Description Constructs a new FeatureCollection with the specified array of Features. ### Method `public FeatureCollection(Feature[] features)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response None #### Success Response (200) None #### Response Example None ``` -------------------------------- ### Feature Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/class-use/Geometry.html Constructs a new GeoJSON Feature object. ```APIDOC ## POST /org.wololo.geojson/Feature ### Description Creates a new Feature instance with optional ID, geometry, and properties. ### Method POST ### Parameters #### Request Body - **id** (Object) - Optional - The identifier for the feature. - **geometry** (Geometry) - Required - The geometry associated with the feature. - **properties** (Map) - Required - A map of properties for the feature. ### Response #### Success Response (200) - **Feature** (Object) - The created Feature instance. ``` -------------------------------- ### Feature Accessor Methods Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Feature.html Methods to retrieve the identifier, geometry, and properties of a Feature instance. ```java public Object getId() ``` ```java public Geometry getGeometry() ``` ```java public Map getProperties() ``` -------------------------------- ### GeoJSON Constructor Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Default constructor for the GeoJSON class. No specific initialization is performed. ```java public GeoJSON() ``` -------------------------------- ### Write FeatureCollection Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONWriter.html Converts a list of features into a GeoJSON FeatureCollection. ```java public FeatureCollection write​(List features) ``` -------------------------------- ### Retrieve LineString Bounding Box Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/LineString.html Method to retrieve the bounding box of the geometry. ```java public double[] getBbox() ``` -------------------------------- ### getBbox Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Point.html Retrieves the bounding box of the Point object. This method is inherited from GeoJSON. ```java public double[] getBbox() ``` -------------------------------- ### GeoJSONWriter.write Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/class-use/FeatureCollection.html Documentation for the write method in the GeoJSONWriter class which converts a list of features into a FeatureCollection. ```APIDOC ## POST GeoJSONWriter.write ### Description Converts a list of JTS features into a GeoJSON FeatureCollection object. ### Method POST ### Parameters #### Request Body - **features** (List) - Required - A list of JTS features to be converted. ### Response #### Success Response (200) - **FeatureCollection** (Object) - The resulting GeoJSON FeatureCollection object. ``` -------------------------------- ### MultiLineString Class API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiLineString.html API reference for the MultiLineString class, including constructor and coordinate retrieval methods. ```APIDOC ## Constructor: MultiLineString ### Description Constructs a new MultiLineString object with the provided coordinates. ### Parameters - **coordinates** (double[][][]) - Required - The 3D array of coordinates representing the MultiLineString. ## Method: getCoordinates ### Description Retrieves the coordinates of the MultiLineString. ### Response - **Return Type** (double[][][]) - The coordinates of the geometry. ## Method: getBbox ### Description Retrieves the bounding box of the MultiLineString. ### Response - **Return Type** (double[]) - The bounding box array. ``` -------------------------------- ### getCoordinates Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Point.html Retrieves the coordinates of the Point object. ```java public double[] getCoordinates() ``` -------------------------------- ### GeoJSONFactory Class Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSONFactory.html Provides methods for creating GeoJSON objects. ```APIDOC ## GeoJSONFactory ### Description Represents a factory for creating GeoJSON objects. ### Constructor Summary | Constructor | Description | |-----------------|-------------| | `GeoJSONFactory()` | Initializes a new instance of the `GeoJSONFactory` class. | ### Method Summary #### Static Methods | Modifier and Type | Method | Description | |-------------------|---------------------|-------------| | `static GeoJSON` | `create(String json)` | Creates a GeoJSON object from a JSON string. | ### Constructor Detail #### GeoJSONFactory ```java public GeoJSONFactory() ``` ### Method Detail #### create ```java public static GeoJSON create(String json) ``` **Parameters** - **json** (String) - The JSON string representing the GeoJSON object. ``` -------------------------------- ### Feature Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Feature.html The base class definition for the Feature object. ```java public class Feature extends GeoJSON ``` -------------------------------- ### Polygon Class API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Polygon.html API reference for the Polygon class, including constructor and coordinate retrieval methods. ```APIDOC ## Polygon Class ### Description Represents a GeoJSON Polygon geometry, extending the Geometry class. ### Constructor - **Polygon(double[][][] coordinates)** - Initializes a new Polygon with the provided coordinates. ### Methods - **getCoordinates()** (double[][][]) - Returns the coordinates of the polygon. - **getBbox()** (double[]) - Returns the bounding box of the polygon. ``` -------------------------------- ### getFeatures Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/FeatureCollection.html Retrieves the array of features contained within the collection. ```java public Feature[] getFeatures() ``` -------------------------------- ### FeatureCollection API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/class-use/Feature.html Methods and constructors for interacting with GeoJSON FeatureCollections. ```APIDOC ## GET org.wololo.geojson.FeatureCollection ### Description Retrieves the list of features contained within a FeatureCollection. ### Method GET ### Response - **features** (Feature[]) - An array of Feature objects contained in the collection. ## POST org.wololo.geojson.FeatureCollection ### Description Constructs a new FeatureCollection instance. ### Method POST ### Parameters #### Request Body - **features** (Feature[]) - Required - An array of Feature objects to initialize the collection. ``` -------------------------------- ### getFeatures Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/FeatureCollection.html Retrieves the array of Features contained within this FeatureCollection. ```APIDOC ## getFeatures Method ### Description Retrieves the array of Features contained within this FeatureCollection. ### Method `public Feature[] getFeatures()` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **features** (Feature[]) - An array of Feature objects. #### Response Example None ``` -------------------------------- ### GeoJSON Class Methods Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Methods available for the GeoJSON abstract class to manage type information and string representation. ```APIDOC ## Class: org.wololo.geojson.GeoJSON ### Description Abstract base class for GeoJSON objects including Feature, FeatureCollection, and Geometry. ### Methods - **getType()** (String) - Returns the type of the GeoJSON object. - **setType(String type)** (void) - Sets the type of the GeoJSON object. - **toString()** (String) - Returns a string representation of the object. ``` -------------------------------- ### GeoJSONFactory.create Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/index-all.html Creates a GeoJSON object from a JSON string. ```APIDOC ## STATIC create(String) ### Description Creates a GeoJSON object from a provided JSON string. ### Method Static Method ### Parameters #### Path Parameters - **json** (String) - Required - The JSON string representation of the GeoJSON object. ``` -------------------------------- ### getCoordinates Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html Retrieves the coordinates of the MultiPolygon. ```APIDOC ## getCoordinates Method ### Description Returns the coordinates of this MultiPolygon. ### Method `getCoordinates()` ### Returns * **double[][][][]** - The coordinates of the MultiPolygon. ``` -------------------------------- ### Create GeoJSON from JSON String Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSONFactory.html Creates a GeoJSON object from a given JSON string. Ensure the input string is valid GeoJSON format. ```java public static GeoJSON create (String json) ``` -------------------------------- ### Geometry Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Geometry.html The abstract base class for all GeoJSON geometry types. ```java public abstract class Geometry extends GeoJSON ``` -------------------------------- ### Point Class Declaration Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Point.html Declares the Point class, which extends the Geometry class. ```java public class Point extends Geometry ``` -------------------------------- ### GeoJSONReader.read Methods Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Methods for reading and parsing GeoJSON data into JTS Geometry objects. ```APIDOC ## Method read(String json) ### Description Parses a GeoJSON string into a JTS Geometry object. ### Parameters #### Request Body - **json** (String) - Required - The GeoJSON string to parse. ### Response - **Returns** (org.locationtech.jts.geom.Geometry) - The resulting JTS Geometry object. --- ## Method read(String json, GeometryFactory geomFactory) ### Description Parses a GeoJSON string into a JTS Geometry object using a specific GeometryFactory. ### Parameters #### Request Body - **json** (String) - Required - The GeoJSON string to parse. - **geomFactory** (org.locationtech.jts.geom.GeometryFactory) - Required - The factory to use for geometry creation. ### Response - **Returns** (org.locationtech.jts.geom.Geometry) - The resulting JTS Geometry object. --- ## Method read(GeoJSON geoJSON) ### Description Parses a GeoJSON object into a JTS Geometry object. ### Parameters #### Request Body - **geoJSON** (GeoJSON) - Required - The GeoJSON object to parse. ### Response - **Returns** (org.locationtech.jts.geom.Geometry) - The resulting JTS Geometry object. --- ## Method read(GeoJSON geoJSON, GeometryFactory geomFactory) ### Description Parses a GeoJSON object into a JTS Geometry object using a specific GeometryFactory. ### Parameters #### Request Body - **geoJSON** (GeoJSON) - Required - The GeoJSON object to parse. - **geomFactory** (org.locationtech.jts.geom.GeometryFactory) - Required - The factory to use for geometry creation. ### Response - **Returns** (org.locationtech.jts.geom.Geometry) - The resulting JTS Geometry object. ``` -------------------------------- ### GeoJSONWriter Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONWriter.html The base class definition for GeoJSONWriter. ```java public class GeoJSONWriter extends Object ``` -------------------------------- ### GeoJSON Class Declaration Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Abstract class declaration for GeoJSON. It extends the Object class. ```java public abstract class GeoJSON extends Object ``` -------------------------------- ### GeoJSONWriter.write Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/index-all.html Writes JTS geometries or Feature lists into GeoJSON format. ```APIDOC ## write(Geometry) / write(List) ### Description Converts JTS geometries or a list of Features into their corresponding GeoJSON representation. ### Parameters #### Parameters - **geometry** (Geometry) - Required - The JTS geometry to convert. - **features** (List) - Required - The list of features to convert. ``` -------------------------------- ### GeoJSONFactory Class Declaration Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSONFactory.html Declares the GeoJSONFactory class, which extends java.lang.Object. ```java public class GeoJSONFactory extends Object ``` -------------------------------- ### GeoJSON toString Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Overrides the toString method from the Object class. Provides a string representation of the GeoJSON object. ```java public String toString() ``` -------------------------------- ### Define Polygon Class Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/Polygon.html Class declaration for the Polygon geometry type. ```java public class Polygon extends Geometry ``` -------------------------------- ### Define MultiLineString Class Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiLineString.html Class declaration for MultiLineString extending Geometry. ```java public class MultiLineString extends Geometry ``` -------------------------------- ### MultiPoint Class Declaration Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPoint.html Declaration of the MultiPoint class, which extends the GeoJSON Geometry class. ```java public class MultiPoint extends Geometry ``` -------------------------------- ### getGeometries Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeometryCollection.html Retrieves the array of geometries contained within the collection. ```java public Geometry[] getGeometries() ``` -------------------------------- ### GeoJSONReader.read Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/index-all.html Reads GeoJSON data and converts it into JTS geometries. ```APIDOC ## read(String) / read(GeoJSON) ### Description Reads GeoJSON input and converts it into JTS geometry objects. Overloaded methods allow for optional GeometryFactory specification. ### Parameters #### Parameters - **input** (String or GeoJSON) - Required - The input data to be read. - **geometryFactory** (GeometryFactory) - Optional - The factory used to create JTS geometries. ``` -------------------------------- ### GeoJSONWriter API Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/class-use/Feature.html Utility for writing GeoJSON features. ```APIDOC ## POST org.wololo.jts2geojson.GeoJSONWriter.write ### Description Writes a list of features into a FeatureCollection format. ### Method POST ### Parameters #### Request Body - **features** (List) - Required - A list of Feature objects to be written. ### Response #### Success Response (200) - **FeatureCollection** (Object) - The resulting FeatureCollection object. ``` -------------------------------- ### Write Geometry Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONWriter.html Converts a JTS geometry object into a GeoJSON geometry. ```java public Geometry write​(org.locationtech.jts.geom.Geometry geometry) ``` -------------------------------- ### GeoJSONWriter Class Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONWriter.html Provides methods to convert JTS Geometry and Feature collections into GeoJSON format. ```APIDOC ## GeoJSONWriter ### Description Represents a writer that converts JTS (Java Topology Suite) geometries and feature collections into GeoJSON format. ### Constructor Summary - `GeoJSONWriter()`: Initializes a new instance of the `GeoJSONWriter` class. ### Method Summary - `write(List features)`: Converts a list of JTS Features into a GeoJSON FeatureCollection. - `write(org.locationtech.jts.geom.Geometry geometry)`: Converts a single JTS Geometry object into its corresponding GeoJSON representation. ### Constructor Detail #### GeoJSONWriter ```java public GeoJSONWriter() ``` ### Method Detail #### write ```java public Geometry write(org.locationtech.jts.geom.Geometry geometry) ``` #### write ```java public FeatureCollection write(List features) ``` ``` -------------------------------- ### getGeometries Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeometryCollection.html Retrieves the array of geometries contained within this GeometryCollection. ```APIDOC ## getGeometries Method ### Description Returns the array of geometries that make up this collection. ### Method `getGeometries()` ### Return Value - **Geometry[]** - An array of Geometry objects. ``` -------------------------------- ### GeometryCollection Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeometryCollection.html The class definition for GeometryCollection, which inherits from the Geometry class. ```java public class GeometryCollection extends Geometry ``` -------------------------------- ### Retrieve MultiLineString Coordinates Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiLineString.html Method to access the coordinates of the MultiLineString. ```java public double[][][] getCoordinates() ``` -------------------------------- ### Retrieve LineString Coordinates Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/LineString.html Method to access the coordinate array of the LineString. ```java public double[][] getCoordinates() ``` -------------------------------- ### FeatureCollection Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/FeatureCollection.html The class definition for FeatureCollection, which inherits from GeoJSON. ```java public class FeatureCollection extends GeoJSON ``` -------------------------------- ### GeoJSONWriter.write Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/class-use/Geometry.html Converts a JTS Geometry object into a GeoJSON Geometry object. ```APIDOC ## POST /org.wololo.jts2geojson/GeoJSONWriter/write ### Description Converts an org.locationtech.jts.geom.Geometry object into a GeoJSON Geometry representation. ### Method POST ### Parameters #### Request Body - **geometry** (org.locationtech.jts.geom.Geometry) - Required - The JTS geometry object to be converted. ### Response #### Success Response (200) - **Geometry** (org.wololo.geojson.Geometry) - The resulting GeoJSON geometry object. ``` -------------------------------- ### GeoJSON setType Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Sets the type of the GeoJSON object. ```java public void setType​(String type) ``` -------------------------------- ### MultiPolygon Class Definition Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/MultiPolygon.html The class definition for MultiPolygon, which extends the Geometry class. ```java public class MultiPolygon extends Geometry ``` -------------------------------- ### GeoJSON getType Method Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/geojson/GeoJSON.html Retrieves the type of the GeoJSON object. ```java public String getType() ``` -------------------------------- ### Read GeoJSON from String with GeometryFactory Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Reads GeoJSON data from a String into a JTS Geometry object, allowing a specific GeometryFactory to be provided. This is useful for custom geometry creation. ```java public org.locationtech.jts.geom.Geometry read​(String json, org.locationtech.jts.geom.GeometryFactory geomFactory) ``` -------------------------------- ### Read GeoJSON Object with GeometryFactory Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Reads GeoJSON data from a GeoJSON object into a JTS Geometry object, allowing a specific GeometryFactory to be provided. This is useful for custom geometry creation. ```java public org.locationtech.jts.geom.Geometry read​(GeoJSON geoJSON, org.locationtech.jts.geom.GeometryFactory geomFactory) ``` -------------------------------- ### Read GeoJSON from String Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Reads GeoJSON data from a String into a JTS Geometry object. This method uses the default GeometryFactory. ```java public org.locationtech.jts.geom.Geometry read​(String json) ``` -------------------------------- ### Read GeoJSON Object Source: https://javadoc.io/doc/org.wololo/jts2geojson/0.18.1/org/wololo/jts2geojson/GeoJSONReader.html Reads GeoJSON data from a GeoJSON object into a JTS Geometry object. This method uses the default GeometryFactory. ```java public org.locationtech.jts.geom.Geometry read​(GeoJSON geoJSON) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.