The error is there because the original FeatureType did not have any CRS information; that is why we are calling forceCRS (in order to account for the mistake on the line before).
Jody >> Andrea... I always get the error, but now the .prj file is not empty any >> more... I get the good information in... >> strange to have the error message in this case ! >> > > Good to hear, even if I don't understand why the error is still there. > Andrea > > > >> Thanks for your help ! >> Thomas >> >> >> ________________________________ >> >>> Date: Wed, 2 Apr 2008 10:22:27 +0200 >>> >> >>> From: [EMAIL PROTECTED] >>> CC: [email protected] >>> Subject: Re: [Geotools-gt2-users] Writing a Shapefile >>> >>> >>>> re-Hello Andrea... >>>> What do you mean by multi* geometries and what do I have to modify ? >>>> >>> Try to put MultiPoint in the creation of the schema and then you will >>> have also to really create multipoints when you create the >>> featurecollection geometries. I hope I'm not making you lose your >>> time, but it should be just a change more or less from: >>> >>> geometryFactory.createPoint(coordinate) >>> >>> to >>> >>> geometryFactory.createMultiPoint(new Point[]{coordinate}) >>> >>> Andrea >>> >>> >>> >>>> Thanks, >>>> Thomas >>>> >>>> >>>> ________________________________ >>>> >>>>> Date: Wed, 2 Apr 2008 10:03:14 +0200 >>>>> >>>> >>>>> From: [EMAIL PROTECTED] >>>>> CC: [email protected] >>>>> Subject: Re: [Geotools-gt2-users] Writing a Shapefile >>>>> >>>>> Hi Thomas, >>>>> is it possible that Shapefiles support only the Multi* geometries? >>>>> Could you try that and confirm the error is the same? >>>>> It is somethiong I had to fight with in the past. I know it doesn't >>>>> seem to be realted to the error, but this sometimes happens. >>>>> >>>>> Andrea >>>>> >>>>> >>>>> >>>>> On Wed, Apr 2, 2008 at 9:57 AM, Thomas Bonavia >>>>> >> <[EMAIL PROTECTED]> >> >>>> wrote: >>>> >>>>>> Hi Andrea, >>>>>> >>>>>> I think it is good ... >>>>>> This is mt getSensorSiteType()... if youo want to check ;-) : >>>>>> >>>>>> try{ >>>>>> return DataUtilities.createType(identifier, >>>>>> "the_geom:Point,Name:String,TElev:Double"); >>>>>> }catch(SchemaException se){ >>>>>> se.printStackTrace(); >>>>>> } >>>>>> return null; >>>>>> >>>>>> Thomas >>>>>> >>>>>> >>>>>> >>>>>> ________________________________ >>>>>> >>>>>>> Date: Wed, 2 Apr 2008 09:31:49 +0200 >>>>>>> From: [EMAIL PROTECTED] >>>>>>> >>>>>> >>>>>>> CC: [email protected] >>>>>>> Subject: Re: [Geotools-gt2-users] Writing a Shapefile >>>>>>> >>>>>>> Hi Thomas, >>>>>>> it all seems to be good. Only thing I can think of is some odd >>>>>>> behaviour in SensorSiteStation.getSensorSiteType(), which I do not >>>>>>> know what it gives back. >>>>>>> Sure about the proper schema creation? >>>>>>> >>>>>>> Andrea >>>>>>> >>>>>>> >>>>>>> On Wed, Apr 2, 2008 at 9:02 AM, Thomas Bonavia >>>>>>> >>>> <[EMAIL PROTECTED]> >>>> >>>>>> wrote: >>>>>> >>>>>>>> Hi Jody, >>>>>>>> >>>>>>>> Thanks for your answer... >>>>>>>> I changed the order of the two lines and looked at the return of >>>>>>>> CRS.decode(). >>>>>>>> I got this : >>>>>>>> >>>>>>>> EPSG CODE = GEOGCS["WGS 84", >>>>>>>> DATUM["World Geodetic System 1984", >>>>>>>> SPHEROID["WGS 84", 6378137.0, 298.257223563, >>>>>>>> >>>> AUTHORITY["EPSG","7030"]], >>>> >>>>>>>> AUTHORITY["EPSG","6326"]], >>>>>>>> PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], >>>>>>>> UNIT["degree", 0.017453292519943295], >>>>>>>> AXIS["Geodetic latitude", NORTH], >>>>>>>> AXIS["Geodetic longitude", EAST], >>>>>>>> AUTHORITY["EPSG","4326"]] >>>>>>>> >>>>>>>> But still have : >>>>>>>> >>>>>>>> 2 avr. 2008 08:59:56 >>>>>>>> >> org.geotools.data.shapefile.ShapefileDataStore >> >>>>>>>> createSchema >>>>>>>> >>>>>>>> ATTENTION: PRJ file not generated for null >>>>>>>> >> CoordinateReferenceSystem >> >>>>>>>> Is there another thing I can try ? >>>>>>>> Thomas >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ________________________________ >>>>>>>> >>>>>>>>> Date: Tue, 1 Apr 2008 12:24:18 -0700 >>>>>>>>> From: [EMAIL PROTECTED] >>>>>>>>> To: [EMAIL PROTECTED] >>>>>>>>> CC: [email protected] >>>>>>>>> Subject: Re: [Geotools-gt2-users] Writing a Shapefile >>>>>>>>> >>>>>>>>> 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 be >>>> >>>>>>>>> you forgot to include epsg-hsql in your classpath? >>>>>>>>> >>>>>>>>>> Somebody gets an idea to fix this problem ? >>>>>>>>>> Thanks, >>>>>>>>>> >>>>>>>>> Have fun, >>>>>>>>> Jody >>>>>>>>> >>>>>>>> ________________________________ >>>>>>>> Plus de 15 millions de français utilisent Windows Live Messenger >>>>>>>> >> ! >> >>>>>>>> Téléchargez Messenger, c'est gratuit ! >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------- >> >>>>>>>> Check out the new SourceForge.net Marketplace. >>>>>>>> It's the best place to buy or sell services for >>>>>>>> just about anything Open Source. >>>>>>>> >>>>>>>> >>>>>>>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>>>>>>> _______________________________________________ >>>>>>>> Geotools-gt2-users mailing list >>>>>>>> [email protected] >>>>>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >> ------------------------------------------------------------------------- >> >>>>>>> Check out the new SourceForge.net Marketplace. >>>>>>> It's the best place to buy or sell services for >>>>>>> just about anything Open Source. >>>>>>> >>>>>>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>>>>>> _______________________________________________ >>>>>>> Geotools-gt2-users mailing list >>>>>>> [email protected] >>>>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>>>>> >>>>>> ________________________________ >>>>>> Tous vos amis discutent sur Messenger, et vous ? Téléchargez >>>>>> >> Messenger, >> >>>>>> c'est gratuit ! >>>>>> >>>>>> >> ------------------------------------------------------------------------- >> >>>>>> Check out the new SourceForge.net Marketplace. >>>>>> It's the best place to buy or sell services for >>>>>> just about anything Open Source. >>>>>> >>>>>> >>>>>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>>>>> _______________________________________________ >>>>>> Geotools-gt2-users mailing list >>>>>> [email protected] >>>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>>>> >>>>>> >>>>>> >>>>> >> ------------------------------------------------------------------------- >> >>>>> Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services for >>>>> just about anything Open Source. >>>>> >>>>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>>>> _______________________________________________ >>>>> Geotools-gt2-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>>> >>>> ________________________________ >>>> Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, >>>> >> c'est >> >>>> gratuit ! >>>> >>>> >> ------------------------------------------------------------------------- >> >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services for >>>> just about anything Open Source. >>>> >>>> >>>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>>> _______________________________________________ >>>> Geotools-gt2-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> >>> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >>> _______________________________________________ >>> Geotools-gt2-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >> ________________________________ >> Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger, >> c'est gratuit ! >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
