[Geotools-gt2-users] ArcSDE filter on shape

2008-07-09 Thread Manfred PAUL
Hi, is there a possibility to do something like this: select... where shape.length > 2000 with a geotools filter? Regards Manfred - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that

[Geotools-gt2-users] ArcSDE Problem

2008-07-09 Thread Manfred PAUL
Hi, im am using geotools with an arcsde 9.2, but since version 2.4.4 (maybe 2.4.2, cause 2.4.1 works) i can't get a connection to my database. I tested also with 2.4.4 but the result is still the same: 9 juil. 2008 20:28:14 org.geotools.arcsde.data.ArcSDEAttributeReader hasNext GRAVE: Error fet

Re: [Geotools-gt2-users] problem adding attributes to shapefile version 2.5

2008-07-09 Thread bdo
Your're right about the jar file. It was a jar file issue. I removed three commons jar files (codec, collections, logging) in the application WEB-INF/lib that were probably conflicting with the versions from the geotools M2 library. Once I removed them, the attribute addition code worked fine. J

Re: [Geotools-gt2-users] problem adding attributes to shapefile version 2.5

2008-07-09 Thread bdo
I tried the builder.add(AttributeTypeFactory.newAttributeType("stringProperty", String.class, true, 10) like you suggested and I still didn't have success. Knowing from your reply that it works for you, I checked my system as I figured it had to be somethere there. I found three commons* jar files

[Geotools-gt2-users] Bug in DataUtilities & how to get bugs fixed

2008-07-09 Thread Jody Garnett
I agree this sounds like a bug; can you give me an idea what version you found this in? I am hoping 2.5.M2 :-) I am hoping to @deprecate many of the methods in DataUtilities because the new feature model is so much easier to use. I would like to ask if you are available to test this fix? Or if

Re: [Geotools-gt2-users] problem adding attributes to shapefile version 2.5

2008-07-09 Thread Jody Garnett
Interesting; shapefile has the concept of a maximum string length (I think it may be 256 characters?). As such when you call .createSchema it actually makes a new FeatureType with all these restrictions represented. The restriction on string length is represented as something like "length(strin

Re: [Geotools-gt2-users] GeoTools 2.5 -- Shapefile creation

2008-07-09 Thread Jody Garnett
Could you use the ShapefileDataStore as is? As far as I know the ShapefileWriter is an internal class? There is an example in the user guide here: - http://docs.codehaus.org/display/GEOTDOC/05+How+to+Write+a+Shapefile Cheers, Jody Antoine Weber wrote: > Hello everyone, > > first of all excuse m

Re: [Geotools-gt2-users] problem adding attributes to shapefile version 2.5

2008-07-09 Thread Matt Foster
I'm not sure why the code you have isn't working. It looks like it should. When I have created simple features to go into a shapefile in the past, I have used AttributeTypeFactory for the attributes. Perhaps you could see if the following works to add the String attribute... builder.add(Att

[Geotools-gt2-users] GeoTools 2.5 -- Shapefile creation

2008-07-09 Thread Antoine Weber
Hello everyone, first of all excuse my poor english, I'm a french student and I have to develop a plug-in to an existing java application named GenExp. The purpose of my work is to add an export plugin in order to create .shp and .shx Shapefiles. So I tried with the class ShapefileWriter to do so

[Geotools-gt2-users] problem adding attributes to shapefile version 2.5

2008-07-09 Thread bdo
Hi, I am a new user to geotools and am using the 2.5M2 version. (Thank you for the great tool and documention). I've successfully created a shapefile of points but am having problems when trying to include additional attributes. I'm using the SimpleFeatureTypeBuilder. SimpleFeatureTypeBuilder b

Re: [Geotools-gt2-users] Geonames, First Time

2008-07-09 Thread Michael Bedward
nope - the scope was the only problem with that bit 2008/7/9 fx5900 <[EMAIL PROTECTED]>: > > Oh, also, is there anything i need to add in the repository tag corresponding > to geonames? > - Sponsored by: SourceForge.net Commu

Re: [Geotools-gt2-users] Geonames, First Time

2008-07-09 Thread fx5900
Oh, also, is there anything i need to add in the repository tag corresponding to geonames? Michael Bedward wrote: > > Hi Luong, > > In your pom.xml change the lines that have: > test > > to this: > compile > > or if you like you can just delete them because compile is the > default. The sco

Re: [Geotools-gt2-users] Geotools cannot parse EPSG:102067 from esri.properties

2008-07-09 Thread Jan Jezek
Hello Jaroslav, if you would like to use coordinate reference system based on Krovak you can use EPSG definition (EPSG:2065). The ESRI definition doesn't work right now. The problem is that there are many Krovak definition and everyone is using different names for parameters and sometimes it is