Re: [Geotools-gt2-users] geotools "jar" file

2010-05-20 Thread Michael Bedward
On 21 May 2010 16:32, ahmet temiz wrote: > > In order to integrate geotools in java application, don't we need its > "jar" file ? > > I couldn't find it ? Please have a look at one of our introductory workbooks... For Eclipse users... http://snapshots.dist.codehaus.org/geotools/workshop/GeoToolsE

[Geotools-gt2-users] geotools "jar" file

2010-05-20 Thread ahmet temiz
hello In order to integrate geotools in java application, don't we need its "jar" file ? I couldn't find it ? regards -- ___ Geotools-gt2-users mailing list Geotools-gt2-user

Re: [Geotools-gt2-users] How do I to use a common selection

2010-05-20 Thread Michael Bedward
Hi Amador > For this: >     Point screenPoint = evt.getPoint(); >     Filter mFilter = mFilterFactory.intersects( >     mFilterFactory.property(mGeomName), >     mFilterFactory.literal(screenPoint)); > No, that won't work. The first problem is that the Poin

Re: [Geotools-gt2-users] WGS84 Point in Polygon

2010-05-20 Thread Michael Bedward
Hello Duane, > JTS is a 2.5D Cartesian geometry computation library. It is not capable of > understanding > that 180 lies between -170 and 170. Perhaps just normalize the incoming coordinates to [0, 360) then you can test them against your polygon (with its vertices normalized in the same manner

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-20 Thread Enamul
I'm aware of the 4 color algorithm although I didn't really know about the 5 color version. And I'm dealing with 20k shapes ... so using different colors is obviously out of consideration. I have been assigning random colors from a pool of colors but was wondering if geotools has sth that I can ta

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

2010-05-20 Thread Michael Bedward
Hi Jon, Linda, Yep, it sounds like you're both on the road to grid coverage happiness now :) Linda: for any desired cell width you can easily calculate the bits you need for the new GridGeometry2D object to pass to the Resample op... double cellSize = ... GridGeometry2D gg = cov.getGridGeometry

[Geotools-gt2-users] SingleCRS to CompoundCRS and/or vice versa

2010-05-20 Thread James Nicolson
I'm trying to get GPX (using gt-gpx) support into udig. I've managed to get the import wizard to work but I now need to translate between gpxCrs (a CompoundCRS of WGS84, height and temporal CRSs) and my target CRS (at the moment im testing it with the default WGS84 (DD). The exception thrown states

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-20 Thread Michael Bedward
Hello, > I'd like to fill the polygons with multiple colors such that adjacent > polygons don't have the same color. How can I do this ? Easiest answer - if number of polygons is small make them all different colors :) General answer... Theoretically you only need four colors to achieve what you

Re: [Geotools-gt2-users] Custom Filter Implementation

2010-05-20 Thread Michael Bedward
Hi again Sergey, If you are only going to be using your filter programmatically (rather than in SLD files) you can cheat a bit and set the string that you are looking for in the filter function constructor like this... public class Foo extends FunctionExpressionImpl { private final String typ

[Geotools-gt2-users] ColorMap on polygons

2010-05-20 Thread Enamul
I'd like to fill the polygons with multiple colors such that adjacent polygons don't have the same color. How can I do this ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ColorMap-on-polygons-tp5081998p5081998.html Sent from the geotools-gt2-users mailing list archive

Re: [Geotools-gt2-users] Custom Filter Implementation

2010-05-20 Thread Michael Bedward
Hi Sergey, Just to add to Andrea's reply, you'll find it easiest to extend org.geotools.filter.FunctionExpressionImpl to write your filter function. Michael -- ___ Geotools-gt

Re: [Geotools-gt2-users] CQL bug (or annoying feature)?

2010-05-20 Thread Michael Bedward
On 21 May 2010 00:54, LSA wrote: > There is not ability to enter expressions without attributes. For example, > evaluate the following expression 1=1 - you will get exception, that first 1 > is unexpected. However, it is quite possible situation, for example, how can > you evaluate the following: I

Re: [Geotools-gt2-users] projection transformation

2010-05-20 Thread Simone Giannecchini
This is something to get you started: http://www.geotools.org/examples/crslab.html Simone. --- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax:

[Geotools-gt2-users] The coordinate reference system for the PrimitiveFactory is nullu

2010-05-20 Thread Dan Sireci
Hello, I am trying to determine if a point on the earth is within a polygon and I am having some difficulty. I am doing this by using Eclipse and gt-jts-wrapper-2.6.4.jar. The coordinate system is WGS84. The code in question is the following : Hints hints = new Hints(Hints.CRS, Def

[Geotools-gt2-users] projection transformation

2010-05-20 Thread ahmet temiz
hello I am a new participant. I will appreciate if you let me know how I can manage projection transformation in java application. specifically utm to geographic conversion. regards -- _

[Geotools-gt2-users] ignore just a test

2010-05-20 Thread ahmet temiz
-- ___ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

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

2010-05-20 Thread Jon Britton
I suppose you just find the ratio between the current cell size and the cell size you require, then use that for the scale factor. Or something like that anyway... Jon On 20 May 2010 17:30, Adnila wrote: > > hey guys, > > @Michael: thanks for the code. It was very helpful. You're the best ;-) >

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

2010-05-20 Thread Adnila
hey guys, @Michael: thanks for the code. It was very helpful. You're the best ;-) sry, when I caused some confusions. But I meant the cell width with resolution. This was not correct, sry. I need to set the cell width fixed. The user can chose the cell width in meters and than the new grid cover

Re: [Geotools-gt2-users] Custom Filter Implementation

2010-05-20 Thread Andrea Aime
LSA ha scritto: > Hi once again! > > I would like to have my own custom filter, which filters every feature > by using its very custom /evaluate/ method. The filter api cannot be extended, the set of filters is closed. What you can do is to create your own filter function instead, and then check

[Geotools-gt2-users] Custom Filter Implementation

2010-05-20 Thread LSA
Hi once again! I would like to have my own custom filter, which filters every feature by using its very custom /evaluate/ method. I was trying to implement my own filter by extending the AbstractFilterImpl, but I ran into the following: If I don`t override accept(FilterVisitor visitor, Objec

Re: [Geotools-gt2-users] WGS84 Point in Polygon

2010-05-20 Thread Duane Zamrok
I've played around with the Filters some more (as was suggested), and I still can't seem to find what I'm looking for. If you'll please excuse my use of a list, I think it will be helpful to better outline my problem. Problem: I start out with a polygon defined as a closed line string of longitu

[Geotools-gt2-users] CQL bug (or annoying feature)?

2010-05-20 Thread LSA
Hi everyone! I think CQL implementation in geotools has bug, or very annoying feature: There is not ability to enter expressions without attributes. For example, evaluate the following expression 1=1 - you will get exception, that first 1 is unexpected. However, it is quite possible situation,

Re: [Geotools-gt2-users] (no subject)

2010-05-20 Thread christian . mueller
I would try it in the following manner 1) Take your points and sort them primary by x value, secondary by y value, eliminate duplicates 2) Create a linestring from your points, step 1 should assure a valid geometry 3) intersect the linestring with the mulitpolygon, the result can be an empty g

[Geotools-gt2-users] (no subject)

2010-05-20 Thread Jürgen Jacob
Hi list, I have a question that could be more related to a jts-user list but hopefully someone can help me. I have two set of Geometry objects (a set of Points and a set of Multipolygons) and I have to check which of them intersect to get the mapping of Polygon->Points. geometryObjectA.inter

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

2010-05-20 Thread Jon Britton
Hi Michael, This certainly answers my question, now I can do things the GeoTools way! Again, if you want a fixed resolution (say 800 x 600), since we're using scaling factors then the following should do the trick: // create new GridGeometry with half as many cells GridEnvelope2D newGridEnv = ne

Re: [Geotools-gt2-users] shapefile prj compatibility with ESRI - has been mentioned before

2010-05-20 Thread Martin Tomko
Hi Andrea, here is an example from both. The differences seem to be names (of every single parameter - PROJCS, GEOGCS, SPHEROID, etc), including captialization and parameter naems. The values seem to be identical. Hope this helps, Martin Geotools: PROJCS["ETRS89 / ETRS-LAEA", GEOGCS["ETRS89", DA

Re: [Geotools-gt2-users] How do I to use a common selection

2010-05-20 Thread Amador Antonio Cuenca
Well, I do it, but It don't work, I'm very stuck in this, because I'm new in GIS. I need to select just a polygon and not a line, because the system which I want to make is a "Building Locator" (Or something else, I hope you'll understand what I mean), I send you my full prototype. I replace this:

Re: [Geotools-gt2-users] shapefile prj compatibility with ESRI - has been mentioned before

2010-05-20 Thread Andrea Aime
Martin Tomko ha scritto: > Hi Andrea, > I just had the need to export some featurecollesction and check for the > correctness of results in ArcGis with some other data, as a quick > visualization workaround - I don't do visualization in GT...(I guess I > should use uDig for this, eh?). Anyway, t

Re: [Geotools-gt2-users] shapefile prj compatibility with ESRI - has been mentioned before

2010-05-20 Thread Martin Tomko
Hi Andrea, I just had the need to export some featurecollesction and check for the correctness of results in ArcGis with some other data, as a quick visualization workaround - I don't do visualization in GT...(I guess I should use uDig for this, eh?). Anyway, this has resulted in an error from

Re: [Geotools-gt2-users] shapefile prj compatibility with ESRI - has been mentioned before

2010-05-20 Thread Andrea Aime
Martin Tomko ha scritto: > Dear all, > this has been discussed before, in the times when Geotidy was planned to > become Geotools 3... That was never planned, it was just the wish of the people that eventually forked GeoTools into GeoToolkit. But has never been an official project position. >

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

2010-05-20 Thread Michael Bedward
Hi Linda, Jon, Sorry - didn't realize you were still stuck ! I hadn't been following the last few messages on this thread. If what you want to do is retain the coverage's world bounds but alter its resolution (ie. its grid bounds) you can do as in the code snippet below. Note that I'm not reproj

[Geotools-gt2-users] shapefile prj compatibility with ESRI - has been mentioned before

2010-05-20 Thread Martin Tomko
Dear all, this has been discussed before, in the times when Geotidy was planned to become Geotools 3... There has been a need to format the prj generated for shapefiles to be compatible with ESRI soft. Has this been somehow resolved? I have a problem specifically with the EPSG:3035 which looks

[Geotools-gt2-users] SLD and TextSymbolizer

2010-05-20 Thread GuiCheBZH
Hi, I have a SLD file like that, but when I parse the file, it doesn't display the text symbolizer. http://www.opengis.net/sld"; xmlns:sld="http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml";> Default Styler

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

2010-05-20 Thread Jon Britton
Are you saying you want to make an image a given resolution, as in 800 x 600? For this I use the following method: public static RenderedImage rescale(RenderedImage image, int width, int height) { float xScale = (float) width / (float) image.getWidth(); float yScale = (float) height / (float) im

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

2010-05-20 Thread Adnila
hey guys, I still do not get it. can anybody help me please? here is my original post: Hey all, now I am trying to use a fixed resolution for a rescaling of a gridcoverage2D. The user should be able to choose a resolution from a GUI. What am I supposed to do if I want the rescaling with a fixed

[Geotools-gt2-users] Parsing WMS getCapabilities responses without the need for network connection?

2010-05-20 Thread Heimo Laukkanen
Hi all, we are doing a project in Finnish meteorological institute and trying to use Geotools library ( xml and wms extensions ) for our benefit. At the moment we are parsing WMS getCapabilities responses with Geotools-library, but can't seem to be able to make the parser to use local schemas, ra

Re: [Geotools-gt2-users] WMS Port Bug ?

2010-05-20 Thread Weber, Claus
hi jody thx for your answer and you are right our server really returns a wrong capabilities document say our server strips off the port number i have had a serious word with our admin :) so geotools is still an awesome library and jody is the greatest :) thanks again claus . -Urspr