Re: [Geotools-gt2-users] Vector to raster

2014-12-31 Thread Andrea Aime
On Wed, Dec 31, 2014 at 9:51 AM, Andy Turner wrote: > Hi geotools-users, > > I want a method to convert data from a polygon type coverage (data > currently stored in shapefile) to a square celled raster. > > I want something a bit more sophisticated than assigning the value at the > raster cell c

[Geotools-gt2-users] Vector to raster

2014-12-31 Thread Andy Turner
Hi geotools-users, I want a method to convert data from a polygon type coverage (data currently stored in shapefile) to a square celled raster. I want something a bit more sophisticated than assigning the value at the raster cell centroid: The method is to do a form of areal interpolation, taki

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-12-08 Thread Michael Bedward
> doesn't has a null ColorModel. Good grief, I should proof-read before I send :-( -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-12-08 Thread Michael Bedward
Hello Agossa, >  the GridCoverage got from VectorToRasterProcess cannot be resampled or > saved to tif. It has no ColorModel. > What's wrong? Ah, you're quite right. The image backing the output grid coverage doesn't has a null ColorModel. The cause is the flattenXXX methods in VectorToRasterPro

[Geotools-gt2-users] Vector to Raster conversion

2009-10-07 Thread Martin Tomko
>> your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf___ >> Geotools-

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-10-07 Thread Michael Bedward
Yes - sorry about that last post where I referred you to the RasterToVectorProcess class - my brain was in reverse :-( The class you want is, of course, VectorToRasterProcess and its static helper method: process. Here is an example... FeatureCollection features = ... // name of the feature att

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-10-07 Thread Agossa
Hello Michael Thanks for your answer. I am rather talking about the FeatureCollection to Raster conversion using the FeatureRasterizer class. Switching to Geotools 2.6 will give me so much to do. I am using Geotools 2.4. Agossa. mbedward wrote: > > Hello, > > Steve's raster to vector code is n

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-10-06 Thread Michael Bedward
Hello, Steve's raster to vector code is now included in the gt-process module in GeoTools version 2.6. Parts of the code were rewritten while porting it to GeoTools so, if possible, could you try switching to that version and see if you still get the same registration error ? You will need to inc

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-10-06 Thread Agossa
Hello , I am using FeatureRasterizer of Steve Ansari . It is great! Thanks. I have a little problem. I always get a little displacement between the result of the rasterizing and the original Feature on displaying. (See attachment). how can I avoid that? Thank you. FeatureCollection fc=; Gri

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-01-21 Thread jorgearevalo
y modernization >>> capabilities :) >>> >>> If I find bugs along the way I'll try to fix them - progress can be >>> followed >>> at >>> http://ecoinformatics.uvm.edu/crucible/browse/ThinklabGeospacePlugin/org/int >>> egratedmodellin

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-01-20 Thread Michael Bedward
Many thanks for this update Steve, I'll be using your code in the near future :) Michael 2009/1/21 Steve Ansari : > Hello all, > > I received a question about the rasterization code (Features to Grid > Coverage) and upgraded the code to Geotools 2.5.2. I've attached the main > class (FeatureRas

Re: [Geotools-gt2-users] Vector to Raster conversion

2009-01-20 Thread Steve Ansari
rmatics.uvm.edu/crucible/browse/ThinklabGeospacePlugin/org/int >> egratedmodelling/geospace/gis/FeatureRasterizer.java. >> >> Bottom line: Thanks Steve! >> >> Cheers, >> ferdinando >> >> >> -Original Message- >> From: Jody Garnett [mailt

Re: [Geotools-gt2-users] Vector to Raster conversion

2008-04-01 Thread Steve Ansari
AIL PROTECTED] Sent: Tuesday, April 01, 2008 3:28 PM To: Ferdinando Villa Cc: 'Steve Ansari'; geotools-gt2-users@lists.sourceforge.net Subject: Re: [Geotools-gt2-users] Vector to Raster conversion Hey guys; we are setting up a "Process" module in geotools (see this weeks IRC). Afte

Re: [Geotools-gt2-users] Vector to Raster conversion

2008-04-01 Thread Ferdinando Villa
sari'; geotools-gt2-users@lists.sourceforge.net Subject: Re: [Geotools-gt2-users] Vector to Raster conversion Hey guys; we are setting up a "Process" module in geotools (see this weeks IRC). After you do your "testing and modernize" do you want to send it our way? It woudl be great to have

Re: [Geotools-gt2-users] Vector to Raster conversion

2008-04-01 Thread Steve Ansari
Sure thing! At some point I'll be upgrading it for Geotools 2.4+ for use in some other projects. I'll be sure to pass it along at that point. Steve Jody Garnett said the following on 4/1/2008 3:28 PM: > Hey guys; we are setting up a "Process" module in geotools (see this > weeks IRC). After yo

Re: [Geotools-gt2-users] Vector to Raster conversion

2008-04-01 Thread Jody Garnett
Hey guys; we are setting up a "Process" module in geotools (see this weeks IRC). After you do your "testing and modernize" do you want to send it our way? It woudl be great to have examples of different kinds of processes to make sure the API works out okay. Jody ---

Re: [Geotools-gt2-users] Vector to Raster conversion

2008-03-31 Thread Ferdinando Villa
Hi Steve, Thanks so much for contributing this - it's going to save me a lot of work! I'll do some testing and modernize where needed (although I don't see any deprecated geotools methods used in FeatureRasterizer.java) and let the list know. Thanks again, ferdinando --- Ferdinando

[Geotools-gt2-users] Vector to Raster conversion

2008-03-31 Thread Steve Ansari
Hello all, I've worked a little on rasterizing based on Java 2D using Graphics & BufferedImage classes. Initially my need was just to handle Polygon objects, so I have little testing with other Geometry types although they should work (I've tested with LineString and MultiPolygon). I've had