|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gdal.osr.osr
public class osr
Class with static methods for utility functions.
Field Summary |
---|
Method Summary | |
---|---|
static void |
DontUseExceptions()
Use return code instead of exceptions. |
static String[] |
GetProjectionMethodParameterList(String method,
String[] username)
|
static void |
GetProjectionMethodParamInfo(String method,
String param,
String[] usrname,
String[] type,
double[] defaultval)
|
static Vector |
GetProjectionMethods()
|
static String |
GetUserInputAsWKT(String definition)
Utility function that returns the WKT definition of the SRS expressed as a user input. |
static int |
GetUserInputAsWKT(String name,
String[] argout)
|
static String |
GetWellKnownGeogCSAsWKT(String definition)
Utility function that returns the WKT definition of the SRS expressed as a well known Geog CS. |
static int |
GetWellKnownGeogCSAsWKT(String name,
String[] argout)
|
static void |
UseExceptions()
Use exceptions instead of error return codes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void UseExceptions()
This is the default behavious : methods that in C/C++ return an OGRErr return code would throw a RuntimeException() in case the code it is different from ogr.OGRERR_NONE. By calling this method, you can get back to that original state if DontUseExceptions() was called in-between. This will only apply to the org.gdal.osr.* package.
public static void DontUseExceptions()
By default, methods that in C/C++ return an OGRErr return code would throw a RuntimeException() in case the code is different from ogr.OGRERR_NONE. By calling this method, you can prevent the exception to be thrown and get the original error code (ogr.OGRERR_* codes) This will only apply to the org.gdal.osr.* package.
public static String GetWellKnownGeogCSAsWKT(String definition)
Such a user input is what can be passed in to SpatialReference.SetWellKnownGeogCS().
definition
- text definition to try to deduce SRS from.
public static String GetUserInputAsWKT(String definition)
Such a user input is what can be passed in to SpatialReference.SetFromUserInput().
definition
- text definition to try to deduce SRS from.
public static int GetWellKnownGeogCSAsWKT(String name, String[] argout)
public static int GetUserInputAsWKT(String name, String[] argout)
public static Vector GetProjectionMethods()
public static String[] GetProjectionMethodParameterList(String method, String[] username)
public static void GetProjectionMethodParamInfo(String method, String param, String[] usrname, String[] type, double[] defaultval)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |