Re: [Geotools-gt2-users] How-to Calculate a FileLength parameter

2009-02-16 Thread Michael Bedward
Hi Rafael, If you don't mind me asking, why are you working directly with that low level class rather than, for example, ShapefileDataStore ? Michael 2009/2/17 Rafael Soto Hi Folks, > > I'm using the module Geotools to work with shapefiles. > I have a question at the time of writing the header

Re: [Geotools-gt2-users] Deprecated style methods

2009-02-16 Thread Michael Bedward
Hi Benoît, I really struggle with styles for all but the simplest cases. I mostly want to set styles programmatically rather than use SLD files - but often find myself stumped by how to avoid deprecated methods. For simple, constant line and polygon styles I use methods like these: public St

[Geotools-gt2-users] WebMapServer Timeout

2009-02-16 Thread Rafael Soto
Hi Folks, I didn't find any hint on how to use an timeout try connect a remote wms server. When i try to connect a wrong host my code freeze!! Best Regards, -- Rafael Soto -- Open Source Business Conference (OSBC), March

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Simone Giannecchini
Ciao Martin, I copied and pasted (with few modifications) your stile inside the renderer tests and it worked. I am attaching it to this email. The code used is as follows: RasterSymbolizerHelper rsh = new RasterSymbolizerHelper(gc, null); final UserLayer nl = (Use

[Geotools-gt2-users] Fwd: How-to Calculate a FileLength parameter

2009-02-16 Thread Rafael Soto
-- Forwarded message -- From: Rafael Soto Date: Mon, Feb 16, 2009 at 11:06 AM Subject: How-to Calculate a FileLength parameter To: geotools-gt2-users@lists.sourceforge.net Hi Folks, I'm using the module Geotools to work with shapefiles. I have a question at the time of writing t

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Martin Tomko
Hi Simone, I used the one in your example, with changed values that are to be mapped, as follows: Thanks Martin - <#> http://www.opengis.net/sld*"; xmlns:ogc="*http://www.opengis.net/ogc*"; xmlns:xlink="*http://www.w3.org/1999/xlink*"; xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Simone Giannecchini
Ciao Martin, please, send over the SLD file you are using. Simone. --- Ing. Simone Giannecchini GeoSolutions S.A.S. Owner - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob:+39

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Martin Tomko
Hi Simone, I have solved the Style factory problem as follows: SLDParser stylereader = new SLDParser(new StyleFactoryImpl() , sldfile); I have imported the UserLayer, Style and all following classess from org.geotools.styling (it seems that classes with the same name are also in org.ope

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Martin Tomko
Hi Simone, that looks good. HOw do you create the Stle factroy (is is not in the code...and I did not do any styling before...). Could you maybe also upload the imports in that tutorial, please? Cheers Martin Simone Giannecchini wrote: > Ciao Martin, > a way to achieve that is by using the Raste

Re: [Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Simone Giannecchini
Ciao Martin, a way to achieve that is by using the RasterSymbolizer (2.5.0 and successive releases). See http://docs.codehaus.org/display/GEOTOOLS/Raster+Symbolizer+support for more information. Simone. --- Ing. Simone Giannecchini GeoSolutions

Re: [Geotools-gt2-users] How-to Calculate a FileLength parameter

2009-02-16 Thread Simone Giannecchini
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users --- Ing. Simone Giannecchini GeoSolutions S.A.S. Owner - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob:+39 333

Re: [Geotools-gt2-users] How-to Calculate a FileLength parameter

2009-02-16 Thread Roth Timothy L CONTR USSTRATCOM/J8651
Please remove me from this list. I don't use Geotools. ...Tim -Original Message- From: Rafael Soto [mailto:rafael.s...@gmail.com] Sent: Monday, February 16, 2009 8:07 AM To: geotools-gt2-users@lists.sourceforge.net Subject: [Geotools-gt2-users] How-to Calculate a FileLength parameter

[Geotools-gt2-users] assign colors to GridCoverage2D (or geotiff )

2009-02-16 Thread Martin Tomko
Dear all, I am creating a gridcoverage2D (and consequently a geotiff, based on processing of a source geotiff DEM), and I want to quickly visualize the results of the analysis. Instead of opening it in some GIS, I would like to assign a color model to the result.and display it through the show()

[Geotools-gt2-users] Deprecated style methods

2009-02-16 Thread Benoît Thiébault
Hi everyone, I'm using geotools 2.5 and I try to set styles programmatically, from examples provided on the geotools tutorials (like here http://docs.codehaus.org/display/GEOTDOC/05+Style or there http://docs.codehaus.org/display/GEOTDOC/09+ShapeLab) In both cases, a lot of methods seem to

[Geotools-gt2-users] How-to Calculate a FileLength parameter

2009-02-16 Thread Rafael Soto
Hi Folks, I'm using the module Geotools to work with shapefiles. I have a question at the time of writing the header file in the specific parameter *fileLength* in *shapefileWriter.writeHeaders* method. How do I calculate this parameter because I am having problems when uses this archive in others

Re: [Geotools-gt2-users] Cross hair on mapPane

2009-02-16 Thread Jody Garnett
You should jmappane as what it is. An example of how things can be done. You could either use it as a starting point or add functionality as you see fit. If you find any improvements you would like to make submit patches via jira - or jump on the devel list and ask if you can work on it d

Re: [Geotools-gt2-users] Cross hair on mapPane

2009-02-16 Thread Michael Bedward
2009/2/16 Robert Green : > Hi > Explain please, what I should use in my program instead of MapPane, if I do > not want to use uDig, OpenJUMP or other system? > Thanks! > Hi Robert, I don't think that Jody was advising you against using JMapPane, more pointing out that you should treat it as a sta

Re: [Geotools-gt2-users] Cross hair on mapPane

2009-02-16 Thread Robert Green
Jody Garnett-2 wrote: > > The MapPane stuff is an example to get you started; you can look into how > those tools are defined if you like and change the cursor that is used. As > a > programming example we have not document MapPane very well; indeed MapPane > is "unsupported" and does not have a

Re: [Geotools-gt2-users] CRS.decode : Unavailable authority factory: European Petroleum Survey Group (geotools 2.5-SNAPHOT)

2009-02-16 Thread Martin Tomko
Dear Jody, thanks for your reply. The issue has been resolved, following your hints in the geotools how-to: I had to delete the temp files created by epsg-hsql from previous gt (2.4) builds. All was fine afterwards. Thanks anyway, Martin Jody Garnett wrote: > > > On Wed, Feb 4, 2009 at 1:00 AM,