Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Diego Fdez.
I've been reading the StreamingRenderer trying to understand how the layer's drawing process works. When the StreamingRenderer draws the layer[1] it uses the Graphics2D.drawImage method. Wouldn't be better to use the Graphics2D.drawRenderedImage to apply the transformation (and get better

Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Andrea Aime
Simone Giannecchini ha scritto: Ciao Diego (again :-) ), please, read below On Dec 12, 2007 1:05 PM, Diego Fdez. DurĂ¡n [EMAIL PROTECTED] wrote: I've been reading the StreamingRenderer trying to understand how the layer's drawing process works. When the StreamingRenderer draws the

Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Simone Giannecchini
Exaclty, that's the point. I think what diego needs is something different from what the StreamingRenderer is supposed to do. This is why I am asking details about what he needs to do. If he has some specific needs I can drop some ideas that would help him to get very high perfomances even with

Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Simone Giannecchini
Ciao Diego, yeah, it's me again :-). I am wondering about your goals Could you describe exaclty what you are trying to do in terms of sources of data and suported features? I could try and give some directions as well as sharing some code that I have that would be really handy for you. It

Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Diego Fdez.
Hi all: I'll try to describe my project: - I'm developing a Swing application that will show a really BIG map (150k x 100k px). - I need to navigate through the image and the navigation speed is critical. - Even though the user must be allowed to zoom in an out

[Geotools-gt2-users] min and max feature id from layer

2007-12-12 Thread Manfred PAUL
Hi, I am trying to figure out how to get the minimum and maximum feature id from a layer(feature collection/source) without loading all features? Is there any way to get this information? Regards Manfred

Re: [Geotools-gt2-users] min and max feature id from layer

2007-12-12 Thread Jody Garnett
Manfred PAUL wrote: Hi, I am trying to figure out how to get the minimum and maximum feature id from a layer(feature collection/source) without loading all features? Is there any way to get this information? Not that I can think of; the feature id concept is supposed to be a

[Geotools-gt2-users] geotiff writing

2007-12-12 Thread mzorova
I am trying to write geotiff with four corners and center known as well as the projection. I would also like to add GCPs for the five points known above. Is there ANY documentation on writing Geotiff? I am able to read geotiffs written by GDAL just fine, but cannot seem to find any documentation

[Geotools-gt2-users] Geomedia

2007-12-12 Thread Manfred PAUL
Hi, ones more me. I cant find some documentation for the geomedia datasource. Is there anything available? Regards Manfred - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best

Re: [Geotools-gt2-users] DisplayJAI vs Rendering to BufferedImage JPanel

2007-12-12 Thread Simone Giannecchini
Well, If I get things right, you have a raster background, which you want to visit at fixedresolutionlevels. You also want to overlay features on top of this. Well, I would suggest a simple thing. Use the streaming renderer to render the features and then overlay this on top of the background

Re: [Geotools-gt2-users] Geomedia

2007-12-12 Thread Andrea Aime
Manfred PAUL ha scritto: Hi, ones more me. I cant find some documentation for the geomedia datasource. Is there anything available? Not really. The module is abandoned, no one is taking care of it. On 2.3.x it may be still working, on 2.4.x and trunk it does not even compile and it's out of

[Geotools-gt2-users] WAIT_CURSOR when Rendering

2007-12-12 Thread Xavier DOLACINSKI
Hi group, Here is the code : while(not the end of the rendering) { Display.getMainFrame().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); } The rendering process is in a specif thread I think ... I don't find the way to get this information if

[Geotools-gt2-users] GeoTiff writing and docs

2007-12-12 Thread Jody Garnett
Read the test cases; they are like documentation but actually running code ;-) Seriously the user guide is a collection of working examples as they are placed onto this user-list; when well meaning individuals like yourself post example code after figuring it out. When I have to figure out the

[Geotools-gt2-users] geotiff metadata not consistent when read with GDAL vs Geotools

2007-12-12 Thread mzorova
I wrote the EXACT same boundary information via geotools geotiffwriter and via gdal_translate. Then did a gdalinfo on both versions of the file. The information output by the gdal version of the file is accurate. The information output by the geotools version of the file is wrong. I did verify

Re: [Geotools-gt2-users] geotiff metadata not consistent when read with GDAL vs Geotools

2007-12-12 Thread Kevin Ward
See: GTRasterTypeGeoKey http://javadoc.geotools.fr/2.4/org/geotools/gce/geotiff/IIOMetadataAdpaters/utils/GeoTiffConstants.html#GTRasterTypeGeoKey and RasterPixelIsArea http://javadoc.geotools.fr/2.4/org/geotools/gce/geotiff/IIOMetadataAdpaters/utils/GeoTiffConstants.html#RasterPixelIsArea You

Re: [Geotools-gt2-users] geotiff metadata not consistent when read with GDAL vs Geotools

2007-12-12 Thread mzorova
FANTASTIC.. Just one more problem.. I don't know how to write the metadata that comes out of a GeoTiffIIOMetadataEncoder AND use the GeoTiffWriter.. GeneralEnvelope ge = new GeneralEnvelope(dp1,dp2); ge.setCoordinateReferenceSystem(crs); RenderedImage ri = image; GridCoverage2D

Re: [Geotools-gt2-users] WAIT_CURSOR when Rendering

2007-12-12 Thread Gabriella Turek
Yes, I've been wandering this myself, I can't get the cursor to work properly either. gaby *** ** Gabriella Turek [EMAIL PROTECTED] ** ** National Institute of Water Atmospheric Research (NIWA) ** ** PO Box