RE: cannot get r.to.vect to work

5 messages Options
Embed this post
Permalink
Snowdon, Barry B FOR:EX

RE: cannot get r.to.vect to work

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
RE: cannot get r.to.vect to work

Hi folks,

I’m new to GRASS and trying to convert from raster to vector using GRASS 6.3 under VISTA without any success.

The raster I’m trying to convert was originally an ESRI arc ascii that I imported into grass.

It displays okay and has these characteristics

+----------------------------------------------------------------------------+

 | Layer:    pgtsa_lu@PERMANENT             Date: Tue Oct 13 10:44:07 2009    |

 | Mapset:   PERMANENT                      Login of Creator: bbsnowdo        |

 | Location: My_Location                                                      |

 | DataBase: E:/GIS DataBase                                                  |

 | Title:     ( pgtsa_lu )                                                    |

 | Timestamp: none                                                            |

 |----------------------------------------------------------------------------|

 |                                                                            |

 |   Type of Map:  raster               Number of Categories: 99              |

 |   Data Type:    CELL                                                       |

 |   Rows:         4900                                                       |

 |   Columns:      5628                                                       |

 |   Total Cells:  27577200                                                   |

 |        Projection: Albers Equal Area                                       |

 |            N:  1368637.5    S:   878637.5   Res:   100                     |

 |            E:  1393837.5    W:   831037.5   Res:   100                     |

 |   Range of data:    min = 1  max = 99                                      |

 |                                                                            |

 |   Data Description:                                                        |

 |    generated by r.in.arc                                                   |

 |                                                                            |

 |   Comments:                                                                |

 |    r.in.arc input="E:/FAIB/SELES_work/DATABASE/newLocation/PERMANENT/ce\   |

 |    ll/lu.asc" output="pgtsa_lu" type="CELL" mult=1.0                       |

 |                                                                            |

 +----------------------------------------------------------------------------+

But when I run r.to.vect Iget the following message.

r.to.vect input=pgtsa_lu output=lu_poly feature=area --overwrite --verbose

Vector map <lu_poly> already exists and will be overwritten

Extracting areas...

Building topology ...

Registering lines:

0 primitives registered     

Building areas:

0 areas built     

0 isles built

Attaching islands:

Attaching centroids: Topology was built.

Number of nodes     :   0

Number of primitives:   0

Number of points    :   0

Number of lines     :   0

Number of boundaries:   0

Number of centroids :   0

Number of areas     :   0

Number of isles     :   0

r.to.vect complete.

Any help anyone could provide would be greatly appreciated.

Barry Snowdon, RPF

Forest Analysis and Inventory Branch

British Columbia Ministry of Forests and Range

Email:  [hidden email]

Tel:  250-387-3266

Fax:  250-953-3838


_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Markus Neteler

Re: RE: cannot get r.to.vect to work

Reply Threaded More More options
Print post
Permalink
On Thu, Oct 15, 2009 at 6:36 PM, Snowdon, Barry B FOR:EX
<[hidden email]> wrote:
> Hi folks,
>
> I’m new to GRASS and trying to convert from raster to vector using GRASS 6.3
> under VISTA without any success.

Please try GRASS 6.4.0:
http://grass.osgeo.org/grass64/binary/mswindows/native/

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Snowdon, Barry B FOR:EX

RE: RE: cannot get r.to.vect to work

Reply Threaded More More options
Print post
Permalink
Thanks for your reply Markus,

Originally I was trying to use GRASS 6.4.0: r39271-1.  I uninstalled it
and re-install it this morning in case anything has changed.

However, it returned the following error.

r.to.vect -v --overwrite --verbose input=pgtsa_lu@PERMANENT
output=lu_poly@PERMANENT feature=area
Vector map <lu_poly> already exists and will be overwritten
Invalid argument: can't _spawnl
Unable to start driver <dbf>
Unable open database <E:/GIS DataBase/My_Location/PERMANENT/dbf/> by
driver <dbf>
Unable to find table <lu_poly> linked to vector map <lu_poly>
ERROR: Unable to delete vector map <lu_poly>
(Fri Oct 16 09:20:54 2009) Command finished (0 sec)


That's why I tried 6.3.

I noticed quiet a lot of discussion about this "Invalid argument: can't
_spawnl" error or issue including talk of a patch in your September 21
release.  However, it doesn't seem to work on my Vista machine at least.

Once again I'm running Vista.

Any help you could provide would be greatly appreciated.  If there is
any other information you would like me to provide just let me know.

Barry Snowdon, RPF
Forest Analysis and Inventory Branch
British Columbia Ministry of Forests and Range
Email:  [hidden email]
Tel:  250-387-3266
Fax:  250-953-3838
-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf
Of Markus Neteler
Sent: Friday, October 16, 2009 2:40 AM
To: Snowdon, Barry B FOR:EX
Cc: [hidden email]
Subject: Re: [GRASS-windows] RE: cannot get r.to.vect to work

On Thu, Oct 15, 2009 at 6:36 PM, Snowdon, Barry B FOR:EX
<[hidden email]> wrote:
> Hi folks,
>
> I'm new to GRASS and trying to convert from raster to vector using
GRASS 6.3
> under VISTA without any success.

Please try GRASS 6.4.0:
http://grass.osgeo.org/grass64/binary/mswindows/native/

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Markus Neteler

Re: RE: cannot get r.to.vect to work

Reply Threaded More More options
Print post
Permalink
Barry,

On Fri, Oct 16, 2009 at 7:01 PM, Snowdon, Barry B FOR:EX
<[hidden email]> wrote:

> Thanks for your reply Markus,
>
> Originally I was trying to use GRASS 6.4.0: r39271-1.  I uninstalled it
> and re-install it this morning in case anything has changed.
>
> However, it returned the following error.
>
> r.to.vect -v --overwrite --verbose input=pgtsa_lu@PERMANENT
> output=lu_poly@PERMANENT feature=area
> Vector map <lu_poly> already exists and will be overwritten
> Invalid argument: can't _spawnl
> Unable to start driver <dbf>
> Unable open database <E:/GIS DataBase/My_Location/PERMANENT/dbf/> by
> driver <dbf>
> Unable to find table <lu_poly> linked to vector map <lu_poly>
> ERROR: Unable to delete vector map <lu_poly>
> (Fri Oct 16 09:20:54 2009) Command finished (0 sec)
>
>
> That's why I tried 6.3.
>
> I noticed quiet a lot of discussion about this "Invalid argument: can't
> _spawnl" error or issue including talk of a patch in your September 21
> release.  However, it doesn't seem to work on my Vista machine at least.
>
> Once again I'm running Vista.
>
> Any help you could provide would be greatly appreciated.  If there is
> any other information you would like me to provide just let me know.

It appears to be fixed in r39464.
http://trac.osgeo.org/grass/ticket/629#comment:31

So a newer version should help (we still don't have a regular
availability of new versions for Windows unfortunately).

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Markus Neteler

Re: RE: cannot get r.to.vect to work

Reply Threaded More More options
Print post
Permalink
In reply to this post by Snowdon, Barry B FOR:EX
On Fri, Oct 16, 2009 at 6:01 PM, Snowdon, Barry B FOR:EX
<[hidden email]> wrote:
> Thanks for your reply Markus,
>
> Originally I was trying to use GRASS 6.4.0: r39271-1.
...
> Invalid argument: can't _spawnl
> Unable to start driver <dbf>
...
> I noticed quiet a lot of discussion about this "Invalid argument: can't
> _spawnl" error or issue including talk of a patch in your September 21
> release.

A new version has been prepared which apparently (finally!) solves
this "Invalid argument: can't _spawnl" error:

Please update this this new winGRASS package:
http://grass.osgeo.org/grass64/binary/mswindows/native/

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows