[Qgis-user] How to create easily and fast an empty vector-layer to use it in Quantum GIS?

Philipp Steigenberger userlist at online.de
Wed Feb 27 04:44:38 PST 2008


Nikos Alexandris schrieb:
> On Wed, 2008-02-27 at 12:43 +0100, Philipp Steigenberger wrote:
>> Nikos,
>> I don't know where this "Create new GRASS Vector"Button is. Maybe it is 
>> cause I use v 0.7.4.
> I think even in earlier versions there was this "button".
> 
>>  ( I tried to install 0.9.1 but got problems with 
>> apt-get install)
> 
> Go to http://download.qgis.org/downloads.rhtml and add the respective
> info to your /etc/apt/sources.list
> 
> But, why don't you give it a shot with latest QGIS. I think using the
> instructions from http://wiki.qgis.org/qgiswiki/Building_with_CMake is
> fairly easy to build from source.
> 
>> How ever.
>> I wrote one day a little script to vectorize points which I select with 
>> d.what.rast
>>
>> using this sript for me seems to be the fastest way to get an "empty" 
>> vector-map which opens in QGIS.
>>
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> #!/bin/sh
>>
>> echo Name of map?
>> read a
>> d.what.rast -t  fs='|' | grep -v '@' | v.in.ascii out=$a
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> So you import an ascii file in QGIS. But if you create a GRASS vector
> your attribute data is automatically linked in GRASS data base (I think
> for all drivers... dbf, sqlite... whatever you work with)
>> cheers
>> Philipp
>>
> Cheers

I tried to install the newer version or to use cmake, but it didnt work.
I busy this days, so there isnt lot of time to go deeper in it. But I 
add the messages I got:

cheers
Philipp


I added the deb line (deb http://debian.gfoss.it/ lenny main)in my 
sources list, but running apt-get update I get:

-----------------------------------------------------------------
W: GPG error: http://debian.gfoss.it lenny Release: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY DC301BCED2016B47
-----------------------------------------------------------------
(Im still using debian etch)



Trying to install qgis I get

-----------------------------------------------------------------
apt-get install qgis
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
   qgis: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch5 is to be installed
         Depends: libfreetype6 (>= 2.3.5) but 2.2.1-5+etch2 is to be 
installed
         Depends: libgcc1 (>= 1:4.2.1) but 1:4.1.1-21 is to be installed
         Depends: libgdal1-1.4.0 but it is not installable
         Depends: libgsl0ldbl (>= 1.9) but it is not installable
         Depends: libpq5 but it is not installable
         Depends: libqt4-core (>= 4.3.3) but 4.2.1-2+etch1 is to be 
installed
         Depends: libqt4-gui (>= 4.3.3) but 4.2.1-2+etch1 is to be installed
         Depends: libqt4-qt3support (>= 4.3.3) but 4.2.1-2+etch1 is to 
be installed
         Depends: libsqlite3-0 (>= 3.4.2) but 3.3.8-1.1 is to be installed
         Depends: libstdc++6 (>= 4.2.1) but 4.1.1-21 is to be installed
         Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.0.2-5 is to be installed
         Depends: zlib1g (>= 1:1.2.3.3.dfsg-1) but 1:1.2.3-13 is to be 
installed
         Depends: libqgis1 but it is not going to be installed
E: Broken packages
-----------------------------------------------------------------


Trying to cmake the packet from source I got following messages.:

The first time:
-----------------------------------------------------------------
root at geo55:/.../qgis_0.9.1# cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Found Proj: /usr/lib/libproj.so
-- Found GEOS: /usr/lib/libgeos.so
-- Found GDAL: /usr/lib/libgdal1.3.2.so
-- Found PostgreSQL: /usr/lib/libpq.so
-- Found Expat: /usr/lib/libexpat.so
FindGSL.cmake: gsl-config not found. Please set it manually. 
GSL_CONFIG=GSL_CONFIG-NOTFOUND
-- Could not find GRASS
CMake Error: Some dependencies were not found!
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.2.1
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
SQLITE3_INCLUDE_DIR
SQLITE3_LIBRARY

-- Configuring done
-----------------------------------------------------------------
No Idea how to set the variables.
No Idea why it don't find GRASS


The second Time

-----------------------------------------------------------------
root at geo55:/.../qgis_0.9.1# cmake .
-- Found Proj: /usr/lib/libproj.so
-- Found GEOS: /usr/lib/libgeos.so
-- Found GDAL: /usr/lib/libgdal1.3.2.so
-- Found PostgreSQL: /usr/lib/libpq.so
-- Found Expat: /usr/lib/libexpat.so
FindGSL.cmake: gsl-config not found. Please set it manually. 
GSL_CONFIG=GSL_CONFIG-NOTFOUND
-- Could not find GRASS
CMake Error: Some dependencies were not found!
-- Found Qt-Version 4.2.1
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
SQLITE3_INCLUDE_DIR
SQLITE3_LIBRARY

-- Configuring done
-----------------------------------------------------------------



More information about the Qgis-user mailing list