Jody, Well you were right at first about the attributes. I had a bug in my own code causing the NullPointerException, but after I had fixed this and checked my own attributes to be sure I still got the same error on the same line in the Geotools code.
So I gave up and I have solved my problem by using a commercial tool... :( Therefore I will not continue to try to solve this problem, but I have attached my class so that others can replicate the potential bug I ran into. It works as follows: GISFeatures gisFeatures = new GISFeatures(URL MultiPointShapeURL); gisFeatures.process(); gisFeatures.writeConvertedFeatures(ConvertMode.TO_POINT, File newShapeFile); Good luck! Jeroen -----Original Message----- From: Jody Garnett [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 12:46 AM To: Jeroen van Dijk Cc: [email protected] Subject: Re: [Geotools-gt2-users] Problem when converting MULTIPOINT to POINT shapes Jeroen van Dijk wrote: > Hi Jody, > > Thanks for your reply. I will check on attributes, i guess you are right. > I hope so - if it is not you have probably found a bug :-) > So when you say shapefile only support MultiLineString, MultiPolygon and MultiPoint what exactly do you mean? Do you mean GeoTools does not support it? > GeoTools does not yet have curve support; let me check your link and see what manner of geometries shapefile is supposed to support ... I see your point; and apparently I am mistaken. Since I did not write the shapefile code I imagine it will be fine :-) That said I do not see much scary in that page you linked to. Some interesting support for M (measurement?) > I understand from http://en.wikipedia.org/wiki/Shapefile that a shapefile has a lot more shapetypes than the one you mention so can you explain yourself a bit more? > > Jeroen > > > -----Oorspronkelijk bericht----- > Van: Jody Garnett [mailto:[EMAIL PROTECTED] > Verzonden: za 21-4-2007 1:39 > Aan: Jeroen van Dijk > CC: [email protected] > Onderwerp: Re: [Geotools-gt2-users] Problem when converting MULTIPOINT to POINT shapes > > Hi Jeroen - it sounds like one of your attributes is null! > > Also note that shapefile only supports MultiLineString, MultiPolygon and > MultiPoint ... > > Jody > > Jeroen van Dijk wrote: > > >
GISFeatures.java
Description: GISFeatures.java
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
