Re: [Qgis-user] Vector RGB color assignment

2007-12-07 Thread Maciej Sieczka
John C. Tull wrote:
> On Dec 7, 2007, at 2:13 PM, Maciej Sieczka wrote:
>> John C. Tull wrote:

>>> I was wondering if there was a method for assigning vector polygon
>>> fill colors with an RGB column or columns?

>> d.vect rgb_column=

> Yes, the above command works in GRASS. Want I want is a way to implement
> this in the Qgis map canvas similar to what you can do in GRASS.

Oh shoot. Sorry for the fuss. Somehow I thought you meant
GRASS. My bad.

Maciek
___
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 John C. Tull
On Dec 7, 2007, at 2:13 PM, Maciej Sieczka wrote:

> 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

Yes, the above command works in GRASS. Want I want is a way to  
implement this in the Qgis map canvas similar to what you can do in  
GRASS.

Is there a way to connect the display monitor to Qgis's map canvas  
that I am not aware of? That would be useful if grass commands from  
the GRASS shell would display on the map canvas, but I am not able to  
run 'd.vect map=xxx rgb_column=yyy' and get output to Qgis from the  
GRASS Shell in the GRASS Tools plugin. Instead I get the error:
No graphics monitor has been selected for output.
Please run "d.mon" to selected a graphics monitor.
No graphics device is selected.

John
___
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


[Qgis-user] Vector RGB color assignment

2007-12-07 Thread John C. Tull
Hello All,

I was wondering if there was a method for assigning vector polygon  
fill colors with an RGB column or columns? This would be similar to  
GRASS's assignment using the grassrgb column as R:G:B (e.g.,  
10:120:255). My searches have not found anything, but perhaps someone  
has created a plugin to accomplish this. If not, perhaps I will try my  
hand at learning some plugin development.

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


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] red-lining / annotations plugin ?

2007-12-07 Thread Tim Sutton
Hi

2007/12/7, Martin Dobias <[EMAIL PROTECTED]>:
> On Dec 3, 2007 10:01 PM, Richard Duivenvoorde <[EMAIL PROTECTED]> wrote:
> > Thanks for your answer, I'll have a look in your code this week. But it
> > would be really helpful if you could provide a simple tutorial code
> > project in which you interactively draw something on a mapcanvas
> > (polylines/text?). So if you have some spare time the coming days ;-)
>
> Not much spare time nowadays, but I'll keep it in my mind :)
>
>
> > This raises another question: what would be the best way to save this
> > kind of stuff IIF possible). We could indeed save it in a postgres table
> > (mixed geometries), or maybe in a set of shapefiles. But it would be
> > nicer if there was a way to 'serialize/pickle?' stuff for example as
> > part of the project file? Or as a separate 'annotations' file?
> > Any ideas about that?
>
> 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.

Regards

Tim

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


-- 
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] red-lining / annotations plugin ?

2007-12-07 Thread Martin Dobias
On Dec 3, 2007 10:01 PM, Richard Duivenvoorde <[EMAIL PROTECTED]> wrote:
> Thanks for your answer, I'll have a look in your code this week. But it
> would be really helpful if you could provide a simple tutorial code
> project in which you interactively draw something on a mapcanvas
> (polylines/text?). So if you have some spare time the coming days ;-)

Not much spare time nowadays, but I'll keep it in my mind :)


> This raises another question: what would be the best way to save this
> kind of stuff IIF possible). We could indeed save it in a postgres table
> (mixed geometries), or maybe in a set of shapefiles. But it would be
> nicer if there was a way to 'serialize/pickle?' stuff for example as
> part of the project file? Or as a separate 'annotations' file?
> Any ideas about that?

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.


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