From: Thomas R. H. <tr...@uc...> - 2003-12-30 17:33:42
|
Yes, I agree completely. The thing I wrote was in a separate class, but=20 basically just a quick and dirty solution. I think it would be best to h= ave=20 serialization swappable. -Tom Quoting "Mark R. Diggory" <mdi...@la...>: > Tom, >=20 > On a parallel thought. Wouldn't it be better to have the=20 > (de)serialization of Various spaces be in a separate class than the=20 > space itself? This would allow for saving of spaces into various format= s. >=20 > for example: >=20 > ASCIIReader reader =3D new ASCIIReader(file); > RasterSpace space =3D reader.read(); >=20 > ASCIIWriter writer =3D new ASCIIWriter(file); > writer.write(space); >=20 > ... >=20 > The various writers and readers of independent format could be written=20 > and maintained separately of the actual DataStructure used in memory? >=20 > For example, all my new topology.space library implementation (not yet=20 > in cvs) is not going to contain any code specific to reading or writing= =20 > to file. Eventually I would like to see a separate io library arise for= =20 > the topology.space lib that handles (de)serialization to various storag= e=20 > formats. >=20 > -Mark >=20 > Thomas R. Howe wrote: > > Sorry, I forgot to post this to the list. I wrote a utility to do th= is > last=20 > > night. I'm going to post it to the list as soon as I test it. > >=20 > > -Tom > >=20 > > Quoting "North, Michael" <no...@an...>: > >=20 > >=20 > >>Nick: > >> > >>Yes, this is correct. > >> > >>Mike > >> > >> > >>-----Original Message----- > >>From: rep...@li... > >><rep...@li...> > >>To: Jan Peters-Anders <pet...@gm...>; > >>rep...@li... > >><rep...@li...> > >>Sent: Tue Dec 30 08:17:37 2003 > >>Subject: RE: [Repast-interest] How do I write back a RasterSpace to a= n > ASCII > >>Grid? > >> > >>Hopefully, someone with more repast gis knowledge can add to this, bu= t I > >>think you need to do this manually. It should be fairly easy to itera= te > >>over > >>the RasterSpace and use getValueAt to get the value at a particular x= ,y > >>coordinate. Then write that coordinate to a file. I don't think the E= SRI > >>ASCII grid format is very complicated. > >> > >>Nick > >> > >> > >>>-----Original Message----- > >>>From: rep...@li... > >>>[mailto:rep...@li...]On Behalf Of Jan > >>>Peters-Anders > >>>Sent: Monday, December 29, 2003 11:55 AM > >>>To: rep...@li... > >>>Subject: [Repast-interest] How do I write back a RasterSpace to an A= SCII > >>>Grid? > >>> > >>> > >>> > >>>Hello everybody, > >>> > >>>I hope, I am not asking something which has already been answered a > >>>hundred times, but can anybody tell me if it is possible to write a > >>>RasterSpace back to an ESRI ASCII Grid file? > >>> > >>>Thanks in advance and Happy New Year! > >>> > >>>Jan Peters-Anders > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.net email is sponsored by: IBM Linux Tutorials. > >>>Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > >>>Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > >>>Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dcl= ick > >>>_______________________________________________ > >>>Repast-interest mailing list > >>>Rep...@li... > >>>https://lists.sourceforge.net/lists/listinfo/repast-interest > >>> > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: IBM Linux Tutorials. > >>Become an expert in LINUX or just sharpen your skills. Sign up for I= BM's > >>Free Linux Tutorials. Learn everything from the bash shell to sys ad= min. > >>Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dcli= ck > >>_______________________________________________ > >>Repast-interest mailing list > >>Rep...@li... > >>https://lists.sourceforge.net/lists/listinfo/repast-interest > >> > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: IBM Linux Tutorials. > >>Become an expert in LINUX or just sharpen your skills. Sign up for I= BM's > >>Free Linux Tutorials. Learn everything from the bash shell to sys ad= min. > >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk > >>_______________________________________________ > >>Repast-interest mailing list > >>Rep...@li... > >>https://lists.sourceforge.net/lists/listinfo/repast-interest > >> > >=20 > >=20 > >=20 > > ************************ > > Software Developer > > Social Science Computing Services > > University of Chicago > > ************************ > >=20 > >=20 > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for I= BM's > > Free Linux Tutorials. Learn everything from the bash shell to sys ad= min. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dclick > > _______________________________________________ > > Repast-interest mailing list > > Rep...@li... > > https://lists.sourceforge.net/lists/listinfo/repast-interest >=20 > --=20 > Mark Diggory > Software Developer > Harvard MIT Data Center > http://osprey.hmdc.harvard.edu >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's > Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest >=20 ************************ Software Developer Social Science Computing Services University of Chicago ************************ |