Re: [Qgis-user] zoomtopoint.py
On 09/02/2014 09:41 AM, Jukka Rahkonen wrote: Vincent Schut schut@... writes: Hi Mike, I'm not familiar with this zoomtopoint.py, however, your coordinates do not seem to match your projection. EPSG 4326 is geographic lon, lat in degrees, so its range is from -180 to 180 (x) and -90 to 90 (y). The numbers you put as X and Y seem more appropriate for a meters based projection. Maybe try some real coordinates in degrees, or change your projection... You can familiarize yourself with the script by reading the link http://www.qgis.nl/2014/07/10/qgis-processing-scripts-gebruiken/?lang=en that was a little bit farther in the question. Right, I just did, and I think my original comment still holds... :-) The script will zoom to the point which you give in the specified projection, in this case epsg:4326 which is geographic lat/lon in degrees. It then transforms this coordinate to the crs of the canvas and zooms to there. So you'll need to give your x and y in valid coordinates for the projection you specify, in this case epsg:4326, so between -180 and 180 and -90 and 90. Vincent. -Jukka Rahkonen- Best regards, Vincent. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] zoomtopoint.py
Hi Mike, ik tested the script in 2.0 too, but it just worked what version of processing are you running? I'm running 2.2.0-2 (you can see in plugins page), and was testing in QGIS 2.0.1 for you Regards, Richard Duivenvoorde On 01-09-14 14:49, Mike Flannigan wrote: I followed the zoomtopoint.py example, double clicked on the script, and put in X: -1000 Y: 460 (epsg=4326) and hit RUN. I get this error: Traceback (most recent call last): File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py, line 150, in execute self.processAlgorithm(progress) File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py, line 213, in processAlgorithm exec(script) in ns File string, line 23, in module Exception: unknown I'm on Win64 ver 2.0.1-Dufour Perhaps I am not up-to-date enough on my version? ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] zoomtopoint.py
Hi, I am running version 1.1. I hit Upgrade All and it remained at version 1.1. The Uninstall plugin button and Reinstall plugin buttons are greyed out, so I can't easily figure out how to uninstall it and reinstall it. Perhaps I should go to in C:\PROGRA~1\QGISDU~1\apps\qgis\python\plugins\processing and just physically remove ProcessingPlugin.py, which is dated 9/21/2013? Well, I guess not. I moved it out of that directory and the program would start up, but Processing was no longer available and it gave the startup error message below. I moved it back and everything is back to normal, but I can't upgrade or reinstall no matter what. I'll do some more research on this and then probably upgrade the whole package, heh? Couldn't load plugin processing due an error when calling its classFactory() method Traceback (most recent call last): File C:/PROGRA~1/QGISDU~1/apps/qgis/./python\qgis\utils.py, line 204, in startPlugin plugins[packageName] = package.classFactory(iface) File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\__init__.py, line 32, in classFactory from processing.ProcessingPlugin import ProcessingPlugin File C:/PROGRA~1/QGISDU~1/apps/qgis/./python\qgis\utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named ProcessingPlugin Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS version: 2.0.1-Dufour Dufour, d94c044 Python path: ['C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\\Users\\Mike-Master/.qgis2/python', 'C:\\Users\\Mike-Master/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISDU~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISDU~1\\bin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\PROGRA~1\\QGISDU~1\\apps\\qgis\\python\\plugins\\fTools\\tools'] Mike On 9/3/2014 4:31 AM, Richard Duivenvoorde wrote: Hi Mike, ik tested the script in 2.0 too, but it just worked what version of processing are you running? I'm running 2.2.0-2 (you can see in plugins page), and was testing in QGIS 2.0.1 for you Regards, Richard Duivenvoorde ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] zoomtopoint.py
Hi Mike, I'm not familiar with this zoomtopoint.py, however, your coordinates do not seem to match your projection. EPSG 4326 is geographic lon, lat in degrees, so its range is from -180 to 180 (x) and -90 to 90 (y). The numbers you put as X and Y seem more appropriate for a meters based projection. Maybe try some real coordinates in degrees, or change your projection... Best regards, Vincent. On 09/01/2014 02:49 PM, Mike Flannigan wrote: I followed the zoomtopoint.py example, double clicked on the script, and put in X: -1000 Y: 460 (epsg=4326) and hit RUN. I get this error: Traceback (most recent call last): File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py, line 150, in execute self.processAlgorithm(progress) File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py, line 213, in processAlgorithm exec(script) in ns File string, line 23, in module Exception: unknown I'm on Win64 ver 2.0.1-Dufour Perhaps I am not up-to-date enough on my version? Mike On 8/31/2014 2:00 PM, qgis-user-requ...@lists.osgeo.org wrote: Have a look at this article: http://www.qgis.nl/2014/07/10/qgis-processing-scripts-gebruiken/?lang=en it is about writing a little processing script to do exactly what you propose. Regards, Richard ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] zoomtopoint.py
Vincent Schut schut@... writes: Hi Mike, I'm not familiar with this zoomtopoint.py, however, your coordinates do not seem to match your projection. EPSG 4326 is geographic lon, lat in degrees, so its range is from -180 to 180 (x) and -90 to 90 (y). The numbers you put as X and Y seem more appropriate for a meters based projection. Maybe try some real coordinates in degrees, or change your projection... You can familiarize yourself with the script by reading the link http://www.qgis.nl/2014/07/10/qgis-processing-scripts-gebruiken/?lang=en that was a little bit farther in the question. -Jukka Rahkonen- Best regards, Vincent. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] zoomtopoint.py
Thanks for the responses. Using -93, 37 it gives a Crash Dumped and produces a mini dump file of 20MB. I tried a couple different things, but all of them crashed. I see a message that says OGR[3] error 4: GeoJSON Driver doesn't support update. Which suggest this bug report is at play: https://hub.qgis.org/issues/10107 So I set to another projection (4267), on my map and in the script, but no difference. I can't quite make out the code or I would try to do this manually. Mike On 9/2/2014 4:17 AM, qgis-user-requ...@lists.osgeo.org wrote: Hi Mike, I'm not familiar with this zoomtopoint.py, however, your coordinates do not seem to match your projection. EPSG 4326 is geographic lon, lat in degrees, so its range is from -180 to 180 (x) and -90 to 90 (y). The numbers you put as X and Y seem more appropriate for a meters based projection. Maybe try some real coordinates in degrees, or change your projection... Best regards, Vincent. -- You can familiarize yourself with the script by reading the link http://www.qgis.nl/2014/07/10/qgis-processing-scripts-gebruiken/?lang=en that was a little bit farther in the question. -Jukka Rahkonen- ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] zoomtopoint.py
I followed the zoomtopoint.py example, double clicked on the script, and put in X: -1000 Y: 460 (epsg=4326) and hit RUN. I get this error: Traceback (most recent call last): File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py, line 150, in execute self.processAlgorithm(progress) File C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py, line 213, in processAlgorithm exec(script) in ns File string, line 23, in module Exception: unknown I'm on Win64 ver 2.0.1-Dufour Perhaps I am not up-to-date enough on my version? Mike On 8/31/2014 2:00 PM, qgis-user-requ...@lists.osgeo.org wrote: Have a look at this article: http://www.qgis.nl/2014/07/10/qgis-processing-scripts-gebruiken/?lang=en it is about writing a little processing script to do exactly what you propose. Regards, Richard ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user