[Geotools-gt2-users] Does GeoTiffReader support FileInputStream?
Hi all, Does GeoTiffReader support FileInputStream or other stream types as its data source? When I try to call the read() method of GeoTiffReader, which was created with a FileInputStream, an exception raised. …… GridCoverageReader _reader = *new* GeoTiffReader(_fileStream); //Imaging Exception raised here! GridCoverage2D _grid = (GridCoverage2D) _reader.read(*null*); …… Below are trace information: javax.media.jai.util.ImagingException: All factories fail for the operation ImageRead at javax.media.jai.OperationRegistry.invokeFactory( OperationRegistry.java:1687) at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory( ThreadSafeOperationRegistry.java:473) at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332) at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819) at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867) at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2233) at org.geotools.coverage.grid.io.AbstractGridCoverage2DReader.createImageCoverage (AbstractGridCoverage2DReader.java:410) at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:422) .. -- Feng Min - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Re: [Geotools-gt2-users] GeoTools and astronomical maps
janek a écrit : - astronomy maps have reversed west and east (west on right east on left). Can geotools handle that? Yes as far as the referencing module and the legacy j2d renderer is concerned. Not sure about the streaming renderer. - in 99.9% spheric coordinates are used, even for calculations. How geotools represents data internally? In cartesian system or spheric coordinates? It depends on the module involved... - metadata, referencing and coverage modules: no assumption, you store data using whatever CRS fit your needs, in whatever dimension you want (2D, 3D, 4D...). - streaming renderer: I don't know. The legacy j2d renderer was not forcing a particular CRS neither. - JTS (the geometry library used in many place in Geotools) expect a cartesian 2D CRS. Martin - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Re: [Geotools-gt2-users] What to use instead of Filter?
On 5/8/07, Justin Deoliveira [EMAIL PROTECTED] wrote: Hi Gabriella, org.geotools.filter.* classes have been replaced with org.opengis.filter.* in geotools 2.4. The new interfaces are part of the geoapi project. But when I tried to do this upgrade in JMapPane the other week I became stuck as I needed a GeoAPI geometry for my new (GeoAPI) filter and was unable to find any way to create one, and none of the GeoTools geometries seem to implement the GeoAPI interfaces. So I gave up and went back to the deprecated filters. Ian -- Ian Turton http://www.geotools.org http://pennspace.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Re: [Geotools-gt2-users] What to use instead of Filter?
Hi Ian, Were you creating the geoapi filters using the FilterFactory? I believe you are correct in that that interface has a dependency on geoapi geometry. However the FilterFactory2 interface is an extension which allows you to create filters without geoapi geometries. I realize that isn;t exactly intuitive. We should really clean that up before our 2.4 release... -Justin Ian Turton wrote: On 5/8/07, Justin Deoliveira [EMAIL PROTECTED] wrote: Hi Gabriella, org.geotools.filter.* classes have been replaced with org.opengis.filter.* in geotools 2.4. The new interfaces are part of the geoapi project. But when I tried to do this upgrade in JMapPane the other week I became stuck as I needed a GeoAPI geometry for my new (GeoAPI) filter and was unable to find any way to create one, and none of the GeoTools geometries seem to implement the GeoAPI interfaces. So I gave up and went back to the deprecated filters. Ian -- Justin Deoliveira The Open Planning Project [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
[Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)
Hi, I add one statement to the sample LiteRendererJFrame to test the Simple Mercator Projection. this.setCoordinateReferenceSystem(CRS.decode(EPSG:41001)); When the program start, it report : 2007-5-11 13:37:59 org.geotools.renderer.lite.LiteRenderer$DefaultRenderListener errorOccurred 严重: Latitude 90°00.0'S is too close to a pole. org.geotools.referencing.operation.projection.ProjectionException: Latitude 90°00.0'S is too close to a pole. at org.geotools.referencing.operation.projection.Mercator.transformNormalized( Mercator.java:135) at org.geotools.referencing.operation.projection.MapProjection.transform( MapProjection.java:636) at org.geotools.referencing.operation.projection.MapProjection.transform( MapProjection.java:677) at org.geotools.referencing.operation.transform.ConcatenatedTransformDirect.transform (ConcatenatedTransformDirect.java:79) at org.geotools.renderer.lite.Decimator.decimateTransformGeneralize( Decimator.java:252) at org.geotools.renderer.lite.Decimator.decimateTransformGeneralize( Decimator.java:127) at org.geotools.renderer.lite.Decimator.decimateTransformGeneralize( Decimator.java:118) at org.geotools.renderer.lite.Decimator.decimateTransformGeneralize( Decimator.java:109) at org.geotools.renderer.lite.LiteShape2.init(LiteShape2.java:135) at org.geotools.renderer.lite.LiteRenderer.getTransformedShape( LiteRenderer.java:1347) at org.geotools.renderer.lite.LiteRenderer.processSymbolizers( LiteRenderer.java:1319) at org.geotools.renderer.lite.LiteRenderer.processStylers(LiteRenderer.java :1202) ... I think the reason is the map bound is over the span of -85 and 85, then I choose a small city map, it worked OK. But how can I render whole world with Mercator Projection? Regards. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users