[GRASS-user] About importing VMAP into GRASS... (as shapefiles)

Hi!

I still didn't find a way to import coastlines from the
VMAP data base.

I tried to look after the:

mv: missing destination file operand after `.'

error message but I can't figure it out.

I don't need necessarily to convert into a shapefile.

Anybody that has done it recently? I really need this in
order to convert it to a raster and use it as a MASK.

Thanks,

Nikos.

nikos.alexandris wrote:

I still didn't find a way to import coastlines from the
VMAP data base.

I tried to look after the:

mv: missing destination file operand after `.'

error message but I can't figure it out.

there is a problem within the script. Probably an unset $VARIABLE, or
bad quoting.

"mv" needs two arguments, a 'from' and a 'to' file. If one is a
$VARIABLE and is unset, it is passed blank to the mv command and the mv
command then complains that it didn't get enough info.
(Just a guess, I don't know how the '.' part of the error fits)

I don't need necessarily to convert into a shapefile.

Anybody that has done it recently? I really need this in
order to convert it to a raster and use it as a MASK.

Sorry I haven't read earlier in this thread. Did you try the method
given in Markus's article in GRASS Newsletter vol 3?

An alternate coastline can be obtained by the NOAA coastline extractor.
See the v.in.mapgen help page. Then v.type and v.centroids to make the
line into an area. (boundary+centroid = area)

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

I know the "from" and "to" syntax for the mv command. But I
am not a command line Master! I'm getting confused with
"sed" command.

Anyway,

yes, I am trying Markus' approach (GRASSNews.vol.3).

Both ways no luck.

I will give it a shot with NOAA maybe. Is it high-res?

Thanks.

On Thu, 10 Jan 2008 21:17:04 -0800 (PST)
Hamish <hamish_b@yahoo.com> wrote:

nikos.alexandris wrote:
> I still didn't find a way to import coastlines from the
> VMAP data base.
>
> I tried to look after the:
>
> mv: missing destination file operand after `.'
>
> error message but I can't figure it out.

there is a problem within the script. Probably an unset
$VARIABLE, or
bad quoting.

"mv" needs two arguments, a 'from' and a 'to' file. If
one is a
$VARIABLE and is unset, it is passed blank to the mv
command and the mv
command then complains that it didn't get enough info.
(Just a guess, I don't know how the '.' part of the error
fits)

> I don't need necessarily to convert into a shapefile.
>
> Anybody that has done it recently? I really need this
in
> order to convert it to a raster and use it as a MASK.

Sorry I haven't read earlier in this thread. Did you try
the method
given in Markus's article in GRASS Newsletter vol 3?

An alternate coastline can be obtained by the NOAA
coastline extractor.
See the v.in.mapgen help page. Then v.type and
v.centroids to make the
line into an area. (boundary+centroid = area)

Hamish

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

                        .
         Nikos Alexandris - Ph.D. Candidate
                        .
            Department of Remote Sensing
                       and
            Landscape Information Systems
                     (FeLIS)
                        .
      Faculty of Forestry and Natural Environment
          Albert-Ludwigs-University Freiburg
                        .
            Tel. +49 (0) 761 203 3697
            Fax. +49 (0) 761 203 3701
             Skype: Nikos.Alexandris
                        .
           Address: Tennenbacher str. 4
              D-79106 Freiburg i. Br.
                     Germany
                        .

Fri 11 Jan 2008 06:17, Hamish wrote:

nikos.alexandris wrote:
> I still didn't find a way to import coastlines from the
> VMAP data base.

why not RTFM!? http://www.gdal.org/ogr/drv_ogdi.html

as usual frank warmerdam's doc is fantastic.

> I tried to look after the:
>
> mv: missing destination file operand after `.'
>
> error message but I can't figure it out.

there is a problem within the script.

ACK. i second that. also i never really found the script useful that's
why i never used it. :slight_smile:

on a side note also don't expect VMAP0 data to be (overly) precise. YMMV,
though, depending on the area you are interested.

Thank you guys...

I think I solved it now!

I found in GDAL mailing list following statement:

[...]

It sounds like the case sensitive path issue that bit me a while back.
A lot of vmap data was saved with mixed upper and lower case file
names and
file extentions.
How I got around it is I placed the vmap0 data in a path without
any upper
case letters in it (/home/paul/tmp/vmap0) and ran ogrinfo and
ogr2ogr from
there.

by Paul Surgeon.

So, I just moved the v0eur folder out of my long
folder /home/nik/GeoData/World/VMAP which has a lot of dangerous Capital
letters :wink:

Now I get a decent output when I run:
$ ogrinfo gltp:/vrf/home/nik/v0eur/vmaplv0/eurnasia
'watrcrsl@hydro(*)_line'

Still didn't try to export anything but I think it will be easy since I
don't get any error messages from ogrinfo.

Than you all,

Nikos.

On Fri, 2008-01-11 at 11:02 +0100, sebastian sauer wrote:

Fri 11 Jan 2008 06:17, Hamish wrote:
> nikos.alexandris wrote:
> > I still didn't find a way to import coastlines from the
> > VMAP data base.
why not RTFM!? http://www.gdal.org/ogr/drv_ogdi.html

as usual frank warmerdam's doc is fantastic.

> > I tried to look after the:
> >
> > mv: missing destination file operand after `.'
> >
> > error message but I can't figure it out.
>
> there is a problem within the script.
ACK. i second that. also i never really found the script useful that's
why i never used it. :slight_smile:

on a side note also don't expect VMAP0 data to be (overly) precise. YMMV,
though, depending on the area you are interested.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

BTW,

Markus' scripts do their job (even with the error message!?)

On Fri, 2008-01-11 at 14:29 +0100, Nikos Alexandris wrote:

Thank you guys...

I think I solved it now!

I found in GDAL mailing list following statement:

[...]
> It sounds like the case sensitive path issue that bit me a while back.
> A lot of vmap data was saved with mixed upper and lower case file
> names and
> file extentions.
> How I got around it is I placed the vmap0 data in a path without
> any upper
> case letters in it (/home/paul/tmp/vmap0) and ran ogrinfo and
> ogr2ogr from
> there.

by Paul Surgeon.

So, I just moved the v0eur folder out of my long
folder /home/nik/GeoData/World/VMAP which has a lot of dangerous Capital
letters :wink:

Now I get a decent output when I run:
$ ogrinfo gltp:/vrf/home/nik/v0eur/vmaplv0/eurnasia
'watrcrsl@hydro(*)_line'

Still didn't try to export anything but I think it will be easy since I
don't get any error messages from ogrinfo.

Than you all,

Nikos.

On Fri, 2008-01-11 at 11:02 +0100, sebastian sauer wrote:
> Fri 11 Jan 2008 06:17, Hamish wrote:
> > nikos.alexandris wrote:
> > > I still didn't find a way to import coastlines from the
> > > VMAP data base.
> why not RTFM!? http://www.gdal.org/ogr/drv_ogdi.html
>
> as usual frank warmerdam's doc is fantastic.
>
> > > I tried to look after the:
> > >
> > > mv: missing destination file operand after `.'
> > >
> > > error message but I can't figure it out.
> >
> > there is a problem within the script.
> ACK. i second that. also i never really found the script useful that's
> why i never used it. :slight_smile:
>
>
> on a side note also don't expect VMAP0 data to be (overly) precise. YMMV,
> though, depending on the area you are interested.
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

copy from my mail in GDAL list:
---

Hi GDAL list!

Finally, I accessed (with ogrinfo) and exported successfully into
shapefile (with ogr2ogr) something from the VMAP database.

Although I can see the polbnda polygons for instance, I still don't
understand this error message:

$ ogr2ogr polbnda.shp gltp:/vrf/home/nik/v0eur/vmaplv0/eurnasia
'polbnda@bnd(*)_area'
GET_TABLE_ELEMENT: Invalid field number -1

What does this mean?
---

Anybody got the same error?

On Fri, 2008-01-11 at 14:37 +0100, Nikos Alexandris wrote:

BTW,

Markus' scripts do their job (even with the error message!?)

On Fri, 2008-01-11 at 14:29 +0100, Nikos Alexandris wrote:
> Thank you guys...
>
> I think I solved it now!
>
> I found in GDAL mailing list following statement:
>
> [...]
> > It sounds like the case sensitive path issue that bit me a while back.
> > A lot of vmap data was saved with mixed upper and lower case file
> > names and
> > file extentions.
> > How I got around it is I placed the vmap0 data in a path without
> > any upper
> > case letters in it (/home/paul/tmp/vmap0) and ran ogrinfo and
> > ogr2ogr from
> > there.
>
> by Paul Surgeon.
>
> So, I just moved the v0eur folder out of my long
> folder /home/nik/GeoData/World/VMAP which has a lot of dangerous Capital
> letters :wink:
>
> Now I get a decent output when I run:
> $ ogrinfo gltp:/vrf/home/nik/v0eur/vmaplv0/eurnasia
> 'watrcrsl@hydro(*)_line'
>
> Still didn't try to export anything but I think it will be easy since I
> don't get any error messages from ogrinfo.
>
>
> Than you all,
>
> Nikos.
>
>
> On Fri, 2008-01-11 at 11:02 +0100, sebastian sauer wrote:
> > Fri 11 Jan 2008 06:17, Hamish wrote:
> > > nikos.alexandris wrote:
> > > > I still didn't find a way to import coastlines from the
> > > > VMAP data base.
> > why not RTFM!? http://www.gdal.org/ogr/drv_ogdi.html
> >
> > as usual frank warmerdam's doc is fantastic.
> >
> > > > I tried to look after the:
> > > >
> > > > mv: missing destination file operand after `.'
> > > >
> > > > error message but I can't figure it out.
> > >
> > > there is a problem within the script.
> > ACK. i second that. also i never really found the script useful that's
> > why i never used it. :slight_smile:
> >
> >
> > on a side note also don't expect VMAP0 data to be (overly) precise. YMMV,
> > though, depending on the area you are interested.
> > _______________________________________________
> > grass-user mailing list
> > grass-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany