Re: [Geotools-gt2-users] Running GIS code through Hadoop's prompt!

2012-11-14 Thread Sugandha Naolekar
Hello! my code works now, if I include gis jar in the classpath in the prompt while compiling the code using javac and even in the HADOOP_CLASSPATH variable in the hadoop-env.sh file. But, since my code required only one jar, it worked. Now, if I got to bundle all the jars and then include it in

Re: [Geotools-gt2-users] Render a GridCoverage2D to a heat map

2012-11-14 Thread littles
Hi Michael, Thank you for your reply. I also found those SLD examples, and this is the way I'm using them: HeatmapProcess process = new HeatmapProcess(); GridCoverage2D cov = process.execute(fc, // data 20, //radius null, // weightAttr

[Geotools-gt2-users] SimpleLine contains some points

2012-11-14 Thread Steve Mitchell
Trying to find the right way to test line overlap when the points are not common. I have a set of lines containing points collected from a GPS receiver. I need to find which of those lines travel a particular stretch of the route. The functions geometryA.contains(geometryB) and

Re: [Geotools-gt2-users] Render a GridCoverage2D to a heat map

2012-11-14 Thread Michael Bedward
Hello, The code to retrieve the Style from the SLD file should look more like this... /** * Create a Style object from a definition in a SLD document */ private Style createFromSLD(File sld) { try { SLDParser stylereader = new SLDParser(styleFactory,

Re: [Geotools-gt2-users] SimpleLine contains some points

2012-11-14 Thread Michael Bedward
Hello Steve, If you can define a tolerance within which geometries should be treated as coincident you could use Geometry.buffer and then test for intersection etc. Michael On 15 November 2012 03:07, Steve Mitchell stevecmitch...@gmail.com wrote: Trying to find the right way to test line

Re: [Geotools-gt2-users] SimpleLine contains some points

2012-11-14 Thread Steve Mitchell
Is the tolerance that you speak of referring only to Geometry.buffer()? I've tried setting Geometry.buffer but it had no effect on my line string comparison. geometryA.buffer(100); geometryA.contains(geometryB) -- false, except when geometryB is an exact subset of points from geometryA.

Re: [Geotools-gt2-users] SimpleLine contains some points

2012-11-14 Thread Michael Bedward
Hi Steve, Is the tolerance that you speak of referring only to Geometry.buffer()? I've tried setting Geometry.buffer but it had no effect on my line string comparison. Calling geomA.buffer(dist) does not modify geomA, it returns a new buffered geometry... double dist = ... Geometry geomB =