Re: [Qgis-user] red-lining / annotations plugin ?

2007-12-07 Thread Martin Dobias
On Dec 7, 2007 3:01 PM, Tim Sutton [EMAIL PROTECTED] wrote:
  In fact you can use QGIS project files to save plugin-specific data
  for a plugin - see QgsProject class. In case you'd like to be able to
  use one set of annotation for different project it would be wiser to
  save them separately - in a file or a database. Using files for saving
  annotations (e.g. with python serialization) should be easier to use
  for user as they won't need to set up a database/table for them etc.
  And actually user would expect that annotation plugin should work also
  without postgres database.

 There is also the option of using the SQLite3  qgis.db which gets
 installed into every users ~/.qgis/ directory.

Hi,

that's true, however access to this database is not encapsulated by
QGIS API so far, thus it would be a bit rough to use...

Martin
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] shape file

2007-12-07 Thread Tim Sutton
Hi

Yes I think my patch will check both before and after. Don't worry
about your English I can understand you fine :-)

Regards

Tim

2007/12/7, alexey [EMAIL PROTECTED]:
 Hi

 Tim, now I know what problem was - it's absence of attributes of
 column. Then project has created somebody and did't fill up key - field.
 Qgis crashed because one field of one of objects was
 empty.
 I think that will be more better create a check of type field before
 creating a shape-file.

 P.S. sorry for my bad english, i hope you will understand me).


  Hi

  Looking at the code, only int, string and double types are currently
  supported. What data types are in your grass layer attributes table?
  Certainly we should not assert there but rather give some kind of
  feedback.

  Currently the code for QGIS 0.9.1 is in string freeze so I cant do
  much about it right now. However I have made a patch to at least just
  give an error message rather than assert (which causes the app to
  terminate).

  I have created a bug for this here:

  https://svn.qgis.org/trac/ticket/854

  Which includes a patch which at least prevents the app terminating. If
  you supply me with more info regarding the datatypes in your attribute
  table I will try to include support for additional dataypes in the
  above patch. As I recall shapefile format supports only int, double
  and string so any other attribute types will need to be merged into
  one of those types. I will apply the patch post 0.9.1 release.

  Regards

  Tim

  2007/12/5, alexey [EMAIL PROTECTED]:
  Hi
 
  I have a problem with generating shape file in qgis.
  When at grass vector layer I press right mouse button and select save as
  shapefile qgis crashes and in terminal appears this text:
  -
 
  QgsGrass::vectors()
  qgis: 
  /home/timlinux/dev/cpp/qgis-0.9.0/src/core/qgsvectorfilewriter.cpp:222: bo
  ol QgsVectorFileWriter::addFeature(QgsFeature): Assertion `0  invalid 
  varian
  t type' failed.
  Aborted
 
  -
 
  Somebody did such operation (i need to transport grass vector layer to
  postgis table in postgres)
 
  --
 
   alexey  mailto:[EMAIL PROTECTED]
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.qgis.org
  http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
 





 --
 С уважением,
  alexey  mailto:[EMAIL PROTECTED]




-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] Vector RGB color assignment

2007-12-07 Thread Maciej Sieczka
John C. Tull wrote:
 Hello All,
 
 I was wondering if there was a method for assigning vector polygon  
 fill colors with an RGB column or columns?

d.vect rgb_column=

Maciek
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user