[GRASS5] Re: [Fwd: ArcInfo ungenerate]
Malcolm Blue
mblue at nb.sympatico.ca
Tue Apr 24 07:03:15 EDT 2001
Markus,
I think that GENERATE format can include commas. The following quote is from a
response on the ESRI knowledge base describing how to create a GENERATE file from
INFO:
'The output file created will be used with the GENERATE
command, which will read commas as field delimiters. '
It appears either space or comma can be used.
HTH,
Malcolm
Markus Neteler wrote:
> Hi developers,
>
> Seppo Kaitala has found some ungenerate/v.in.arc problems related
> to the famous "coastline extractor":
> http://rimmer.ngdc.noaa.gov/coast/
>
> Question is if we should modify v.in.arc a bit to accept comma delimited
> coordinate pairs in ungen format. Of course the sed trick is feasible,
> but not to be expected from the average user. Myself, I am not sure if
> comma delimiter are allowed in ungenerate format.
>
> See details below.
>
> Regards
>
> Markus
>
> On Tue, Apr 24, 2001 at 09:14:23AM +0300, Seppo Kaitala wrote:
> > Hi Markus
> > That is what I got.
> >
> > Best Regards
> > Seppo
>
> > Travis Stevens wrote:
> > >
> > > Hello Seppo Kaitala,
> > >
> > > Although my knowledge of ArcInfo is not great, my sources tell me that the
> > > comma delimeter is the proper format for ArcInfo ungenerate file format;
> > > therefor I will keep the ArcInfo format the way it is. However, if you
> > > work on a unix type operating system, here is a simple command to make the
> > > comma delimter a space delimeter:
> > >
> > > cat oldfile.dat | sed -e ' s/,/ /g ' > newfile.dat
> > >
> > > oldfile.dat is the downloaded file from the coastline extracter and
> > > newfile.dat is a newfile that has the commas replaced with spaces.
> > >
> > > If you use Microsoft Windows or a Mac, then I suggest some kind of text
> > > editor that has search and replace functionality.
> > >
> > > If you use any other type of operating system, then I am sorry that I
> > > cannot help you.
> > >
> > > If you have any more questions, please feel free to contact me.
> > > -Travis
> > >
> > > > Dear Travis Stevens
> > > >
> > > > I am happy to have the possibility to use your excellent coastline
> > > > extractor service.
> > > >
> > > > However, when I am extracting the data in ArcInfo ungenerate file format
> > > > I get the data in format
> > > >
> > > > > >
> > > > > > 1
> > > > > > 20.899230,50.000000
> > > > > > 20.899447,50.001083
> > > > > > 20.899154,50.004016
> > > > > > 20.899740,50.006950
> > > > > > 20.900327,50.009883
> > > > > > 20.900327,50.012817
> > > > > >
> > > >
> > > > I was informed, that actually comma separator should not be there but
> > > > space.
> > > > That causes some trouble, when I am loading data into GRASS GIS
> > > > software.
> > > >
> > > > If that is a mistake, could you please correct it.
> > > >
> > > > Best Regards
> > > >
> > > > Seppo Kaitala
> > > >
> > > > Merentutkimuslaitos, PL 33 (Lyypekinkuja 3), 00931 Helsinki
> > > > Institute of Marine Research, PO Box 33, FIN-00931 Helsinki, Finland
> > > > tel. +358-9-613941 fax +358-9-6857 638
>
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list