[GRASSLIST:5603] Re: [Qgis-user] problem loading grass data in qgis
Radim Blazek
blazek at itc.it
Wed Feb 2 03:36:17 EST 2005
Most probably all the problems are caused by libgrass. libgrass and
GRASS6 have different functions with the same names.
You have probably compiled gdal with libgrass and when the plugin in
QGIS try to call a function from GRASS6 it actually ends up with old
function from libgrass. You have to compile GDAL with GRASS6, i.e. use
--with-grass instead of --with-libgrass.
This should solve
> error_routine (fatal = 1): GISRC - variable not set
and
> ERROR 1: libgrass: Cannot find vector archsites at PERMANENT
it will solve also
> "Cannot read current region: Is invalid line 1|: <-top: |->
but you should know that region file in GRASS6 was extended to 3D
so you cannot read region files created in GRASS6 in GRASS5 or libgrass.
Radim
Jack Varga wrote:
> Sorry if this is inappropriate place to post this, but it was suggested
> I try here on qgis irc.
>
> I have grass60.cvs (approximately one week old) compiled and
> functioning properly (so far from what I've been able to discern). I
> also have qgis 0.6.0 built from source with grass plugin enabled.
> Launching qgis from a shell (not inside grass) works fine until I try to
> load a Grass vector layer, where it crashes with...
>
> error_routine (fatal = 1): GISRC - variable not set
>
> Additional info. If I `export GISRC=~/.grassrc6`
>
> ..which looks like...
>
> $ cat .grassrc6
> GISDBASE: /home/jvarga/GISDATA
> LOCATION_NAME: spearfish57
> MAPSET: PERMANENT
> GRASS_GUI: tcltk
>
> ...and then launch qgis from a shell, I get a (Qt/qgis) warning dialog
> that says...
>
> "Cannot read current region: Is invalid line 1|: <-top: |->
>
> (actually, I get this twice after clicking "ok" first time). I seem to
> still be able to load Grass raster data, but when I try to load grass
> vector data qqis crashes with (shell) error...
>
> ERROR 1: libgrass: Cannot find vector archsites at PERMANENT
>
> Lastly, if I load qgis from within grass shell, I get same Qt/Qgis
> warning dialog from above (Cannot read current region: Is invalid line
> 1|: <-top: |-> ).
>
> Has anyone experienced this behavior? Is there something wrong in my
> .grassrc6 file? Where is the GISRC variable documented?
>
> TIA,
>
> Jack Varga
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qgis-user
More information about the grass-user
mailing list