Re: [Qgis-user] QGIS Python Plugin Installer not UTF-8 aware?
Hi Borys, Thank you for your detailed explanation of the problem. I can understand it better now. And yes, I did not properly encode it with "u'...'" in the first place. Also, thank you for investigating whether we can use utf-8 in plugin metadata in the future. All the best, Andreas > Monday 17 of November 2008 11:59:00 Andreas Neumann napisa³(a): >> It seems like the Python QGIS Plugin installer has problems displaying >> UTF-8 characters. >> >> As an example I am using german umlauts in the plugin description which >> is >> not displayed correctly. >> >> I filed bug https://trac.osgeo.org/qgis/ticket/1405 >> >> This may be related to https://trac.osgeo.org/qgis/changeset/9617 ? >> >> Thank you for having a look at this bug. >> >> Andreas > > Andreas, Installer seems to be ok. If you see wrong characters, probably > your > description is not unicoded. Check your __init__.py file, because probably > you've wrote: > > def description(): > return 'Danke schön' > > This string is recognized by Python as iso8859-1 (the encoding declaration > in > the first line of the file doesn't matter). If you want tu use unicode, > you > need to use the following code instead: > > def description(): > return u'Danke schön' > > > However... Installer do, but rest of QGIS doesn't support utf-8 in plugin > metadata ;) So I suggest to use simple iso8859-1 strings now: > > # -*- coding: iso8859-1 -*- > (...) > def description(): > return 'Danke schön' > (...) > > And of course don't forget to save it in 8859-1. > > Regards, > B. > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Mac OS X: QGIS 1.0 Preview 2 Crashes
On Nov 15, 2008, at 12:01 PM, Martin Dobias wrote: Victory! I patched SIP to compile as a bundle, with no direct link to Python. Rebuild PyQt and it followed. Rebuild Qgis, and the qgis-python modules are also now correct. Then, changed libqgispython to drop the full path to Python binary (I built with system Python). Glad to hear that! Thanks for the effort! I didn't find a way to submit a bug report with Riverbank, so I left a patch on their mailing list. No reply so far, so I don't know if anyone is looking at it. For those Mac users that want to try it themselves (compile from source, that is), here is what I did: You must start over with SIP to get the changes to trickle into PyQt and Qgis. In the SIP source, siputils.py, ModuleMakefile().finalise(), change: self.LFLAGS.append("-F%s" % string.join(dl, os.sep)) self.LFLAGS.append("-framework Python") to: self.LFLAGS.append("-undefined dynamic_lookup") Then reconfigure and compile SIP (with the build instructions in the Qgis wiki). Then reconfigure and compile PyQt. Now configure, compile and install Qgis. Finally fix the Qgis python library link - assuming you configured for the default /Applications prefix: sudo install_name_tool -change /path/to/python/framework Python.framework/Versions/2.5/Python /Applications/qgis1.0.0.app/ Contents/MacOS/lib/libqgispython.dylib You can check the python path as compiled with: otool -L /Applications/qgis1.0.0.app/Contents/MacOS/lib/ libqgispython.dylib Note: there is no point to do this for Python 2.6 - the system doesn't have it. And if you change it to Python.framework/Python with the thought of catching the _current_ version, you run the risk of binary incompatibilities if Qgis finds a different Python version than compiled with. - William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence - the wisdom of Tarzan ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS Python Plugin Installer not UTF-8 aware?
Monday 17 of November 2008 11:59:00 Andreas Neumann napisał(a): > It seems like the Python QGIS Plugin installer has problems displaying > UTF-8 characters. > > As an example I am using german umlauts in the plugin description which is > not displayed correctly. > > I filed bug https://trac.osgeo.org/qgis/ticket/1405 > > This may be related to https://trac.osgeo.org/qgis/changeset/9617 ? > > Thank you for having a look at this bug. > > Andreas Andreas, Installer seems to be ok. If you see wrong characters, probably your description is not unicoded. Check your __init__.py file, because probably you've wrote: def description(): return 'Danke schön' This string is recognized by Python as iso8859-1 (the encoding declaration in the first line of the file doesn't matter). If you want tu use unicode, you need to use the following code instead: def description(): return u'Danke schön' However... Installer do, but rest of QGIS doesn't support utf-8 in plugin metadata ;) So I suggest to use simple iso8859-1 strings now: # -*- coding: iso8859-1 -*- (...) def description(): return 'Danke schön' (...) And of course don't forget to save it in 8859-1. Regards, B. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-developer] Re: [Qgis-user] Announcing Qgis-mapper project
On Mon, Nov 17, 2008 at 8:30 PM, Tim Sutton <[EMAIL PROTECTED]> wrote: > Me too! If you are developing in your own, what are your plans in terms > of integration into QGIS trunk? I guess you need to modify core to some > degree and then plan to put the rest of functionality out into python > plugin space? I would welcome better renderer implementation (ideally > that supports SLD spec). We'd like to integrate as much as possible directly into QGIS trunk. There will be quite some changes for core library. As there should be stable API for 1.x releases, we will have to integrate new features with care. Some things will be maybe shifted to 2.0 release if it won't be possible to integrate them to 1.x branch. Briefly what's planned for new renderer implementation: - multi-layer symbols (the greatest change) - more symbol layer types - e.g. simple line, marker line ... - rendering with special order (to allow drawing good-looking roads with outline) - rendering is done directly in renderer, not in vector layer - catalog of symbology I don't know whether it will be "compatible" with SLD specification, I'm not very familiar with it... How far from SLD is QGIS now? Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] GeoFesta
On Mon, 2008-11-17 at 20:35 +0100, Paolo Cavallini wrote: > Hi all. > Last days I have been at the geofesta: > http://www.regione.toscana.it/festadellageografia > It was quite obvious that QGIS has conquered the world: last year we had > to explain what FOSS was, to convince people that is is working, it does > not bite, etc. > Now the usual response when taking a QGIS brochure was "Oh, QGIS, yes, > we're using it at work". Great. Now we "just" have to convince them to > help QGIS growing further, but the first great step has been made. > Thanks to everybody, devs first! Nice to hear! Thanks for the feedback! Regards -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Visit http://linfiniti.com to find out about: * QGIS programming services * Mapserver and PostGIS based hosting plans * FOSS Consulting & Support Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == signature.asc Description: This is a digitally signed message part ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] GeoFesta
Hi all. Last days I have been at the geofesta: http://www.regione.toscana.it/festadellageografia It was quite obvious that QGIS has conquered the world: last year we had to explain what FOSS was, to convince people that is is working, it does not bite, etc. Now the usual response when taking a QGIS brochure was "Oh, QGIS, yes, we're using it at work". Great. Now we "just" have to convince them to help QGIS growing further, but the first great step has been made. Thanks to everybody, devs first! -- Paolo Cavallini, see: * http://www.faunalia.it/pc * ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-developer] Re: [Qgis-user] Announcing Qgis-mapper project
Hi > > > > Public access to source repository is not available, but we will try > > to release some useful parts of the project during the development - > > PostGIS manager plugin is an example. There's Trac running for our > > project, those interested can take a look at the progress: > > http://urtax.ms.mff.cuni.cz/qgis-mapper/ > > This sounds quite useful and ambitious. I look forward to seeing the > fruits of your efforts. > Me too! If you are developing in your own, what are your plans in terms of integration into QGIS trunk? I guess you need to modify core to some degree and then plan to put the rest of functionality out into python plugin space? I would welcome better renderer implementation (ideally that supports SLD spec). Regards Tim > John -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Visit http://linfiniti.com to find out about: * QGIS programming services * Mapserver and PostGIS based hosting plans * FOSS Consulting & Support Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == signature.asc Description: This is a digitally signed message part ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Announcing Qgis-mapper project
On Nov 17, 2008, at 6:51 AM, Martin Dobias wrote: Hi all, I'd like to announce that we're starting a new QGIS-based project at our university. We've formed a group of five students from our faculty that will work on this project. It will introduce some improvements int QGIS and create tools for simpler creation of roadmaps. There's planned support for OpenStreetMap, topology handling, better rendering and editing capabilities, better handling of large data and even more stuff :-) You'll find more in the specification: http://mapserver.sk/~wonder/swproj/spec.html The project will be run for nine months, at the end of this period we should have all features from the specification ready. Public access to source repository is not available, but we will try to release some useful parts of the project during the development - PostGIS manager plugin is an example. There's Trac running for our project, those interested can take a look at the progress: http://urtax.ms.mff.cuni.cz/qgis-mapper/ This sounds quite useful and ambitious. I look forward to seeing the fruits of your efforts. John ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] uncheck editing tool (python plugin)
Hi all! I'm currently trying to uncheck an editing tool icon with my python plugin. The following code works for non editing tools like zoom and pan: mc = self.iface.mapCanvas() layer = mc.currentLayer() tool = mc.mapTool() mc.unsetMapTool(tool) After this snippet, if the current tool is an non editing tool (e.g pan or identify), there is no functionality and the icons are unchecked. (That's what I want) If I do the same for an editing tool (e.g capture polygon) as current tool, the functionality has also gone but the icon is still checked. Has anybody a hint how I may uncheck editing icons (like it is when you change from pan to capture an vice versa)? Best regards Cédric mit freundlichen Grüssen Cédric Möri GIS-Informatiker -- Kanton Solothurn Bau- und Justizdepartement Amt für Geoinformation Rötistrasse 4 4501 Solothurn Telefon: +41 (0)32 627 24 75 Telefax: +41 (0)32 627 22 14 mailto:[EMAIL PROTECTED] http://www.agi.so.ch ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Announcing Qgis-mapper project
Hi all, I'd like to announce that we're starting a new QGIS-based project at our university. We've formed a group of five students from our faculty that will work on this project. It will introduce some improvements int QGIS and create tools for simpler creation of roadmaps. There's planned support for OpenStreetMap, topology handling, better rendering and editing capabilities, better handling of large data and even more stuff :-) You'll find more in the specification: http://mapserver.sk/~wonder/swproj/spec.html The project will be run for nine months, at the end of this period we should have all features from the specification ready. Public access to source repository is not available, but we will try to release some useful parts of the project during the development - PostGIS manager plugin is an example. There's Trac running for our project, those interested can take a look at the progress: http://urtax.ms.mff.cuni.cz/qgis-mapper/ Regards Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Still having Proxy Problems
Hi all, I am still having proxy problems. I am using the latest SVN trunk version. I came across this thread at http://www.nabble.com/QGis-proxy-settings-td20127464.html - my conclusion was that the proxy problems should be solved by now - but it still doesn't work for me. The proxy at our local city government is squid/2.6.STABLE16 - I need to authenticate with user and password. The proxy is on port 8080. Unfortunately there is no way to convince our provider to get rid of this proxy. They do their provider services not only for our city but many others as well. Is the patch mentioned in the above thread now in the SVN trunk? If yes, I wonder why it still doesn't work for me? I tested on both Linux (SVN trunk) and Windows (Preview 2) Thank you for any ideas an what I could do to fix the problem. Andreas -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS Python Plugin Installer not UTF-8 aware?
Monday 17 of November 2008 11:59:00 Andreas Neumann napisał(a): > It seems like the Python QGIS Plugin installer has problems displaying > UTF-8 characters. > > As an example I am using german umlauts in the plugin description which is > not displayed correctly. Thanks! I'll get down to this tonight. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] psycopg2 and Plugin Distribution on Windows
ok - meanwhile I found a Windows Psycopg2 installer at http://www.stickpeople.com/projects/python/win-psycopg/ but as Boris suggests, it would be really cool if psycopg2 could be included in the standard qgis distributions, at least for Windows and OSX. I added an enhancement ticket at https://trac.osgeo.org/qgis/ticket/1406 Thank you very much, Andreas >> I hope that I can find an easy install solution of QGIS-plugins based on >> psycopg2, since most of my future QGIS plugins will rely on Postgis. >> >> Thanks for any hints, >> Andreas > > I agree this is an essential module. I think PostGis support should be > complete and works out of the box, also in plugins. What about adding it > to > the windows pack? We can also provide a separate "Python pack" for > windows-Qgis containing all modules used by plugins. > > Regards, > B. > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS Python Plugin Installer not UTF-8 aware?
It seems like the Python QGIS Plugin installer has problems displaying UTF-8 characters. As an example I am using german umlauts in the plugin description which is not displayed correctly. I filed bug https://trac.osgeo.org/qgis/ticket/1405 This may be related to https://trac.osgeo.org/qgis/changeset/9617 ? Thank you for having a look at this bug. Andreas -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] psycopg2 and Plugin Distribution on Windows
> I hope that I can find an easy install solution of QGIS-plugins based on > psycopg2, since most of my future QGIS plugins will rely on Postgis. > > Thanks for any hints, > Andreas I agree this is an essential module. I think PostGis support should be complete and works out of the box, also in plugins. What about adding it to the windows pack? We can also provide a separate "Python pack" for windows-Qgis containing all modules used by plugins. Regards, B. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] psycopg2 and Plugin Distribution on Windows
Hi QGIS Python developers, I have written a Python QGIS Plugin that relies on psycopg2 (with Marco Hugentoblers help). The plugin was developed on Linux but now needs to be distributed on Windows and OSX. I created a local plugin repository for this purpose. However, if I try to install it on a Windows machine I get the error: "No module named psycopg2". Now I wonder how I can distribute psycopg2 along with the plugin. Can I package psycopg2 for several platforms along with my plugin zip file? I hope that I can find an easy install solution of QGIS-plugins based on psycopg2, since most of my future QGIS plugins will rely on Postgis. Thanks for any hints, Andreas -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] scale bar
hm - seems to work for me: * SVN latest trunk (Ubuntu 8.10, 64bit) * Win2K, Preview2 Andreas > Hello, > > When we add the scale bar on the printing window Qgis win & ubuntu > preview 2 crashes > > JC > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Feature enhancement/request for QGIS digitizing toolbox
On 11/17/08, Andreas Neumann <[EMAIL PROTECTED]> wrote: > Hi, > >> I use QGIS extensively for digitizing. Hope this request is valid as >> an ehancement to QGIS digitizing tools. >> >> 1. Stream-mode digitizing > > I wonder if stream-mode is really that useful. In my experience, at least > when working with mouse - stream-mode digitizing is not very accurate and > creates not-very optimal results. > It might be different with a wacom-like tablet and a pen, though. > > Are you using one of those digitizing pens? No, I don't use digitizing pens. Generalizing lines from stream-mode digitizing can be easily edited with generalize tools in GRASS. >> 2. Adding regular polygons (ala-CAD) like arcs and rectangles > > arcs would be very useful. I would also like to see better arc-support in > open source GIS - but the problem is that all the underlying libraries (at > least ogr and proj, I am not sure about geos) do not support arcs and > other curves. This means that arcs probably at the current time have to be > transformed into regular polygons with lots of vertices. That could be a work-around. >> Maybe we can get some inspiration from JOSM (OSM's java editor) > yes, maybe. > > Andreas Note: While in many ways I am satisfied with the existing digitizing tools, the above feature/enhancement is an often requested feature when I introduce QGIS/GRASS to many colleagues. Especially NGOs working with geospatial data. Thank you for looking into this. cheers, maning > Andreas Neumann > Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland > Email: [EMAIL PROTECTED], Web: > * http://www.carto.net/ (Carto and SVG resources) > * http://www.carto.net/neumann/ (personal page) > * http://www.svgopen.org/ (SVG Open Conference) > * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) > > -- |-|--| | __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda | | '-._"7' |"Freedom is still the most radical idea of all" -N.Branden| | /'.-c |Linux registered user #402901, http://counter.li.org/ | | | /T |http://esambale.wikispaces.com/ | | _)_/L I http://epsg4253.wordpress.com/ | |-|--| ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Feature enhancement/request for QGIS digitizing toolbox
Hi, > I use QGIS extensively for digitizing. Hope this request is valid as > an ehancement to QGIS digitizing tools. > > 1. Stream-mode digitizing I wonder if stream-mode is really that useful. In my experience, at least when working with mouse - stream-mode digitizing is not very accurate and creates not-very optimal results. It might be different with a wacom-like tablet and a pen, though. Are you using one of those digitizing pens? > 2. Adding regular polygons (ala-CAD) like arcs and rectangles arcs would be very useful. I would also like to see better arc-support in open source GIS - but the problem is that all the underlying libraries (at least ogr and proj, I am not sure about geos) do not support arcs and other curves. This means that arcs probably at the current time have to be transformed into regular polygons with lots of vertices. > Maybe we can get some inspiration from JOSM (OSM's java editor) yes, maybe. Andreas -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user