Java Doc for CRSUtilities.java in  » GIS » GeoTools-2.4.1 » org » geotools » resources » 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.resources 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.resources.CRSUtilities

CRSUtilities
final public class CRSUtilities (Code)
A set of static methods working on OpenGIS® objects. Some of those methods are useful, but not really rigorous. This is why they do not appear in the "official" package, but instead in this private one. Do not rely on this API! It may change in incompatible way in any future release.
since:
   2.0
version:
   $Id: CRSUtilities.java 25787 2007-06-10 16:04:55Z desruisseaux $
author:
   Martin Desruisseaux




Method Summary
public static  DirectPositiondeltaTransform(MathTransform transform, DirectPosition origin, DirectPosition source)
     Transforms the relative distance vector specified by source and stores the result in dest .
public static  Point2DdeltaTransform(MathTransform2D transform, Point2D origin, Point2D source, Point2D dest)
     Transforms the relative distance vector specified by source and stores the result in dest .
public static  intdimensionColinearWith(CoordinateSystem cs, CoordinateSystemAxis axis)
     Returns the dimension within the coordinate system of the first occurrence of an axis colinear with the specified axis.
public static  booleanequalsIgnoreMetadata(Object object1, Object object2)
    
public static  CoordinateReferenceSystemgetCRS2D(CoordinateReferenceSystem crs)
     Returns a two-dimensional coordinate reference system representing the two first dimensions of the specified coordinate reference system.
public static  DatumgetDatum(CoordinateReferenceSystem crs)
     Returns the datum of the specified CRS, or null if none.
public static  intgetDimensionOf(CoordinateReferenceSystem crs, Class type)
     Returns the dimension of the first coordinate reference system of the given type.
public static  EllipsoidgetEllipsoid(CoordinateReferenceSystem crs)
    
public static  EllipsoidgetHeadGeoEllipsoid(CoordinateReferenceSystem crs)
     Returns the ellipsoid used by the specified coordinate reference system, providing that the two first dimensions use an instance of GeographicCRS .
public static  SingleCRSgetHorizontalCRS(CoordinateReferenceSystem crs)
    
public static  ProjectedCRSgetProjectedCRS(CoordinateReferenceSystem crs)
    
public static  CoordinateReferenceSystemgetSubCRS(CoordinateReferenceSystem crs, int lower, int upper)
     Returns a sub-coordinate reference system for the specified dimension range.
Parameters:
  crs - The coordinate reference system to decompose.
Parameters:
  lower - The first dimension to keep, inclusive.
Parameters:
  upper - The last dimension to keep, exclusive.
public static  TemporalCRSgetTemporalCRS(CoordinateReferenceSystem crs)
    
public static  UnitgetUnit(CoordinateSystem cs)
     Returns the unit used for all axis in the specified coordinate system.
public static  VerticalCRSgetVerticalCRS(CoordinateReferenceSystem crs)
    
public static  StringtoWGS84String(CoordinateReferenceSystem crs, Rectangle2D bounds)
     Returns a character string for the specified geographic area.
public static  GeneralEnvelopetransform(MathTransform transform, Envelope envelope)
    
public static  Rectangle2Dtransform(MathTransform2D transform, Rectangle2D source, Rectangle2D dest)
    



Method Detail
deltaTransform
public static DirectPosition deltaTransform(MathTransform transform, DirectPosition origin, DirectPosition source) throws TransformException(Code)
Transforms the relative distance vector specified by source and stores the result in dest . A relative distance vector is transformed without applying the translation components.
Parameters:
  transform - The transform to apply.
Parameters:
  origin - The position where to compute the delta transform in the source CS.
Parameters:
  source - The distance vector to be delta transformed The result of the transformation.
throws:
  TransformException - if the transformation failed.
since:
   2.3



deltaTransform
public static Point2D deltaTransform(MathTransform2D transform, Point2D origin, Point2D source, Point2D dest) throws TransformException(Code)
Transforms the relative distance vector specified by source and stores the result in dest . A relative distance vector is transformed without applying the translation components.
Parameters:
  transform - The transform to apply.
Parameters:
  origin - The position where to compute the delta transform in the source CS.
Parameters:
  source - The distance vector to be delta transformed
Parameters:
  dest - The resulting transformed distance vector, or null The result of the transformation.
throws:
  TransformException - if the transformation failed.
See Also:   AffineTransform.deltaTransform(Point2DPoint2D)



dimensionColinearWith
public static int dimensionColinearWith(CoordinateSystem cs, CoordinateSystemAxis axis)(Code)
Returns the dimension within the coordinate system of the first occurrence of an axis colinear with the specified axis. If an axis with the same or an direction than axis ocurs in the coordinate system, then the dimension of the first such occurrence is returned. That is, the a value k such that:
 cs.getAxis(k).getDirection().absolute() == axis.getDirection().absolute()
 
is true . If no such axis occurs in this coordinate system, then -1 is returned.

For example, dimensionColinearWith(CoordinateSystemAxis.TIME) returns the dimension number of time axis.
Parameters:
  cs - The coordinate system to examine.
Parameters:
  axis - The axis to look for. The dimension number of the specified axis, or -1 if none.




equalsIgnoreMetadata
public static boolean equalsIgnoreMetadata(Object object1, Object object2)(Code)
CRS



getCRS2D
public static CoordinateReferenceSystem getCRS2D(CoordinateReferenceSystem crs) throws TransformException(Code)
Returns a two-dimensional coordinate reference system representing the two first dimensions of the specified coordinate reference system. If crs is already a two-dimensional CRS, then it is returned unchanged. Otherwise, if it is a CompoundCRS , then the head coordinate reference system is examined.
Parameters:
  crs - The coordinate system, or null . A two-dimensional coordinate reference system that represents the two firstdimensions of crs , or null if crs was null .
throws:
  TransformException - if crs can't be reduced to a two-coordinate system.We use this exception class since this method is usually invoked in the contextof a transformation process.



getDatum
public static Datum getDatum(CoordinateReferenceSystem crs)(Code)
Returns the datum of the specified CRS, or null if none.



getDimensionOf
public static int getDimensionOf(CoordinateReferenceSystem crs, Class type) throws IllegalArgumentException(Code)
Returns the dimension of the first coordinate reference system of the given type. The type argument must be a subinterface of CoordinateReferenceSystem . If no such dimension is found, then this method returns -1 .
Parameters:
  crs - The coordinate reference system (CRS) to examine.
Parameters:
  type - The CRS type to look for.Must be a subclass of CoordinateReferenceSystem. The dimension range of the specified CRS type, or -1 if none.
throws:
  IllegalArgumentException - if the type is not legal.



getEllipsoid
public static Ellipsoid getEllipsoid(CoordinateReferenceSystem crs)(Code)
CRS



getHeadGeoEllipsoid
public static Ellipsoid getHeadGeoEllipsoid(CoordinateReferenceSystem crs)(Code)
Returns the ellipsoid used by the specified coordinate reference system, providing that the two first dimensions use an instance of GeographicCRS . Otherwise (i.e. if the two first dimensions are not geographic), returns null .



getHorizontalCRS
public static SingleCRS getHorizontalCRS(CoordinateReferenceSystem crs)(Code)
CRS



getProjectedCRS
public static ProjectedCRS getProjectedCRS(CoordinateReferenceSystem crs)(Code)
CRS



getSubCRS
public static CoordinateReferenceSystem getSubCRS(CoordinateReferenceSystem crs, int lower, int upper)(Code)
Returns a sub-coordinate reference system for the specified dimension range.
Parameters:
  crs - The coordinate reference system to decompose.
Parameters:
  lower - The first dimension to keep, inclusive.
Parameters:
  upper - The last dimension to keep, exclusive. The sub-coordinate system, or null if crs can'tbe decomposed for dimensions in the range [lower..upper] .



getTemporalCRS
public static TemporalCRS getTemporalCRS(CoordinateReferenceSystem crs)(Code)
CRS



getUnit
public static Unit getUnit(CoordinateSystem cs)(Code)
Returns the unit used for all axis in the specified coordinate system. If not all axis uses the same unit, then this method returns null . This convenience method is often used for Well Know Text (WKT) formatting.
since:
   2.2



getVerticalCRS
public static VerticalCRS getVerticalCRS(CoordinateReferenceSystem crs)(Code)
CRS



toWGS84String
public static String toWGS84String(CoordinateReferenceSystem crs, Rectangle2D bounds)(Code)
Returns a character string for the specified geographic area. The string will have the form "45°00.00'N-50°00.00'N 30°00.00'E-40°00.00'E". If a map projection is required in order to obtain this representation, it will be automatically applied. This string is mostly used for debugging purpose. org.geotools.referencing.CRS GeographicBoundingBox.toString() GeographicBoundingBox



transform
public static GeneralEnvelope transform(MathTransform transform, Envelope envelope) throws TransformException(Code)
CRS



transform
public static Rectangle2D transform(MathTransform2D transform, Rectangle2D source, Rectangle2D dest) throws TransformException(Code)
CRS



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.