[GRASS-dev] GRASS Vector Support

Hi,

I recently installed GRASS 6.4.3 setup for Windows in my machine running Windows 7. However after installation, in GRASS i did not find GRASS vector support for GDAL/OGR. Then i uninstalled GRASS and installed GRASS 6.4.3RC2 through OSGEO4W. Still in OSGEO4W, libraries for GRASS vector support for GDAL/OGR are missing. My requirement is to read GRASS vector data through external Python (Python 2.7). Python bindings for GDAL/OGR are available in OSGEO4W but not GRASS vector bindings. Can anybody help over this problem please?

Cheers, Brian.

what do you mean by no vector support? Can you see vector menu ?

When importing vector using Common Import formats from:
File → Import Vector data
What error are you getting?

···

On Fri, Dec 28, 2012 at 9:36 PM, Brian Sanjeewa Rupasinghe <jinkabs@gmail.com> wrote:

Hi,

I recently installed GRASS 6.4.3 setup for Windows in my machine running Windows 7. However after installation, in GRASS i did not find GRASS vector support for GDAL/OGR. Then i uninstalled GRASS and installed GRASS 6.4.3RC2 through OSGEO4W. Still in OSGEO4W, libraries for GRASS vector support for GDAL/OGR are missing. My requirement is to read GRASS vector data through external Python (Python 2.7). Python bindings for GDAL/OGR are available in OSGEO4W but not GRASS vector bindings. Can anybody help over this problem please?

Cheers, Brian.


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Regards,
Rashad

Hi,

2012/12/28 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:

I recently installed GRASS 6.4.3 setup for Windows in my machine running
Windows 7. However after installation, in GRASS i did not find GRASS vector
support for GDAL/OGR. Then i uninstalled GRASS and installed GRASS 6.4.3RC2
through OSGEO4W. Still in OSGEO4W, libraries for GRASS vector support for
GDAL/OGR are missing. My requirement is to read GRASS vector data through
external Python (Python 2.7). Python bindings for GDAL/OGR are available in
OSGEO4W but not GRASS vector bindings. Can anybody help over this problem
please?

it's question for GDAL/OGR OSGeo4W package maintainer [1].
`gdal-grass` package in OSGeo4W framework hasn't been updated for a
long time [2].

Martin

[1] http://trac.osgeo.org/osgeo4w/wiki/pkg-gdal
[2] http://download.osgeo.org/osgeo4w/release/grass/gdal-grass/

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Fri, Dec 28, 2012 at 5:06 PM, Brian Sanjeewa Rupasinghe
<jinkabs@gmail.com> wrote:

Hi,

I recently installed GRASS 6.4.3 setup for Windows in my machine running
Windows 7. However after installation, in GRASS i did not find GRASS vector
support for GDAL/OGR.

You need the GDAL-GRASS plugin (!) to be installed as well.

While I am not too familiar with it on OSGeo4W, I do not
see it listed here:
http://download.osgeo.org/osgeo4w/versions.html

The page of compilation is
http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin

Markus

I used OSGEO4W to install GRASS. But gdal_grass bindings are not listed there. Please let me know how to compile this plug_in from the binaries from http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin.

On Fri, Dec 28, 2012 at 9:49 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Dec 28, 2012 at 5:06 PM, Brian Sanjeewa Rupasinghe
<jinkabs@gmail.com> wrote:

Hi,

I recently installed GRASS 6.4.3 setup for Windows in my machine running
Windows 7. However after installation, in GRASS i did not find GRASS vector
support for GDAL/OGR.

You need the GDAL-GRASS plugin (!) to be installed as well.

While I am not too familiar with it on OSGeo4W, I do not
see it listed here:
http://download.osgeo.org/osgeo4w/versions.html

The page of compilation is
http://grasswiki.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin

Markus

I need to automate some GRASS functions in my research work. If there is a possibility to build gdal_grass plugin for Windows it is highly appreciated. Even the Python scripts that call GRASS functions from outside for MS_Windows do not connect with GRASS even though the instructions provided in the GRASS wiki is followed. I have posted this problem in grass-windows forum and finally advised me to bring the problem down to grass-dev list.

On Sat, Dec 29, 2012 at 2:28 AM, Jürgen E. <jef@norbit.de> wrote:

Hi Markus,

On Fri, 28. Dec 2012 at 21:33:47 +0100, Markus Neteler wrote:

please apologize for a direct question:

Would it be possible for you to compile
http://download.osgeo.org/osgeo4w/release/grass/gdal-grass/
against the current OSGeo4W?

Um, claiming that’s it’s impossible, would be a lie.

But I don’t maintain GRASS in OSGeo4W anymore - and QGIS, which I originally
built GRASS and the GDAL GRASS plugin for, doesn’t need GRASS support in GDAL
anymore. Therefore the old package is unmaintained and is marked obsolete.

Martin Landa took over GRASS maintenance in OSGeo4W - maybe he has more
interest in building the plugin…

Jürgen


Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de


norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

Hi,

2012/12/29 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:

Martin Landa took over GRASS maintenance in OSGeo4W - maybe he has more
interest in building the plugin...

I put it to my TODO list. Unfortunately there are many other things
which are more urgent. Sorry. Is there anyone in grass-dev ML who is
interested to update gdal-grass osgeo4w package? Then I will happily
uploaded to the osgeo4w framework.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Markus,

As Martin requested will you be able to update gdal-grass osgeo4W package? If not, i will be
able to do it provided you support me because i do not have any experience in creating packages.

On Sat, Dec 29, 2012 at 4:19 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2012/12/29 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:

Martin Landa took over GRASS maintenance in OSGeo4W - maybe he has more
interest in building the plugin…

I put it to my TODO list. Unfortunately there are many other things
which are more urgent. Sorry. Is there anyone in grass-dev ML who is
interested to update gdal-grass osgeo4w package? Then I will happily
uploaded to the osgeo4w framework.

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Brian,

On Sat, 29. Dec 2012 at 10:58:19 +0530, Brian Sanjeewa Rupasinghe wrote:

I need to automate some GRASS functions in my research work. If there is a
possibility to build gdal_grass plugin for Windows it is highly
appreciated. Even the Python scripts that call GRASS functions from
outside for MS_Windows do not connect with GRASS even though the
instructions provided in the GRASS wiki is followed. I have posted this
problem in grass-windows forum and finally advised me to bring the problem
down to grass-dev list.

And you are positive that the GDAL plugin would help? The above description
sounds like a more general problem and I don't see any connection to the
missing plugin at all.

Does GRASS itself need the GDAL GRASS plugin at all?

Jürgen

--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

Hi,

2012/12/29 Jürgen E. <jef@norbit.de>:

And you are positive that the GDAL plugin would help? The above description
sounds like a more general problem and I don't see any connection to the
missing plugin at all.

Does GRASS itself need the GDAL GRASS plugin at all?

no, GRASS doesn't not need GDAL compiled with GRASS support. No GRASS
module depends on it. Otherwise we would maintain gdal-grass plugin
for OSGeo4W. Anyway it would be good idea to maintain it, personally I
could find time for that later, but not now.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2012/12/29 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:

As Martin requested will you be able to update gdal-grass osgeo4W package?
If not, i will be
able to do it provided you support me because i do not have any experience
in creating packages.

I didn't request anything. I just said that I had no time at this
moment to update this package. If you send me updated package I will
happily upload it to the osgeo4w framework (having permission for that
as a maintainer of grass and grassXX-dev packages).

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

Sorry for sticking on this question because i badly need gdal-grass plugin in Windows.
I downloaded gdal-grass-1.5.4.tar.bz2 and unpacked it in c:\osgeo4w\usr\src
with MSYS console. After unpacking it, i find two dll files; gdal_grass and ogr_grass in c:\osgeo4w\usr\src\bin\gdalplugins path. Any idea of compiling now this in OSGEO4W?

Cheers, Brian.

On Sun, Dec 30, 2012 at 2:20 AM, Martin Landa <landa.martin@gmail.com> wrote:

2012/12/29 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:

As Martin requested will you be able to update gdal-grass osgeo4W package?
If not, i will be
able to do it provided you support me because i do not have any experience
in creating packages.

I didn’t request anything. I just said that I had no time at this
moment to update this package. If you send me updated package I will
happily upload it to the osgeo4w framework (having permission for that
as a maintainer of grass and grassXX-dev packages).

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Sun, Dec 30, 2012 at 9:09 AM, Brian Sanjeewa Rupasinghe
<jinkabs@gmail.com> wrote:

Hi,

Sorry for sticking on this question because i badly need gdal-grass plugin
in Windows.

Your scope is to read GRASS data through GDAL/OGR? No way to read
them through GRASS itself (and its new Python API in GRASS 7)?

I downloaded gdal-grass-1.5.4.tar.bz2 and unpacked it in c:\osgeo4w\usr\src
with MSYS console. After unpacking it, i find two dll files; gdal_grass and
ogr_grass in c:\osgeo4w\usr\src\bin\gdalplugins path. Any idea of compiling
now this in OSGEO4W?

They *are* the compiled binary files. Just outdated and hence likely
not compliant with the other current OSGeo4W DLLs.

The source code is here:
http://download.osgeo.org/gdal/
-> gdal-grass-1.4.3.tar.gz
but I believe that it should be better extracted again from the master
GDAL package.

Markus