root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.catalog / org.gvsig.proj.catalog.api / src / main / java / org / gvsig / proj / catalog / TextSerialization.java @ 852
History | View | Annotate | Download (1.53 KB)
1 |
package org.gvsig.proj.catalog; |
---|---|
2 |
|
3 |
/**
|
4 |
* Defines constants useful to specify the format and conventions used to (de-)serialize
|
5 |
* CRSs or transformations (from) to text:
|
6 |
* <ul>
|
7 |
* <li>Format: WKT, XML, etc
|
8 |
* <li>Conventions to be used for projection names, transformation methods, unit names,
|
9 |
* etc</li>
|
10 |
* </ul>
|
11 |
*
|
12 |
* @author Cesar Martinez Izquierdo
|
13 |
*
|
14 |
*/
|
15 |
public interface TextSerialization { |
16 |
/**
|
17 |
* Format to be used when formatting or parsing a definition of
|
18 |
* a CRS or transformation.
|
19 |
*/
|
20 |
public enum Format { |
21 |
/**
|
22 |
* WKT representation of CRSs and coordinate operations as defined by
|
23 |
* OGC 01-009 Implementation Specification. This is the WKT version used to
|
24 |
* encode .prj files in Shapefiles. This format MUST be supported by any
|
25 |
* implementation of this API.
|
26 |
*/
|
27 |
WKT1, |
28 |
/**
|
29 |
* WKT representation of CRSs and coordinate operations as defined by
|
30 |
* OGC 12-063r5 and ISO 19162:2015.
|
31 |
*/
|
32 |
WKT2, |
33 |
/**
|
34 |
* XML representation as defined by GML 3.2.1 (OGC 07-036 and ISO 19136:2007)
|
35 |
* based on ISO 19111 conceptual schema.
|
36 |
*/
|
37 |
GML3, |
38 |
// FIXME: do we need those?
|
39 |
GVSIG_2_3, |
40 |
// FIXME: do we need those?
|
41 |
GVSIG_2_5 |
42 |
} |
43 |
|
44 |
/**
|
45 |
* Conventions to be used for projection names, transformation methods, unit names, etc.
|
46 |
* They only apply to {@link Format#WKT1} format, since the rest of formats clearly define the names
|
47 |
* to use.
|
48 |
*/
|
49 |
public enum WKTConvention { |
50 |
/**
|
51 |
* Use the names and conventions defined by EPSG database.
|
52 |
*/
|
53 |
EPSG, |
54 |
/**
|
55 |
* Use the names and conventions defined by ESRI.
|
56 |
*/
|
57 |
ESRI |
58 |
} |
59 |
} |