Source Code Cross Referenced for FilteredSubsample.java in  » GIS » GeoTools-2.4.1 » org » geotools » coverage » processing » operation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.coverage.processing.operation 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *    GeoTools - OpenSource mapping toolkit
003:         *    http://geotools.org
004:         *    (C) 2006, Geotools Project Managment Committee (PMC)
005:         *
006:         *    This library is free software; you can redistribute it and/or
007:         *    modify it under the terms of the GNU Lesser General Public
008:         *    License as published by the Free Software Foundation; either
009:         *    version 2.1 of the License, or (at your option) any later version.
010:         *
011:         *    This library is distributed in the hope that it will be useful,
012:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:         *    Lesser General Public License for more details.
015:         */
016:        package org.geotools.coverage.processing.operation;
017:
018:        import javax.media.jai.BorderExtender;
019:        import javax.media.jai.BorderExtenderCopy;
020:        import javax.media.jai.Interpolation;
021:        import javax.media.jai.InterpolationNearest;
022:
023:        import org.geotools.coverage.processing.Operation2D;
024:        import org.geotools.factory.Hints;
025:        import org.geotools.metadata.iso.citation.Citations;
026:        import org.geotools.parameter.DefaultParameterDescriptor;
027:        import org.geotools.parameter.DefaultParameterDescriptorGroup;
028:        import org.opengis.coverage.Coverage;
029:        import org.opengis.parameter.ParameterDescriptor;
030:        import org.opengis.parameter.ParameterValueGroup;
031:
032:        /**
033:         * TODO: Need documentation
034:         *
035:         * @todo Consider refactoring as a {@code OperationJAI} subclass. We could get ride of the
036:         *       {@code FilteredSubsampledGridCoverage2D} class. The main feature to add is the
037:         *       copy of interpolation and border extender parameters to the hints.
038:         *
039:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/processing/operation/FilteredSubsample.java $
040:         * @version $Id: FilteredSubsample.java 23211 2006-12-05 00:38:41Z desruisseaux $
041:         * @author Simone Giannecchini
042:         * @since 2.3
043:         *
044:         * @see javax.media.jai.operator.FilteredSubsampleDescriptor
045:         */
046:        public class FilteredSubsample extends Operation2D {
047:            /**
048:             * Serial number for cross-version compatibility.
049:             */
050:            private static final long serialVersionUID = 652535074064952517L;
051:
052:            /**
053:             * 
054:             */
055:            public static final ParameterDescriptor scaleX = new DefaultParameterDescriptor(
056:                    Citations.GEOTOOLS, "scaleX", Integer.class, // Value class
057:                    // (mandatory)
058:                    null, // Array of valid values
059:                    new Integer(2), // Default value
060:                    null, // Minimal value
061:                    null, // Maximal value
062:                    null, // Unit of measure
063:                    true); // Parameter is optional
064:
065:            /**
066:             * 
067:             */
068:            public static final ParameterDescriptor scaleY = new DefaultParameterDescriptor(
069:                    Citations.GEOTOOLS, "scaleY", Integer.class, // Value class
070:                    // (mandatory)
071:                    null, // Array of valid values
072:                    new Integer(2), // Default value
073:                    null, // Minimal value
074:                    null, // Maximal value
075:                    null, // Unit of measure
076:                    true); // Parameter is optional
077:
078:            /**
079:             * 
080:             */
081:            public static final ParameterDescriptor qsFilter = new DefaultParameterDescriptor(
082:                    Citations.GEOTOOLS, "qsFilterArray", float[].class, // Value class
083:                    // (mandatory)
084:                    null, // Array of valid values
085:                    new float[] { 1 }, // Default value
086:                    null, // Minimal value
087:                    null, // Maximal value
088:                    null, // Unit of measure
089:                    true); // Parameter is optional
090:
091:            /**
092:             * 
093:             */
094:            public static final ParameterDescriptor Interpolation = new DefaultParameterDescriptor(
095:                    Citations.GEOTOOLS, "Interpolation", Interpolation.class, // Value class (mandatory)
096:                    null, // Array of valid values
097:                    new InterpolationNearest(), // Default value
098:                    null, // Minimal value
099:                    null, // Maximal value
100:                    null, // Unit of measure
101:                    true); // Parameter is optional
102:
103:            /**
104:             * 
105:             */
106:            public static final ParameterDescriptor BorderExtender = new DefaultParameterDescriptor(
107:                    Citations.GEOTOOLS, "BorderExtender", BorderExtender.class, // Value class (mandatory)
108:                    null, // Array of valid values
109:                    BorderExtenderCopy
110:                            .createInstance(BorderExtenderCopy.BORDER_COPY), // Default value
111:                    null, // Minimal value
112:                    null, // Maximal value
113:                    null, // Unit of measure
114:                    true); // Parameter is optional
115:
116:            /**
117:             * 
118:             */
119:            public FilteredSubsample() {
120:                super (new DefaultParameterDescriptorGroup(Citations.GEOTOOLS,
121:                        "FilteredSubsample", new ParameterDescriptor[] {
122:                                SOURCE_0, scaleX, scaleY, qsFilter,
123:                                Interpolation, BorderExtender }));
124:            }
125:
126:            /* (non-Javadoc)
127:             * @see org.geotools.coverage.processing.AbstractOperation#doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.factory.Hints)
128:             */
129:            public Coverage doOperation(ParameterValueGroup parameters,
130:                    Hints hints) {
131:                return FilteredSubsampledGridCoverage2D.create(parameters,
132:                        (hints instanceof  Hints) ? (Hints) hints : new Hints(
133:                                hints));
134:            }
135:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.