public class JCRSChooser extends Object
Example of use:
CoordinateReferenceSystem crs = JCRSChooser.showDialog();
if (crs != null) {
// use the CRS...
}
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AUTHORITY
Default authority name (EPSG).
|
static String |
DEFAULT_TITLE
Default dialog title
|
Modifier and Type | Method and Description |
---|---|
static CoordinateReferenceSystem |
showDialog()
Displays a dialog with a list of coordinate reference systems in the EPSG database.
|
static CoordinateReferenceSystem |
showDialog(String title)
Displays a dialog with a list of coordinate reference systems in the EPSG database.
|
static CoordinateReferenceSystem |
showDialog(String title,
String initialCode)
Displays a dialog with a list of coordinate reference systems in the EPSG database and with
the specified initial code highlighted.
|
static CoordinateReferenceSystem |
showDialog(String title,
String initialCode,
String authority)
Displays a dialog with a list of coordinate reference systems provided by the given authority
(e.g.
|
public static final String DEFAULT_AUTHORITY
public static final String DEFAULT_TITLE
public static CoordinateReferenceSystem showDialog()
This method can be called safely from any thread.
CoordinateReferenceSystem
object or null
if the user cancelled the
dialogpublic static CoordinateReferenceSystem showDialog(String title)
This method can be called safely from any thread.
title
- optional non-default titleCoordinateReferenceSystem
object or null
if the user cancelled the
dialogpublic static CoordinateReferenceSystem showDialog(String title, String initialCode)
This method can be called safely from any thread.
title
- optional non-default titleinitialCode
- optional initial EPSG codeCoordinateReferenceSystem
object or null
if the user cancelled the
dialogpublic static CoordinateReferenceSystem showDialog(String title, String initialCode, String authority)
This method can be called safely from any thread.
title
- optional non-default titleinitialCode
- an optional initial code in appropriate form for the authorityauthority
- optional non-default authority (defaults to "EPSG")CoordinateReferenceSystem
object or null
if the user cancelled the
dialogCopyright © 1996–2019 Geotools. All rights reserved.