Re: [Geotools-gt2-users] world file

2011-05-29 Thread Michael Bedward
Hello Robert, If the image is parallel to the lat-lon grid (ie. no rotation) the world file is simply: width in degrees / width in pixels 0.0 0.0 - ( height in degrees / height in pixels ) upper left pixel centre X-ordinate upper left pixel centre Y-ordinate But perhaps I don't understand your q

Re: [Geotools-gt2-users] SocketException being thrown after a number of consecutive PostGIS queries

2011-05-29 Thread Gerson Galang
Thanks a lot for your advice Andrea, Adding "params.put(VALIDATECONN.key, Boolean.TRUE);" seems to have done the trick. Cheers, Gerson On 05/27/2011 04:52 PM, Andrea Aime wrote: > On Fri, May 27, 2011 at 4:48 AM, Gerson Galang wrote: >> Hi again, >> >> I've written a portlet that needs to perf

Re: [Geotools-gt2-users] having trouble with an IOException.

2011-05-29 Thread Jody Garnett
I don't know that part of the code well enough to answer your question; however now your email has enough information that hopefully someone can help you. -- Jody Garnett On Monday, 30 May 2011 at 1:34 AM, robert benjamin shimirwa wrote: > > thanks jody, in fact i think it can be caused by a

Re: [Geotools-gt2-users] having trouble with an IOException.

2011-05-29 Thread robert benjamin shimirwa
thanks jody, in fact i think it can be caused by a postgresql exception primary key value duplicated... but the key is specified to be a serial type in the database and it does not appear in the feature schema. does it auto increment or some like that?? i'm still confused a bit... here is the

Re: [Geotools-gt2-users] having trouble with an IOException.

2011-05-29 Thread Jody Garnett
Your code looks fine; I am afraid you cut off the interesting bit of the stack trace; somewhere in there it should say "caused by" which would give us a clue about what actually occurred? -- Jody Garnett On Sunday, 29 May 2011 at 11:34 PM, robert benjamin shimirwa wrote: > hello everyone, >

Re: [Geotools-gt2-users] Precision and scale from a real field in a shape file

2011-05-29 Thread Larry Reeder
Since field length and degrees of precision are all stored in the DBF part of the shapefile, one approach is to use the low-level GeoTools classes DbaseFileReader, and DbaseFileWriter to parse and update the DBF file. Both of those classes make use of a utility class called DbaseFileHeader with me

Re: [Geotools-gt2-users] Oracle spatial plugin - WARNING: No mapping for com.vividsolutions.jts.geom.Point

2011-05-29 Thread Jiri Novak
Thank you very much, with your code I manage the geometry column gets exported as well! Nevertheless, the same warning still appears for each geometry I try. Any idea why? Is posible to get rid of it? Jiri -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Oracle-spatial-pl

[Geotools-gt2-users] having trouble with an IOException.

2011-05-29 Thread robert benjamin shimirwa
hello everyone, there's one java.io.IOException that is frustrating me soo much!! i have a postGIS table that contains features, and I'd like to add some more. i do get the featureType of that table and construct new features that i wish to add. when i do get some features from the table and se

Re: [Geotools-gt2-users] how to write on shapefile...(Program)

2011-05-29 Thread robert benjamin shimirwa
hi sayyed, try to give more explanation, about new capabilities you'd like to add,... and about the program, i can direct you into the CSV2SHP sample code that you'll find easily in the user guide. maybe it'll help. Date: Sun, 29 May 2011 17:57:35 +0530 From: sayyedghaz...@gmail.com To: geotool

[Geotools-gt2-users] how to write on shapefile...(Program)

2011-05-29 Thread sayyed ghazali
hello Dear, i have shape files , i want to add certain things, how to write a code for writing in a shape file...do you have the program for that.to write in a existing shapefile plz let me know -- vRan

Re: [Geotools-gt2-users] Oracle spatial plugin - WARNING: No mapping for com.vividsolutions.jts.geom.Point

2011-05-29 Thread Andrea Aime
On Sun, May 29, 2011 at 2:16 AM, Jiri Novak wrote: > Based on pieces of advice I found in other threads of this email list I > managed to export to PostGIS without any problem. Nevertheless, when I > change my dependencies back to oracle libraries, I manage to get exported > all of the attributes