Statistics
| Revision:

root / org.gvsig.jcrs / libJCRS / src / org / geotools / referencing / operation / projection / IdrVanDerGrinten.java @ 38

History | View | Annotate | Download (3.68 KB)

1
package org.geotools.referencing.operation.projection;
2

    
3
import java.awt.geom.Point2D;
4
import java.util.Collection;
5

    
6
import javax.units.NonSI;
7

    
8
import org.opengis.parameter.ParameterDescriptorGroup;
9
import org.opengis.parameter.ParameterNotFoundException;
10
import org.opengis.parameter.ParameterValueGroup;
11

    
12
import org.geotools.metadata.iso.citation.CitationImpl;
13
import org.geotools.referencing.NamedIdentifier;
14
import org.geotools.resources.XMath;
15
import org.geotools.resources.cts.ResourceKeys;
16
import org.geotools.resources.cts.Resources;
17
import org.opengis.parameter.ParameterDescriptor;
18
import org.opengis.referencing.operation.Projection;
19
import org.opengis.referencing.operation.MathTransform;
20

    
21

    
22

    
23
public class IdrVanDerGrinten extends MapProjection {
24

    
25

    
26
    protected IdrVanDerGrinten(ParameterValueGroup parameters) throws ParameterNotFoundException {
27
                super(parameters);
28
        final Collection expected = getParameterDescriptors().descriptors();
29
        }
30

    
31
        
32
        public ParameterDescriptorGroup getParameterDescriptors() {
33
        return Provider.PARAMETERS;
34
        }
35

    
36
    public ParameterValueGroup getParameterValues() {
37
        final ParameterValueGroup values = super.getParameterValues();
38
        return values;
39
    }
40

    
41

    
42
        protected Point2D inverseTransformNormalized(double x, double y,
43
                        Point2D ptDst) throws ProjectionException {
44
                // TODO Auto-generated method stub
45
                return null;
46
        }
47

    
48
        protected Point2D transformNormalized(double x, double y, Point2D ptDst)
49
                        throws ProjectionException {
50
                // TODO Auto-generated method stub
51
                return null;
52
        }
53
           
54
        public static class Provider extends AbstractProvider {
55

    
56
                static final ParameterDescriptorGroup PARAMETERS = createDescriptorGroup(new NamedIdentifier[] {
57
                        new NamedIdentifier(CitationImpl.OGC,      "VanDerGrinten"),
58
                                new NamedIdentifier(CitationImpl.EPSG,     "VanDerGrinten I"),
59
                                new NamedIdentifier(CitationImpl.EPSG,     "VanDerGrinten"),
60
                                new NamedIdentifier(CitationImpl.EPSG,     "Van_der_Grinten_I"),
61
                    new NamedIdentifier(new CitationImpl("IDR"), "IDR")//,
62
                        //new NamedIdentifier(CitationImpl.EPSG,     "9823")//,
63
//                        new NamedIdentifier(CitationImpl.GEOTOOLS, Vocabulary.formatInternational(
64
//                                            VocabularyKeys.EQUIDISTANT_CYLINDRICAL_PROJECTION))
65
                    }, new ParameterDescriptor[] {
66
                        SEMI_MAJOR,       SEMI_MINOR,
67
                        CENTRAL_MERIDIAN,
68
                        FALSE_EASTING,    FALSE_NORTHING
69
                    });
70

    
71
                        /*String[] parameterName={"central_meridian"};
72
                        projectionParameterList.add(count,parameterName);
73
                        addProjectionParameter(count,"standard_parallel_1");
74
                        addProjectionParameter(count,"false_easting");
75
                        addProjectionParameter(count,"false_northing");*/
76

    
77
                /**
78
                 * Constructs a new provider.
79
                 */
80
                public Provider() {
81
                    super(PARAMETERS);
82
                }
83

    
84
                /**
85
                 * Returns the operation type for this map projection.
86
                 */
87
                protected Class getOperationType() {
88
                        return Projection.class;
89
                }
90

    
91
                /**
92
                 * Creates a transform from the specified group of parameter values.
93
                 *
94
                 * @param  parameters The group of parameter values.
95
                 * @return The created math transform.
96
                 * @throws ParameterNotFoundException if a required parameter was not found.
97
                 */
98
                public MathTransform createMathTransform(final ParameterValueGroup parameters)
99
                        throws ParameterNotFoundException
100
                {
101
                        return new IdrVanDerGrinten(parameters);
102
                }
103
            }
104

    
105
}