Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Jody Garnett
On 07/05/2010, at 10:58 AM, Michael Bedward wrote: > On the user list we regularly ask people for feedback and > contributions to the wiki and web examples. But it's usually a lot > easier to get code contributions than it is to get help with the docs. That said Micheal there have been some good

Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Jody Garnett
Actually it is an opportunity to collaborate! I do hope you found the foss4g workshops that explain both the api and the background knowledge? - http://geotoolsnews.blogspot.com/2009/11/foss4g-geotools-tutorials.html The wiki is the most obvious point of collaboration; it is a wiki after all and

Re: [Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread Michael Bedward
On 7 May 2010 02:45, Jody Garnett wrote: > It is sillier then that - the docs are for trunk; ie GeoTools 2.7 - where we > have just introduced SimpleFeatureCollection rather then forcing people to > type FeatureCollection again and again and > again... > We are not really sure how we should publish

Re: [Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread Michael Bedward
Hi John, I just tested the csv2shp sample using the createFeatureType method rather than DataUtilities and it worked for me (don't you hate it when people say that ?). The only problem I found was that it didn't deal with empty lines in the input file, but that doesn't sound like the error that yo

Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Michael Bedward
Hello, It certainly is true that a lot less work is put into the docs than into the code. This is a syndrome that affects most projects and the root cause is that good docs take a long time to write, test and edit but generally nobody wants to fund this work. As a result pretty much all of the eff

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread Michael Bedward
Hello, I've added this as a feature request... http://jira.codehaus.org/browse/GEOT-3069 Michael On 7 May 2010 02:03, Jody Garnett wrote: > Yes; a couple of ways. > - Draw the image as geotools is drawing into it... this is what uDig does. > - Get a volatile image and use that to draw into. It

Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Rodrigo
Brian Ghigiarelli, I'm also finding it very difficult to learn GeoTools. The API is not easy and the documentation is incomplete and confusing. To create a single point on the map with an icon is very complex! As a user will be able to learn alone without good documentation it needs to use G

Re: [Geotools-gt2-users] support WMS-C

2010-05-06 Thread Jody Garnett
messageFormat( pattern?) not sure what you are talking about :-( There is a message format in java, ibm offers an alternate that works with different lanaguages correctly. Here is an example: - net.refractions.udig.render.wms.basic/src/net/refractions/udig/render/internal/wmsc/basic/BasicWMSCRe

Re: [Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread Jody Garnett
It is sillier then that - the docs are for trunk; ie GeoTools 2.7 - where we have just introduced SimpleFeatureCollection rather then forcing people to type FeatureCollection again and again and again... We are not really sure how we should publish older docs; perhaps as a download next to the

Re: [Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread John Cartwright
Thanks for your prompt reply Jody! I do see a SimpleFeatureTypeBuilder#setDefaultGeometry(String) and will try that. I do notice that the javadocs say: "A default geometry for the feature type can be specified explictly via |setDefaultGeometry(String)|

Re: [Geotools-gt2-users] support WMS-C

2010-05-06 Thread Toshy
Hello, thanks Jody for the answer. I work on the IRunnableWithProgress. But it's not my question. Where do I find the config file containing the pattern for messageFormat(pattern , ...);? And I want test the source code with an example but I don't know how do I make? With WMS : WebMapServer wms

Re: [Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread Jody Garnett
It may be the example that is wrong; I can see the builder.add("Location",Point.class) line ... can you try and see if there is a builder method to set the default geometry? I assumed it would pick up the first geometry all on its own Jody On 07/05/2010, at 1:51 AM, John Cartwright wrote:

Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Jody Garnett
Wiki is still hosted on codehaus; you will fid some information on making your own icon factories in geotools (a new capability that has been added so icons can be true type fonts etc..). But basically SLD asks you to make rules and set up markers for each one of your icons ... The larger quest

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread Jody Garnett
Yes; a couple of ways. - Draw the image as geotools is drawing into it... this is what uDig does. - Get a volatile image and use that to draw into. It is tricky Java 2D programming (because you need to redraw if windows are moved in front of your image) but it is effective. Jody On 07/05/2010,

[Geotools-gt2-users] problem w/ the Csv2Shp example

2010-05-06 Thread John Cartwright
Hello All, I'm trying to follow the very nice Csv2Shp example (http://geotools.org/examples/csv2shp.html) using version 2.6.3 and am having a little trouble. Using the recommended alternative method for creating a SimpleFeatureType: private static SimpleFeatureType createFeatureType() {

[Geotools-gt2-users] Adding Icon Feature to Map

2010-05-06 Thread Brian Ghigiarelli
Geotools Community, I'm in the process of building a map application using GT 2.6.1 to allow users to add markers to a map, then run some simulations on the affects of the positions of the markers. I'm relatively new to Geotools, but am having a hard time finding documentation and/or examples on

Re: [Geotools-gt2-users] Reading tiff files

2010-05-06 Thread Nicholas Bergson-Shilcock
Excerpts from Simone Giannecchini's message of Thu May 06 08:33:50 -0400 2010: > Dear Nicholas, > using imagemosaic with geotools 2.6.3 is surely the way to go. > > Question, can you give the tiles that you are using in your test so > that I can reproduce and fix the problem or at least provide so

Re: [Geotools-gt2-users] Reading tiff files

2010-05-06 Thread Nicholas Bergson-Shilcock
Excerpts from Michael Bedward's message of Wed May 05 22:28:02 -0400 2010: > Hi Nicholas, > > > This works great except for when you query for a point that falls on one of > > the pixels directly > > on the edge the tiff. The outermost pixels aren't considered to be inside > > the region. Pictur

[Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread LSA
As far as I know, default geotools drawing mode is to draw on offline buffer and then render this buffer to the screen. On the opposing side, OpenJump (for example) draws everythink it can draw immediately. This give user the feeling of more responsive interface, because hey - something is going

Re: [Geotools-gt2-users] Reading tiff files

2010-05-06 Thread Simone Giannecchini
Dear Nicholas, using imagemosaic with geotools 2.6.3 is surely the way to go. Question, can you give the tiles that you are using in your test so that I can reproduce and fix the problem or at least provide some help? Simone. --- Ing. Simone Gia

Re: [Geotools-gt2-users] Rescale GridCoverage2D with fixed resolution

2010-05-06 Thread Adnila
hey, unfortunately it is not working. The result looks like this: (the given resolution was 100m) 0.0, 0.0, 0.0 100.0, 0.0, 0.0 200.0, 0.0, 0.0 300.0, 0.0, 0.0 400.0, 0.0, 0.0 before the resampling it looked like this: 4610500.0, 5675000.0, -5.2 4611500.0, 5675000.0, -5.3 4612500.0, 5675000.0

Re: [Geotools-gt2-users] support WMS-C

2010-05-06 Thread Jody Garnett
GeoTools has a similar construct called progress listener; indeed I make a warpper in order to use geotools or udig classes as required. Jody On 06/05/2010, at 8:00 PM, Toshy wrote: > > Hello, > > I look the sources. For the IProgressMonitor, NullProgressMonitor and > IRunnableWithProgress cl

Re: [Geotools-gt2-users] Problem with a featureTypeBuilder

2010-05-06 Thread GuiCheBZH
I don't think it is a problem of symbolizer or filter because if I don't add the name property (or any other property) to the feature all the geometries are well displayed. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-a-featureTypeBuilder-tp5008838p5013917

Re: [Geotools-gt2-users] WoldImageWriter write false copy of gridcoverage.

2010-05-06 Thread Simone Giannecchini
Ciao Jin, a few things: -1- which version of geotools are you using? -2- can you provide some sample data for testing? -3- Can you try using the geotiff writer? Simone. --- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder - Software Engineer

Re: [Geotools-gt2-users] Display performance

2010-05-06 Thread Michael Bedward
On 6 May 2010 20:26, Toshy wrote: > > I don't know if it's the best way (I'm not a great developper, I'm just > student) but it seems work to me. > Fair enough :-) Michael -- _

Re: [Geotools-gt2-users] Rescale GridCoverage2D with fixed resolution

2010-05-06 Thread Simone Giannecchini
Ciao Linda, if you want to change the resolution of a gridcoverage you need to impose it using the resample operation.. On geotools trunk, I have put together this snippet: final double scaleX = 500; final double scaleY = 1000; final AffineTransform at = AffineTransform.

[Geotools-gt2-users] Fwd: WoldImageWriter write false copy of gridcoverage.

2010-05-06 Thread Jianhui Jin
-- Forwarded message -- From: Jianhui Jin Date: Tue, May 4, 2010 at 9:27 PM Subject: WoldImageWriter write false copy of gridcoverage. To: geotools-gt2-users@lists.sourceforge.net Hi All I am learning to write out a raster file as images. using WorldImageWriter produce false res

Re: [Geotools-gt2-users] Display performance

2010-05-06 Thread Toshy
Hello, I do that because the super.paintComponent draw the panel with empty shape. And the drawing of the map is in onCompletedRendering method and that take time. So I just draw the baseImage before the modification. I don't know if it's the best way (I'm not a great developper, I'm just studen

Re: [Geotools-gt2-users] Rescale GridCoverage2D with fixed resolution

2010-05-06 Thread Adnila
hey, yes I saw this operation. But I do not really get how to manipulate the parameters to change resolution. It is always a little bit difficult to put everything together without some code snippets. Is there any example of changing resolution? I have to use real world units for the resolution f

Re: [Geotools-gt2-users] support WMS-C

2010-05-06 Thread Toshy
Hello, I look the sources. For the IProgressMonitor, NullProgressMonitor and IRunnableWithProgress classes, it's just to show the progress for a window so for geoTools it's not use, doesn't it? I replace WmsPlugin class to Logger object with org.geotools.wms? And I don't understand CatalogPlugin

Re: [Geotools-gt2-users] cql filter question

2010-05-06 Thread andrea antonello
And indeed it does. :) Thanks, Andrea On Thu, May 6, 2010 at 10:42 AM, Michael Bedward wrote: > ECQL.toFilter("value - floor(value / 2) = 1") should work > > Michael > -- ___

Re: [Geotools-gt2-users] Display performance

2010-05-06 Thread Michael Bedward
Hi Toshy, > To remove the blink in the method paintComponent. of the JMapPane class, > after the super.paintComponent(g); > > if(baseImage !=null){ > g.drawImage(baseImage, imageOrigin.x, imageOrigin.y, null); > } > > that remove the blink but not optimise the performance. And I'm afraid it will

Re: [Geotools-gt2-users] Rescale GridCoverage2D with fixed resolution

2010-05-06 Thread Michael Bedward
Hi Linda, Have you seen the Resample operation ? You can control the resolution and the CRS... http://geotools.org/javadocs/org/geotools/coverage/processing/operation/Resample.html Michael -- __

Re: [Geotools-gt2-users] cql filter question

2010-05-06 Thread Michael Bedward
ECQL.toFilter("value - floor(value / 2) = 1") should work Michael -- ___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/l

Re: [Geotools-gt2-users] Display performance

2010-05-06 Thread Toshy
Hello, To remove the blink in the method paintComponent. of the JMapPane class, after the super.paintComponent(g); if(baseImage !=null){ g.drawImage(baseImage, imageOrigin.x, imageOrigin.y, null); } that remove the blink but not optimise the performance. Cheers Didier CREST -- View this mess

Re: [Geotools-gt2-users] cql filter question

2010-05-06 Thread andrea antonello
Hi Andrea, [...] >> cqlStr = "if_then_else(cat % 2 == 0, true, false)" >> Filter cqlFilter = CQL.toFilter(cqlStr); >> >> new Fc = fc.subCollection(cqlFilter); > > My guess is, there is % operator in the OGC filter specification, > so the above cannot be properly translated. > > I guess you have to

Re: [Geotools-gt2-users] Rescale GridCoverage2D with fixed resolution

2010-05-06 Thread Adnila
hey, > When you say rescale do you mean that you want to resample an existing > grid coverage at a new resolution or simply change the stated > resolution of the coverage without modifying its data ? I meant the first case: I want to resample an existing grid coverage at a new resolution with a n

Re: [Geotools-gt2-users] cql filter question

2010-05-06 Thread Andrea Aime
andrea antonello ha scritto: > I am wondering if it is possible to extract through CQL all the > features in which an attribute divided by a number returns 0. > > After browsing the cql functions I tried something like: > > cqlStr = "if_then_else(cat % 2 == 0, true, false)" > Filter cqlFilter = C

[Geotools-gt2-users] cql filter question

2010-05-06 Thread andrea antonello
I am wondering if it is possible to extract through CQL all the features in which an attribute divided by a number returns 0. After browsing the cql functions I tried something like: cqlStr = "if_then_else(cat % 2 == 0, true, false)" Filter cqlFilter = CQL.toFilter(cqlStr); new Fc = fc.subCollec