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


javax.imageio.ImageReadParam
   org.geotools.arcsde.gce.imageio.ArcSDERasterImageReadParam

ArcSDERasterImageReadParam
public class ArcSDERasterImageReadParam extends ImageReadParam (Code)
This class represents the parameters passed to an ArcSDERasterReader each time an image is read. Some parameters from the parent class are interpreted strictly in this class. Required parameters during a read:
  • An open and connected SeConnection used to suck out data from ArcSDE for this image read operation.(setConnection())
  • A HashMap with Integer keys equal to the SeObjectId.longValue() of each SeRasterBand which is to be read. Values for each key should be the integer value of the band in the output image to which the given SeRasterBand should be copied.

    For example, if your ArcSDE Raster contains four bands with SeRasterBand.getId().longValue()s of 234,235,236 and 237, and you wish to map those bands to the R,G,B and A bands in your ARGB image, you should create a map as follows:
    Map m = new HashMap();
    m.put(new Integer(234), new Integer(1));
    m.put(new Integer(234), new Integer(2));
    m.put(new Integer(234), new Integer(3));
    m.put(new Integer(234), new Integer(0));

    Note that the band indexes you choose will depend on the type of BufferedImage you're writing to. A BufferedImage of type BufferedImage.TYPE_INT_ARGB has its bands in the order "Alpha (0), Red (1), Green (2), Blue (3)". A BufferedImage of type BufferedImage.TYPE_3BYTE_BGR has its bands in the order "Blue (0), Green (1), Red (2)".
  • A (possibly null) BufferedImage , passed in via the 'setDestination()' method. Make sure your bandmapper and this image contain the same number of bands, and that you've mapped your output appropriately.
    If you leave this parameter null, a BufferedImage.TYPE_INT_ARGB will be created, of exactly the size to cover your requested source region
  • An int[] of requested source bands from ArcSDE, set via setSourceBands(). ArcSDE expects the int[] to have the same size as the number of bands you're requesting. The first band should be numbered '1', the second '2', etc. So, to request the second, third and fourth bands in a raster, use a setSourceBands() call like the following:
    param.setSourceBands(new int[] { 2, 3, 4 });
    A source band with the value of zero won't work! start with 1!
  • A Rectangle defining the source area of the raster level you wish to render. This is expressed as though the entire raster level was one big seamless image of size wxh, with the origin in the upper left corner. So, to request a tiny bit of the raster level, simply set your sourceRegion accordingly and only the proper bit of the raster will be loaded.

author:
   sfarber


Field Summary
protected  HashMapbandMapper
    
protected  ArcSDEPooledConnectionconnection
    


Method Summary
public  HashMapgetBandMapper()
    
public  ArcSDEPooledConnectiongetConnection()
    
public  voidsetBandMapper(HashMap bandMapper)
    
public  voidsetConnection(ArcSDEPooledConnection connection)
    

Field Detail
bandMapper
protected HashMap bandMapper(Code)



connection
protected ArcSDEPooledConnection connection(Code)





Method Detail
getBandMapper
public HashMap getBandMapper()(Code)



getConnection
public ArcSDEPooledConnection getConnection()(Code)



setBandMapper
public void setBandMapper(HashMap bandMapper)(Code)



setConnection
public void setConnection(ArcSDEPooledConnection connection)(Code)



Fields inherited from javax.imageio.ImageReadParam
protected boolean canSetSourceRenderSize(Code)(Java Doc)
protected BufferedImage destination(Code)(Java Doc)
protected int[] destinationBands(Code)(Java Doc)
protected int minProgressivePass(Code)(Java Doc)
protected int numProgressivePasses(Code)(Java Doc)
protected Dimension sourceRenderSize(Code)(Java Doc)

Methods inherited from javax.imageio.ImageReadParam
public boolean canSetSourceRenderSize()(Code)(Java Doc)
public BufferedImage getDestination()(Code)(Java Doc)
public int[] getDestinationBands()(Code)(Java Doc)
public int getSourceMaxProgressivePass()(Code)(Java Doc)
public int getSourceMinProgressivePass()(Code)(Java Doc)
public int getSourceNumProgressivePasses()(Code)(Java Doc)
public Dimension getSourceRenderSize()(Code)(Java Doc)
public void setDestination(BufferedImage destination)(Code)(Java Doc)
public void setDestinationBands(int[] destinationBands)(Code)(Java Doc)
public void setDestinationType(ImageTypeSpecifier destinationType)(Code)(Java Doc)
public void setSourceProgressivePasses(int minPass, int numPasses)(Code)(Java Doc)
public void setSourceRenderSize(Dimension size) throws UnsupportedOperationException(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.