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

2008-04-01 Thread Steve Ansari
Thanks Ferdinando! It looks great. Steve Ferdinando Villa said the following on 4/1/2008 4:18 PM: Actually Steve's code works beautifully and does not seem to require much modernization! I haven't tested it with a subsampled envelope yet, but it spits out 4000x2000 rasters from big shapefiles

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

2008-04-01 Thread Ferdinando Villa
Actually Steve's code works beautifully and does not seem to require much modernization! I haven't tested it with a subsampled envelope yet, but it spits out 4000x2000 rasters from big shapefiles in seconds. I only commented out some (not all) debug printouts and added a function to produce a GridC

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] Learning Geotools

2008-04-01 Thread Jody Garnett
[EMAIL PROTECTED] wrote: > I am new to Geotools and starting to go through all of the samples and > tutorials that I find in the user guide. I have run into a bit of an > issue when I try to look at various shape files using ShapeLab. > Fairly often when I select a shape file to view I get num

Re: [Geotools-gt2-users] Writing a Shapefile

2008-04-01 Thread Jody Garnett
Thomas Bonavia wrote: > myData.forceSchemaCRS(CRS.decode("EPSG:4326")); > myData.createSchema(SensorSiteStation.getSensorSiteType()); Can you reverse these two lines please? Also you may want to check that CRS.decode actually returned something other than *null* - it could

Re: [Geotools-gt2-users] [Geotools-devel] trying to do a program that I get one shapefile and show in a Jframe

2008-04-01 Thread Jody Garnett
Martin; this is another example of some unpacking all the geotools jars and expecting them to work. We really need to either: - bundle a single epsg jar with the download pack (and make the others part of an optional download); or - add in some kind of check so that only one epsg jar is used. Fe

Re: [Geotools-gt2-users] Exception while inserting Timestamps into database

2008-04-01 Thread Jody Garnett
iweinzierl wrote: > Hello @ all, > > I am trying to insert some timestamps into a postgreSQL database. But the > geotools are throwing an exception while commiting my inserts. > I have read some tutorials about it and followed a describtion of the sun > forum. But still an exception. > I think ther

Re: [Geotools-gt2-users] Need Help

2008-04-01 Thread Jody Garnett
You can't; have a look at what JMapPane does (it uses a renderer of some sort to render to the swing pane's graphics 2d). When you get a graphics 2d from your printer you can use the same technology. You could try "calling the swing components paint method directly (I have printed out "screen s

[Geotools-gt2-users] Writing a Shapefile

2008-04-01 Thread Thomas Bonavia
Hello, I am currently trying to create a shapefile from a MemoryDataStore. I followed this link : http://docs.codehaus.org/display/GEOTDOC/05+How+to+Write+a+Shapefile But actually I got a problem. GT says that when I write the spafile : "1 avr. 2008 16:26:56 org.geotools.data.shapefile.Shapefile

[Geotools-gt2-users] Exception while inserting Timestamps into database

2008-04-01 Thread iweinzierl
Hello @ all, I am trying to insert some timestamps into a postgreSQL database. But the geotools are throwing an exception while commiting my inserts. I have read some tutorials about it and followed a describtion of the sun forum. But still an exception. I think there was a bug, similar to my pro

Re: [Geotools-gt2-users] Error Reading GeoTiff

2008-04-01 Thread Robert Stones
Still having problems reading Geotiffs - Using gt-2.5.0m jar downloaded from Sourceforge no luck my code CoordinateReferenceSystem crs = null; File tiffFile = new File("geotiff_format.tif"); AbstractGridCoverage2DReader rdr = null; rdr = new GeoTiffReader(tiffFile); crs = rdr.getCrs(); Refer