Constructor and Description |
---|
Builder(Double coordA,
Double coordB)
Creates a new
GeoUri builder. |
Builder(GeoUri original)
Creates a new
GeoUri builder. |
Modifier and Type | Method and Description |
---|---|
GeoUri |
build()
Builds the final
GeoUri object. |
GeoUri.Builder |
coordA(Double coordA)
Sets the first coordinate (latitude).
|
GeoUri.Builder |
coordB(Double coordB)
Sets the second coordinate (longitude).
|
GeoUri.Builder |
coordC(Double coordC)
Sets the third coordinate (altitude).
|
GeoUri.Builder |
crs(String crs)
Sets the coordinate reference system.
|
GeoUri.Builder |
parameter(String name,
String value)
Adds a parameter.
|
GeoUri.Builder |
uncertainty(Double uncertainty)
Sets the uncertainty (how accurate the coordinates are).
|
public Builder(Double coordA, Double coordB)
GeoUri
builder.coordA
- the first coordinate (i.e. latitude)coordB
- the second coordinate (i.e. longitude)public GeoUri.Builder coordA(Double coordA)
coordA
- the first coordinatepublic GeoUri.Builder coordB(Double coordB)
coordB
- the second coordinatepublic GeoUri.Builder coordC(Double coordC)
coordC
- the third coordinate or null to removepublic GeoUri.Builder crs(String crs)
crs
- the coordinate reference system (can only contain letters,
numbers, and hyphens) or null to use the default (WGS-84)IllegalArgumentException
- if the CRS name contains invalid
characterspublic GeoUri.Builder uncertainty(Double uncertainty)
uncertainty
- the uncertainty (in meters) or null to removepublic GeoUri.Builder parameter(String name, String value)
name
- the parameter name (can only contain letters, numbers,
and hyphens)value
- the parameter value or null to remove the parameterIllegalArgumentException
- if the parameter name contains
invalid charactersThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.