Constructor and Description |
---|
Builder(java.lang.Double coordA,
java.lang.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(java.lang.Double coordA)
Sets the first coordinate (latitude).
|
GeoUri.Builder |
coordB(java.lang.Double coordB)
Sets the second coordinate (longitude).
|
GeoUri.Builder |
coordC(java.lang.Double coordC)
Sets the third coordinate (altitude).
|
GeoUri.Builder |
crs(java.lang.String crs)
Sets the coordinate reference system.
|
GeoUri.Builder |
parameter(java.lang.String name,
java.lang.String value)
Adds a parameter.
|
GeoUri.Builder |
uncertainty(java.lang.Double uncertainty)
Sets the uncertainty (how accurate the coordinates are).
|
public Builder(java.lang.Double coordA, java.lang.Double coordB)
GeoUri
builder.coordA
- the first coordinate (i.e. latitude)coordB
- the second coordinate (i.e. longitude)public GeoUri.Builder coordA(java.lang.Double coordA)
coordA
- the first coordinatepublic GeoUri.Builder coordB(java.lang.Double coordB)
coordB
- the second coordinatepublic GeoUri.Builder coordC(java.lang.Double coordC)
coordC
- the third coordinate or null to removepublic GeoUri.Builder crs(java.lang.String crs)
crs
- the coordinate reference system (can only contain letters,
numbers, and hyphens) or null to use the default (WGS-84)java.lang.IllegalArgumentException
- if the CRS name contains invalid
characterspublic GeoUri.Builder uncertainty(java.lang.Double uncertainty)
uncertainty
- the uncertainty (in meters) or null to removepublic GeoUri.Builder parameter(java.lang.String name, java.lang.String value)
name
- the parameter name (can only contain letters, numbers,
and hyphens)value
- the parameter value or null to remove the parameterjava.lang.IllegalArgumentException
- 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.