Re: [Qgis-user] problems to split images

2013-03-05 Thread Bruce, Bob (CON)
Jan,
Have you tried the Image Cutter plugin at: 
http://www.mappinggeek.ca/QGISPythonPlugins/image_cutter/indexInternet.html
You can install it from the repository at: 
http://www.mappinggeek.ca/QGISPythonPlugins/
We used it to tile images for maps.

It will work as long as you don't have any spaces in your path or file names.

Bob Bruce

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Jan Tappenbeck
Sent: March-04-13 7:58 AM
To: qgis-mailingliste
Subject: [Qgis-user] problems to split images

hi !

i try to split a image into 4 new tiles by gdal_translate - the problem 
is, that there was a border between the image in right-axis.

i create a little script for the work:


#!/bin/sh

#gdal_translate -projwin 360623.459101 5685603.57034 362500.0 5683500.0 
-of GTiff 
E:\datenlager_TAP\20130218_XX_RasterbildTransformation_GK2ETRS\ETRS\1988\1988.tif
 
E:/datenlager_TAP/20130218_XX_RasterbildTransformation_GK2ETRS/ETRS/1988/1988_1.tif

   # Pfad-Angabe NICHT auf / endent
   
basic_path="E:/datenlager_TAP/20130218_XX_RasterbildTransformation_GK2ETRS/ETRS"
   source_theme="1988"
   source_path=${source_theme}


 or_rechts="364769.1"
 or_hoch="5685564.3"
   #   +--+--+
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   |   Bild 1 |   Bild 2 +
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   +--+--+
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   |Bild 3|   Bild 4 +
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   |  |  +
   #   +--+--+

ul_rechts="360638.4"
ul_hoch="5681411.1"

# Trennpunkt in der Mitte
m_rechts="362500.00"
m_hoch="5683500.00"

   source="$basic_path/$source_path/$source_theme"
   echo
   echo Name der Rasterbilddatei: ${source}.tif
   echo
   echo
   echo THEMA: ${theme}

   echo Bild 1
   echo "${ul_hoch} - ${or_hoch} | ${m_rechts} - ${m_hoch}"
   gdal_translate -projwin ${ul_rechts} ${or_hoch} ${m_rechts} ${m_hoch} 
-of GTiff ${source}.tif ${source}_1.tif

   echo Bild 2
   echo "${m_rechts} - ${or_hoch} | ${or_rechts} - ${m_hoch}"
   gdal_translate -projwin ${m_rechts} ${or_hoch} ${or_rechts} ${m_hoch} 
-of GTiff ${source}.tif ${source}_2.tif

   echo Bild 3
   echo "${ul_rechts} - ${m_hoch} | ${m_rechts} - ${ul_hoch}"
   gdal_translate -projwin ${ul_rechts} ${m_hoch} ${m_rechts} ${ul_hoch} 
-of GTiff ${source}.tif ${source}_3.tif

   echo Bild 4
   echo "${m_rechts} - ${m_hoch} | ${or_rechts} - ${ul_hoch}"
   gdal_translate -projwin ${m_rechts} ${m_hoch} ${or_rechts} ${ul_hoch} 
-of GTiff ${source}.tif ${source}_4.tif

   echo finish
   echo
   done

here is the log:

THEMA:
Bild 1
5681411.1 - 5685564.3 | 362500.00 - 5683500.00
Input file size is 6815, 6831
Computed -srcwin 57 132 2975 3299 from projected window.
0...10...20...30...40...50...60...70...80...90...100 - done.
Bild 2
362500.00 - 5685564.3 | 364769.1 - 5683500.00
Input file size is 6815, 6831
Computed -srcwin 3033 132 3627 3299 from projected window.
0...10...20...30...40...50...60...70...80...90...100 - done.
Bild 3
360638.4 - 5683500.00 | 362500.00 - 5681411.1
Input file size is 6815, 6831
Computed -srcwin 57 3431 2975 3339 from projected window.
0...10...20...30...40...50...60...70...80...90...100 - done.
Bild 4
362500.00 - 5683500.00 | 364769.1 - 5681411.1
Input file size is 6815, 6831
Computed -srcwin 3033 3431 3627 3339 from projected window.
0...10...20...30...40...50...60...70...80...90...100 - done.
finish

a image with the border you can find at (scale 1:500):  
http://www.tappenbeck.net/qgis/jt_qgis_border_20130304.jpg

final some informations about the
** images 1 
Driver: GTiff/GeoTIFF
Files: 
E:/datenlager_tappenbeck/20130218_Wuelfrath_RasterbildTransformation_GK2ETRS/ETRS/1988/1988_1.tif
Size is 2975, 3299
Coordinate System is:
PROJCS["ETRS89 / UTM zone 32N",
 GEOGCS["ETRS89",
 DATUM["European_Terrestrial_Reference_System_1989",
 SPHEROID["GRS 1980",6378137,298.2572221010002,
 AUTHORITY["EPSG","7019"]],
 AUTHORITY["EPSG","6258"]],
 PRIMEM["Greenwich",0],
 UNIT["degree",0.0174532925199433],

Re: [Qgis-user] Lost Map Navigation Panel

2013-02-28 Thread Bruce, Bob (CON)
Lene Fischer from Denmark suggested this link:
http://osdir.com/ml/qgis-user-gis/2011-07/msg00333.html
which suggested:
You can remove (or rename)
HKEY_CURRENT_USER\Software\QuantumGIS\qgis\UI\state
in regedit. Unfortunately that also resets all toolbars and docks.
Unfortunately my user doesn't have the privilege of editing the registry so 
that solution is out.

In the same thread, the message: 
http://osdir.com/ml/qgis-user-gis/2011-07/msg00334.html suggests:
Ok, I wonder what's wrong with that toolbar. One could check if it's 
just offscreen with
qgis.utils.iface.mapNavToolToolBar().geometry()
and if it is, move it back with
qgis.utils.iface.mapNavToolToolBar().move(0,0)

this should work to fix the problem.

Bob Bruce

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Bruce, Bob (CON)
Sent: February-27-13 2:51 PM
To: 'QGIS User List'
Subject: [Qgis-user] Lost Map Navigation Panel

Thanks in advance for your help on this.

Today I was dragging my map navigation panel around in QGIS Desktop and because 
I was drawing a huge dataset with many delays I let it go somewhere I shouldn't 
have and now it is gone. Looking under the view menu I can see that it is 
turned on, it just isn't visible.

I remember coming across something about some Python script somewhere to issue 
the commands to make it visible but I cannot find that now.

Can someone tell me how to get this panel back?

Thanks,
Bob Bruce


**    Bob Bruce, FEC, P.Eng.Geomatics Support Engineer
**    bob.br...@gov.mb.ca   Geospatial Technology Services Management
**    work # (204) 945-6636 GeoManitoba, Manitoba Conservation and 
Water Stewardship
**    FAX  # (204) 945-1365     1007 Century Street,
**  Winnipeg, Manitoba, Canada, R3H 0W4
**  49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx

___
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


[Qgis-user] Lost Map Navigation Panel

2013-02-27 Thread Bruce, Bob (CON)
Thanks in advance for your help on this.

Today I was dragging my map navigation panel around in QGIS Desktop and because 
I was drawing a huge dataset with many delays I let it go somewhere I shouldn't 
have and now it is gone. Looking under the view menu I can see that it is 
turned on, it just isn't visible.

I remember coming across something about some Python script somewhere to issue 
the commands to make it visible but I cannot find that now.

Can someone tell me how to get this panel back?

Thanks,
Bob Bruce


**    Bob Bruce, FEC, P.Eng.Geomatics Support Engineer
**    bob.br...@gov.mb.ca   Geospatial Technology Services Management
**    work # (204) 945-6636 GeoManitoba, Manitoba Conservation and 
Water Stewardship
**    FAX  # (204) 945-1365     1007 Century Street,
**  Winnipeg, Manitoba, Canada, R3H 0W4
**  49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx

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


Re: [Qgis-user] QGIS 1.8.0 Symbology Transparency - Can it be 'global'

2012-11-07 Thread Bruce, Bob (CON)
Thanks Luca, it worked like a charm.

Bob

From: Luca Lanteri [mailto:mesca...@gmail.com]
Sent: November-07-12 3:30 PM
To: Bruce, Bob (CON)
Cc: QGIS User List
Subject: Re: [Qgis-user] QGIS 1.8.0 Symbology Transparency - Can it be 'global'

select multiply values and right click on it. You can choose transparency and 
other common properties.

^L?

2012/11/7 Bruce, Bob (CON) mailto:bob.br...@gov.mb.ca>>
I am using the new symbology in 1.8.0 and am missing something from 1.7. I 
classify a vector theme and would like to set an overall transparency value for 
all parts of the classification like I did in 1.7 but cannot do it. I have to 
go into each of the many different classification values and set the 
transparency individually. Is there a way to set it in the new symbology 
without doing each value?

Thanks,
Bob

***
**  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**  bob.br...@gov.mb.ca<mailto:bob.br...@gov.mb.ca>Geospatial 
Technology Services Management
**  work # (204) 945-6636  GeoManitoba, Manitoba 
Conservation and Water Stewardship
**  FAX  # (204) 945-1365  1007 Century Street,
** Winnipeg, Manitoba, Canada, R3H 0W4
** 49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
**  and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
***

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto: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


[Qgis-user] QGIS 1.8.0 Symbology Transparency - Can it be 'global'

2012-11-07 Thread Bruce, Bob (CON)
I am using the new symbology in 1.8.0 and am missing something from 1.7. I 
classify a vector theme and would like to set an overall transparency value for 
all parts of the classification like I did in 1.7 but cannot do it. I have to 
go into each of the many different classification values and set the 
transparency individually. Is there a way to set it in the new symbology 
without doing each value?

Thanks,
Bob

***
**  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**  bob.br...@gov.mb.ca    Geospatial Technology Services Management
**  work # (204) 945-6636  GeoManitoba, Manitoba Conservation and Water 
Stewardship
**  FAX  # (204) 945-1365      1007 Century Street,
** Winnipeg, Manitoba, Canada, R3H 0W4
** 49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
**  and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
***

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


Re: [Qgis-user] Does QGIS Currently Support WCS? or WMTS?

2012-10-03 Thread Bruce, Bob (CON)
Jürgen,
When I try and add a URL to the WMS layer definition with a 
&SERVICE=WMTS parameter it is stripped out. Unfortunately that is the only part 
of my URL that is the difference with the WMS URL so without the WMTS service 
specified it defaults to the WMS service. So I haven't been able to get WMTS to 
work.

 Bob

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Jürgen E. Fischer
Sent: October-03-12 4:22 PM
To: qgis-user@lists.osgeo.org; 'Qgis-Developer'
Subject: Re: [Qgis-user] Does QGIS Currently Support WCS? or WMTS?


Hi Bruce,

On Wed, 03. Oct 2012 at 15:46:09 -0500, Bruce, Bob (CON) wrote:
> Also is there any WMTS support yet? We are interested in testing this also.

Yes, there is WMTS support.  Just make sure the WMS url contains SERVICE=WMTS
or /WMTSCapabilities.xml.


Jürgen

-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
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


[Qgis-user] Does QGIS Currently Support WCS? or WMTS?

2012-10-03 Thread Bruce, Bob (CON)
We are currently testing Cubewerx web services and are interested in testing 
their WCS support. Can QGIS use a WCS server and if so how can I use it to do 
that?

Also is there any WMTS support yet? We are interested in testing this also.

Thanks,
Bob

**
**    Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**    bob.br...@gov.mb.ca   Geospatial Technology Services Management
**    work # (204) 945-6636  GeoManitoba, Manitoba Conservation and 
Water Stewardship
**    FAX  # (204) 945-1365     1007 Century Street,
**  Winnipeg, Manitoba, Canada, 
R3H 0W4
**  49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
**



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


Re: [Qgis-user] Problem Displaying Google Satellite Layer in QGIS 1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

2012-09-21 Thread Bruce, Bob (CON)
Nathan,
Yes, I set up the proxy server properly. If I don't set it up then my 
connections to the plugin repositories and to WMS servers don't work and I've 
tested them and they work OK.

Right now I'm focusing on trying to identify ports or protocols that this 
plugin might be using that my Windows firewall might be blocking but I'm not 
making much progress so far. I'm using the Wireshark program for that.

Thanks,
Bob

-Original Message-
From: Nathan Woodrow [mailto:madman...@gmail.com] 
Sent: September-21-12 6:05 PM
To: Bruce, Bob (CON)
Cc: QGIS User List; Qgis-Developer; Hardisty, David (CON)
Subject: Re: [Qgis-user] Problem Displaying Google Satellite Layer in QGIS 
1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

Bob,

Have you added you proxy settings in the Options->Network tab?
OpenLayers doesn't work for me at work if I don't do this.

- Nathan

On Sat, Sep 22, 2012 at 1:41 AM, Bruce, Bob (CON)  wrote:
> After doing more testing and investigation I have determined that the problem 
> lies somewhere in my corporate (government) IT environment. When I connect 
> the same computer to the internet through a FORTIGATE box that is 
> "tunnelling" through and ignoring proxy rules, etc. then it displays the 
> layers fine. Incidentally the Bing satellite layer in Winnipeg looks really 
> nice, but the Google satellite layer isn't too shabby either.
>
> Would the author of the OpenLayers plugin be possibly able to shed some light 
> on what in the IT environment might be preventing this plugin from working 
> properly?
>
> Thanks,
> Bob Bruce
>
> -Original Message-
> From: qgis-user-boun...@lists.osgeo.org 
> [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Bruce, Bob (CON)
> Sent: September-19-12 4:13 PM
> To: 'QGIS User List'
> Subject: [Qgis-user] Problem Displaying Google Satellite Layer in QGIS 1.7.4 
> Using OpenLayer Plugin 0.93 on Windows 7
>
> When I try and add a google satellite layer to my project, I get a python 
> error and traceback  as follows:
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File 
> "C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
> 109, in draw
> self.render(rendererContext)
>   File 
> "C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
> 164, in render
> olWidth = rendererContext.extent().width() / olRes
> UnboundLocalError: local variable 'olRes' referenced before 
> assignment
>
> Python version:
> 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
>
>
> QGIS version:
> 1.7.4-Wroclaw Wroclaw, 411aff6 After I close this window, a QGIS 
> error window appears with the message: "Could not draw Google Satellite 
> because:" with no other text in it.
>
> I have one vector layer displayed, this has a CRS of 26914 (NAD83 UTM Zone 
> 14), my project has a CRS of 3857 (from reading list postings this seemed to 
> be the appropriate CRS to use) and I have "On the fly reprojection" enabled. \
>
> I can see my vector layer OK but not the google satellite layer. I have 
> verified that QGIS is communicating with the WWW by connecting to an external 
> WMS server.
>
> Can someone help me to get google satellite imagery working, please.
>
> Bob Bruce
>
> **
> **Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
> **bob.br...@gov.mb.ca   Geospatial Technology Services Management
> **work # (204) 945-6636  GeoManitoba, Manitoba Conservation 
> and Water Stewardship
> **FAX  # (204) 945-1365 1007 Century Street,
> **  Winnipeg, Manitoba, 
> Canada, R3H 0W4
> **  49-54-31.85N,97-12-16.08W
> **
> ** Check out our digital maps at: http://mli2.gov.mb.ca/
> ** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
> **
>
>
>
> ___
> 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] Problem Displaying Google Satellite Layer in QGIS 1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

2012-09-21 Thread Bruce, Bob (CON)
After doing more testing and investigation I have determined that the problem 
lies somewhere in my corporate (government) IT environment. When I connect the 
same computer to the internet through a FORTIGATE box that is "tunnelling" 
through and ignoring proxy rules, etc. then it displays the layers fine. 
Incidentally the Bing satellite layer in Winnipeg looks really nice, but the 
Google satellite layer isn't too shabby either.

Would the author of the OpenLayers plugin be possibly able to shed some light 
on what in the IT environment might be preventing this plugin from working 
properly?

Thanks,
Bob Bruce

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Bruce, Bob (CON)
Sent: September-19-12 4:13 PM
To: 'QGIS User List'
Subject: [Qgis-user] Problem Displaying Google Satellite Layer in QGIS 1.7.4 
Using OpenLayer Plugin 0.93 on Windows 7

When I try and add a google satellite layer to my project, I get a python error 
and traceback  as follows:
An error has occured while executing Python code:

Traceback (most recent call last):
  File 
"C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
109, in draw
self.render(rendererContext)
  File 
"C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
164, in render
olWidth = rendererContext.extent().width() / olRes
UnboundLocalError: local variable 'olRes' referenced before 
assignment

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


QGIS version:
1.7.4-Wroclaw Wroclaw, 411aff6 After I close this window, a QGIS 
error window appears with the message: "Could not draw Google Satellite 
because:" with no other text in it.

I have one vector layer displayed, this has a CRS of 26914 (NAD83 UTM Zone 14), 
my project has a CRS of 3857 (from reading list postings this seemed to be the 
appropriate CRS to use) and I have "On the fly reprojection" enabled. \

I can see my vector layer OK but not the google satellite layer. I have 
verified that QGIS is communicating with the WWW by connecting to an external 
WMS server.

Can someone help me to get google satellite imagery working, please.

Bob Bruce

**
**Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**bob.br...@gov.mb.ca   Geospatial Technology Services Management
**work # (204) 945-6636  GeoManitoba, Manitoba Conservation and 
Water Stewardship
**FAX  # (204) 945-1365 1007 Century Street,
**  Winnipeg, Manitoba, Canada, 
R3H 0W4
**  49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
**



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


[Qgis-user] Problem Displaying Google Satellite Layer in QGIS 1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

2012-09-19 Thread Bruce, Bob (CON)
When I try and add a google satellite layer to my project, I get a python error 
and traceback  as follows:
An error has occured while executing Python code:

Traceback (most recent call last):
  File 
"C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
109, in draw
self.render(rendererContext)
  File 
"C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 
164, in render
olWidth = rendererContext.extent().width() / olRes
UnboundLocalError: local variable 'olRes' referenced before 
assignment

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


QGIS version:
1.7.4-Wroclaw Wroclaw, 411aff6
After I close this window, a QGIS error window appears with the message: "Could 
not draw Google Satellite because:" with no other text in it.

I have one vector layer displayed, this has a CRS of 26914 (NAD83 UTM Zone 14), 
my project has a CRS of 3857 (from reading list postings this seemed to be the 
appropriate CRS to use) and I have "On the fly reprojection" enabled. \

I can see my vector layer OK but not the google satellite layer. I have 
verified that QGIS is communicating with the WWW by connecting to an external 
WMS server.

Can someone help me to get google satellite imagery working, please.

Bob Bruce

**
**    Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**    bob.br...@gov.mb.ca   Geospatial Technology Services Management
**    work # (204) 945-6636  GeoManitoba, Manitoba Conservation and 
Water Stewardship
**    FAX  # (204) 945-1365     1007 Century Street,
**  Winnipeg, Manitoba, Canada, 
R3H 0W4
**  49-54-31.85N,97-12-16.08W
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
**


<>___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


RE: [Qgis-user] Making QGIS Project Directory Independent?

2011-09-27 Thread Bruce, Bob (CON)
Thanks Ramon, this worked great. I can see us now moving to distribute all of 
out data through the internet with QGIS project files, particularly since with 
saved Style files we can easily set up styles and apply them to layers in a 
project, this makes creating QGIS projects so much easier.

Bob Bruce


**Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**bob.br...@gov.mb.ca   Geospatial Technology Services Management
**work # (204) 945-6636  GeoManitoba, Manitoba Conservation
**FAX  # (204) 945-1365 1007 Century Street,
**  Winnipeg, Manitoba, Canada, 
R3H 0W4
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx


-Original Message-
Sent: September-26-11 8:16 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Making QGIS Project Directory Independent?

On 27/09/2011, at 8:20, "Bruce, Bob (CON)"  wrote:

> Does anyone know how I can remove the directory path from layers in a QGIS 
> project and have QGIS find the files for a project in the same folder as the 
> project file?
> 
> I would like to distribute projects to end users and not have them prompted 
> for the file locations if the data files are in the same folder as the 
> project file but that folder is not in the original location that is was when 
> the project was created.
> 
> Thanks,
> Bob Bruce

If everything is in a fixed relative position to the project file, then you 
could set the save paths project property in the general tab to relative. 

Should be ideal for this task. 

> 
-ramon.
___
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


[Qgis-user] Making QGIS Project Directory Independent?

2011-09-26 Thread Bruce, Bob (CON)
Does anyone know how I can remove the directory path from layers in a QGIS 
project and have QGIS find the files for a project in the same folder as the 
project file?

I would like to distribute projects to end users and not have them prompted for 
the file locations if the data files are in the same folder as the project file 
but that folder is not in the original location that is was when the project 
was created.

Thanks,
  Bob Bruce

**
**    Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**    bob.br...@gov.mb.ca   Geospatial Technology Services Management
**    work # (204) 945-6636  GeoManitoba, Manitoba Conservation
**    FAX  # (204) 945-1365     1007 Century Street,
**  Winnipeg, Manitoba, Canada, 
R3H 0W4
**
** Check out our digital maps at: http://mli2.gov.mb.ca/
** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx




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


[Qgis-user] Improving DXF to SHAPE Plugin

2010-06-17 Thread Bruce, Bob (CON)
I tried using this plugin the other day and found that a lot of
important DXF element attributes were missing. Is there currently a way
to get things like the layer name and the textstring imported into the
SHAPE files using this plugin?

If there is not, are there any plans to extend this plugin to do this?
If help is needed to work on improving this plugin, I would be
interested in lending a hand since I am keen on seeing this
functionality added.

Bob


**  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**  bob.br...@gov.mb.caManitoba Geomatics/Remote Sensing Branch,
**  work # (204) 945-6636  1007 Century Street,
**  FAX  # (204) 945-1365  Winnipeg, Manitoba, Canada, R3H 0W4
**
**  The Manitoba Centre for:  
**   Cadastral & Topographical Mapping, and Remote Sensing
**   See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/
**Check out our digital maps at: http://mlidata.gov.mb.ca/WPMLI
** and: https://mli2.gov.mb.ca/ 

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


RE: [Qgis-user] Feature Query of WMS Layers Fails

2010-05-11 Thread Bruce, Bob (CON)
Thanks for the very quick reply, Marco - you always have the answers!

I will look into this with the MLI guy, Al, to see if we can get
text/plain supported as well.

Bob Bruce

-Original Message-
From: Marco Hugentobler [mailto:ma...@hugis.net] 
Sent: Tuesday, May 11, 2010 2:08 PM
To: qgis-user@lists.osgeo.org
Cc: Bruce, Bob (CON); Dakin, Alan (CON)
Subject: Re: [Qgis-user] Feature Query of WMS Layers Fails

Hi Bob

Seems that your WMS server only supports INFO_FORMAT=text/html. I think
QGIS 
only handles text format (INFO_FORMAT=text/plain). It would be a nice
feature 
enhancement to support html output too.

Regards,
Marco

Am Dienstag, 11. Mai 2010, um 20.54:30 schrieb Bruce, Bob (CON):
> Does QGIS support querying features from a WMS Layer?
> 
> I am trying to query some layers on our Manitoba Land Initiative WMS
> server and the queries are not returning any feature information
except
> the location of the mouse click. A friend a work here tried querying
the
> same layers using uDig and was able to get feature information
returned.
> 
> QGIS is able to draw the features with no problem.
> 
> Is the feature querying working for QGIS?
> 
> The URL of the WMS server is:
> http://mlidata.gov.mb.ca/wms/request.aspx
> 
> Could someone from the group check out querying features from the
> layers:
> MLIDATA_TRN_HIGHWAYS
> MLIDATA_TOPONOMY
> MLIDATA_TOPONOMY_LABELS
> MLIDATA_BDY_MUNICIPALITY_PY
> 
> These should all contain feature information that can be returned.
> 
> (I have been using the CRS - EPSG 26914 for drawing the features)
> 
> Thanks,
>   Bob
> 
>

> **  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
> **  bob.br...@gov.mb.caManitoba Geomatics/Remote Sensing
Branch,
> **  work # (204) 945-6636  1007 Century Street,
> **  FAX  # (204) 945-1365  Winnipeg, Manitoba, Canada, R3H 0W4
> **
> **  The Manitoba Centre for:
> **   Cadastral & Topographical Mapping, and Remote Sensing
> **   See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/
> **Check out our digital maps at:
http://mlidata.gov.mb.ca/WPMLI
> ** and: https://mli2.gov.mb.ca/
>

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


-- 
Dr. Marco Hugentobler
HUGIS GmbH
Webereistr. 66
CH-8134 Adliswil
ma...@hugis.net
www.hugis.net
Technical Advisor QGIS Project Steering Committee
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Feature Query of WMS Layers Fails

2010-05-11 Thread Bruce, Bob (CON)
Does QGIS support querying features from a WMS Layer?

I am trying to query some layers on our Manitoba Land Initiative WMS
server and the queries are not returning any feature information except
the location of the mouse click. A friend a work here tried querying the
same layers using uDig and was able to get feature information returned.

QGIS is able to draw the features with no problem.

Is the feature querying working for QGIS?

The URL of the WMS server is:
http://mlidata.gov.mb.ca/wms/request.aspx

Could someone from the group check out querying features from the
layers:
MLIDATA_TRN_HIGHWAYS
MLIDATA_TOPONOMY
MLIDATA_TOPONOMY_LABELS
MLIDATA_BDY_MUNICIPALITY_PY

These should all contain feature information that can be returned.

(I have been using the CRS - EPSG 26914 for drawing the features)

Thanks,
Bob


**  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**  bob.br...@gov.mb.caManitoba Geomatics/Remote Sensing Branch,
**  work # (204) 945-6636  1007 Century Street,
**  FAX  # (204) 945-1365  Winnipeg, Manitoba, Canada, R3H 0W4
**
**  The Manitoba Centre for:  
**   Cadastral & Topographical Mapping, and Remote Sensing
**   See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/
**Check out our digital maps at: http://mlidata.gov.mb.ca/WPMLI
** and: https://mli2.gov.mb.ca/ 


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


[Qgis-user] Annotation Plugin for QGIS?

2010-05-03 Thread Bruce, Bob (CON)
I am looking for a way to annotate a map using attributes from a vector
layer. I would like to create the annotation as a new SHAPE point layer
that I can edit. At the moment I only need to annotate polygon features.

Is someone aware of a feature or a plugin from QGIS that will do this?

Thanks,
Bob Bruce



**  Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
**  bob.br...@gov.mb.caManitoba Geomatics/Remote Sensing
Branch,
**  work # (204) 945-6636  1007 Century Street,
**  FAX  # (204) 945-1365  Winnipeg, Manitoba, Canada, R3H 0W4
**
**The Manitoba Centre for:  
**Cadastral & Topographical Mapping, and Remote Sensing
**See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/
**  and:
http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html
** Check out our digital maps at:
http://mlidata.gov.mb.ca/WPMLI
** and: https://mli2.gov.mb.ca/ 


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


RE: [Qgis-user] Tema annotation

2009-11-23 Thread Bruce, Bob (CON)
Orlando, do you save the text orientation as an attribute in the SHAPE file?

 

I have cadastral data in SHAPE files that we create from our DXF files and save 
the orientation angle as an attribute TEXT_ANGLE. I then use this attribute in 
the "Data defined alignment" to individually orient each piece of text. In my 
case the text is actually line shapes but this will work just as well for text 
attributes contained in point shapes. Don't forget to turn off the drawing of 
the actual point in the symbology section of the layer properties (I set no pen 
for the fill and no line for the outline for this)

 

Bob Bruce

 



From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of legio nostra
Sent: Monday, November 23, 2009 8:16 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Tema annotation

 

Olá a todos.

""Alguém sabe como inserir texto no Qgis 1.3 MIMAS, como se fosse um tema 
"annotation" da esri ?""


Em autocad map 3d, eu exportei um tema de "texto". O que acontece é que ao 
fazer um "add vector layer no Qgis" o tema aparece como pontos.

Eu acedo ao menu Properties do layer, eu escolho labels, placement, e o texto 
aparece sempre na horizontal. Existe alguma ferramenta ou plugin para colocar o 
texto automaticamente, com a mesma orientação que as ruas?

Muito obrigado pela ajuda

Orlando Bernardo


Hello everyone.

"" Does anyone know how to insert text in Qgis 1.3 MIMAS, as if it were a theme 
of "annotation" of esri? "


In AutoCAD Map 3D, I exported a theme of "text". What happens is that when 
doing an "add vector layer in Qgis" the subject appears as dots.

I gain access to the Layer Properties menu, I choose labels, placement, and 
text appears horizontal. Is there any tool or plugin to make the text 
automatically with the same orientation as the streets?

Thank you for your help

Orlando Bernardo



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


RE: [Qgis-user] Does QGIS do table joins and editing? Does it querymultiple attributes?

2009-11-20 Thread Bruce, Bob (CON)
Borys:
Yeah, on the fly is exactly what I am looking for.

I'll provide a concrete example of what I need: I have a point SHAPE file of 
official place names. These place names are linked to a table of war casualty 
information and are linked via an attribute field. I'd like to link the two 
tables together in QGIS and select the place name and edit it's war casualty 
information and have it saved to that table but not actually combine the tables.

Thanks,
Bob Bruce

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Borys Jurgiel
Sent: Friday, November 20, 2009 4:43 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Does QGIS do table joins and editing? Does it 
querymultiple attributes?

Dnia piątek, 20 listopada 2009 o 23:36:17 Giovanni Manghi napisał(a):
> Hi,
> 
> > 1) they want to be able to join external database tables to the SHAPE
> > file attributes and be able to display and edit the data from those
> > attributes
> 
> vector (tools) -> data management tools -> join attributes

But it creates a new shapefile with a new, combined table. On the fly joins are 
still missing. To be honest, I don't know - is there anybody working on it at 
the time?
___
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


[Qgis-user] Does QGIS do table joins and editing? Does it query multiple attributes?

2009-11-20 Thread Bruce, Bob (CON)
I did a QGIS demo today for staff members and these questions came up:

1) they want to be able to join external database tables to the SHAPE
file attributes and be able to display and edit the data from those
attributes,
2) they want to be able to query on multiple parcel attributes, like the
section, township and range.

Are there tools currently in QGIS to perform these functions?

Thanks,
Bob Bruce

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


[Qgis-user] GPS Plugin for Windows

2009-11-19 Thread Bruce, Bob (CON)
(I'll try this again in plain text)

I have published the GPS plugin to my plugin repository at:
http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml. This
was built using the QGisTrackGps plugin as a starting point.
Anyways, this is available for use in QGIS on Windows now and I'd
appreciate it if people would give it a try and provide me with
feedback.

If you are using the plugin with a standalone (non OSGEO4W) version of
QGIS then you probably will have to download and install the Python
for Windows extensions library from
http://sourceforge.net/projects/pywin32/files/ . The OSGEO4W seems to
have this library built in.

Bob Bruce
bob.br...@pobox.com

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


RE: [Qgis-user] Congratulations to all :-)

2009-10-01 Thread Bruce, Bob (CON)
I strongly agree as well. Three years ago I included QGIS in a
presentation that I gave here in Winnipeg of FOSSG and users were
lukewarm about it.

This past Friday I made a presentation on QGIS and its Georeferencer
plugin at the local GIS users group meeting, and although there was only
one other QGIS user in the meeting of over 100 people, the users at the
meeting were quite impressed with it. I expect that the user base will
grow rapidly now that all the development has been done on it.

My thanks to all of the developers who make and maintain this excellent
software.

Bob Bruce

-Original Message-
From: qgis-user-boun...@lists.osgeo.org
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nikos Alexandris
Sent: Thursday, October 01, 2009 9:06 AM
To: qgis-user
Subject: [Qgis-user] Congratulations to all :-)

People,

sometimes I look at QGIS and wonder if it's real. All of these changes
and new stuff that were introduced the last months make me think that I
am dreaming :-p

Congratulations and thank you all. If QGIS grows at the same pace, I
can't imagine which other platform can beat it with respect to
user-friendliness, simplicity and interoperability.

One general desire though: please try to keep the menu(s) grouped, in an
easy and practical way. Right now, in the unstable version, loading many
(or all possible) plugins gives a bit of a confusing impression.

* The drop-down menus Raster (=gdal), Click-Fu, SDA-4PP and SelectPlus
are right after the Help menu.

* The Plugins are really too many just to keep them alphabetically
ordered. IMHO, a thematic sorting is mandatory.

And an extra-idea: since many-many times people wonder how to cite a
tool, why not give the proper citing in an extra tab within the "About"
dialog (or similar)?

Again, thanks :-)
Nikos

___
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] Problems with image clipper

2009-09-30 Thread Bruce, Bob (CON)
Agus and Nikos:
Thanks for testing. I've found the problem and
will release a fix later today. I'll let you know.

Bob

-Original Message-
From: qgis-user-boun...@lists.osgeo.org
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nikos Alexandris
Sent: Wednesday, September 30, 2009 8:28 AM
To: Agustin Lobo
Cc: qgis-user
Subject: Re: [Qgis-user] Problems with image clipper

On Wed, 2009-09-30 at 15:03 +0200, Agustin Lobo wrote:
> Hi!
> 
> After installing image clipper (Qgis 1.3.0, ubuntu 8.10)
> 1. The plugin is still listed as not installed.
> 2. At restarting QGIS, the following error is displayed:
> 
> Traceback (most recent call last):
>   File "", line 2, in
>   File "/home/alobo/.qgis//python/plugins/image_clipper/__init__.py", 
> line 22, in
> from imageclipper import ImageClipper
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/imageclipper.py",
line 
> 9, in
> from dlgimageclipper import ImageClipperDlg
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/dlgimageclipper.py",
line 1
> """
>   ^
> IndentationError: unexpected indent
> 
> Python version:
> 2.5.2 (r252:60911, Oct  5 2008, 19:42:18)
> [GCC 4.3.2]

Image Clipper fails to work (also) for me under Jaunty 64-bit, QGIS
1.4.0-trunk (revision 11691). The following is reported at start (same
as Agus' traceback):

--%<---
Traceback (most recent call last):
  File "", line 2, in 
  File "/home/nik/.qgis//python/plugins/image_clipper/__init__.py", line
22, in 
from imageclipper import ImageClipper
  File "/home/nik/.qgis//python/plugins/image_clipper/imageclipper.py",
line 9, in 
from dlgimageclipper import ImageClipperDlg
  File
"/home/nik/.qgis//python/plugins/image_clipper/dlgimageclipper.py", line
1
"""
  ^
IndentationError: unexpected indent

Python version:
2.6.2 (release26-maint, Apr 19 2009, 02:15:38) 
[GCC 4.3.3]
--%<---

Nikos

___
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] QGIS Image Clipper Plugin Available

2009-09-02 Thread Bruce, Bob (CON)
Agustin:
I did further testing today on Windows. I've found that
this plugin works fine with the QGIS Standalone installers, I tested it
with both the 1.1 and 1.2 installers. Then I downloaded a new version of
QGIS 1.2 OSGEO4W with several libraries selected and the plugin did not
work with that. I've put a posting into the developers list looking for
help.

I'll keep you posted.

Bob

-Original Message-
From: Agustin Lobo [mailto:alobolis...@gmail.com] 
Sent: Wednesday, September 02, 2009 2:47 AM
To: Bruce, Bob (CON); qgis-user; qgis-developer
Subject: Re: [Qgis-user] QGIS Image Clipper Plugin Available

Bruce,

Hopefully you'll find help among the developers,
this is really a critical missing utility in QGIS.

Agus

Bruce, Bob (CON) wrote:
> Agustin:
>   I have not seen any of these errors in the Windows
> version of QGIS. It must be related to a difference between the two
> systems. I only have one Linux system and it is CENTOS and I haven't
> been able to build QGIS there yet.
>
>   It may be possible to have an option to draw a circle (or
> perhaps cross-hairs) after the draw is done at the coordinates that
are
> entered, I will check into this.
>
> Bob
>
> -Original Message-
> From: qgis-user-boun...@lists.osgeo.org
> [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Agustin Lobo
> Sent: Tuesday, September 01, 2009 3:29 AM
> To: Bob Bruce
> Cc: QGIS User List
> Subject: Re: [Qgis-user] QGIS Image Clipper Plugin Available
>
> Very interested on both, many thanks for your
> contribution.
> I've tested on ubuntu jaunty with unstable qgis 1.2.0:
>
> 1.Image clipping (should not be named raster clipping?):
> Once I click "Clip the Image": I get:
>
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/dlgimageclipper.py", 
> line 228, in ClipImage
> gdal_merge(gdalstring)
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/gdal_merge_bb.py",
line
>
> 467, in gdal_merge
> fi.copy_into( t_fh, band, band, nodata )
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/gdal_merge_bb.py",
line
>
> 241, in copy_into
> nodata_arg )
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/gdal_merge_bb.py",
line
>
> 48, in raster_copy
> nodata )
>   File 
> "/home/alobo/.qgis//python/plugins/image_clipper/gdal_merge_bb.py",
line
>
> 84, in raster_copy_with_nodata
> t_xsize, t_ysize )
>   File "/usr/lib/python2.5/site-packages/osgeo/gdal.py", line 831, in 
> ReadAsArray
> import gdalnumeric
>   File "/usr/lib/python2.5/site-packages/osgeo/gdalnumeric.py", line
1,
> in
> from gdal_array import *
>   File "/usr/lib/python2.5/site-packages/osgeo/gdal_array.py", line 7,
> in
> import _gdal_array
> ImportError: dynamic module does not define init function
> (init_gdal_array)
>
>
> 2. zoom-to-point plugin
> After installation, I get the same message as reported by Giovanni
> (just tried 09/1 10:22 am GMT+2)
> "The plugin seems to have been installed but I don't know where"
>
> But the directory gets to its right place ant the plugin works.
>
> Just a suggestion: Could you add (optionally) a circle around the
point?
>
> Even if it is the
> central point, sometimes you want to make sure it's around the feature

> you want.
>
> Agus
>
> Bob Bruce wrote:
>   
>> Hi:
>> I have a plugin available that people may be interested in 
>> testing. This can be used to extract and combine portions of one or 
>> more image layers in QGIS. I have only used this on Windows but 
>> hopefully it would work OK in Linux also. You can get it and some
test
>> 
>
>   
>> data by going to the page: 
>> http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml .
We
>> 
>
>   
>> have been using this plugin a lot at my workplace to extract the 
>> useable portions of scanned photography that we have georeferenced 
>> using the GDAL Georeferencer plugin.
>>
>> There is also the zoom-to-point plugin that I have tweaked to work 
>> better with zoom levels.
>>
>>   Bob Bruce
>>
>> 
>

>   
>> No virus found in this outgoing message.
>> Checked by AVG - www.avg.com 
>> Version: 8.5.409 / Virus Database: 270.13.71/2335 - Release Date:
>> 
> 08/30/09 06:36:00
>   
>>   
>>
>> 
>

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

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


RE: [Qgis-user] QGIS Image Clipper Plugin Available

2009-09-01 Thread Bruce, Bob (CON)
Thanks for those notes Borys. I tried to follow the examples on the web of 
other repositories when I developed these pages. I will fix this later this 
evening. Maybe this will make that strange error message go away.

I was puzzled by why after I added my repository to the page it didn't 
automatically appear in the list inside of QGIS. I had to manually add it into 
my QGIS version. Do you know how that list of repositories in QGIS is made?

Thanks,
Bob

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Borys Jurgiel
Sent: Tuesday, September 01, 2009 4:00 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Image Clipper Plugin Available

Dnia poniedziałek, 31 sierpnia 2009 o 05:05:45 Bob Bruce napisał(a):
> Hi:
>  I have a plugin available that people may be interested in testing.
> This can be used to extract and combine portions of one or more image
> layers in QGIS. I have only used this on Windows but hopefully it would
> work OK in Linux also. You can get it and some test data by going to the
> page: http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml
> . We have been using this plugin a lot at my workplace to extract the
> useable portions of scanned photography that we have georeferenced using
> the GDAL Georeferencer plugin.
>
> There is also the zoom-to-point plugin that I have tweaked to work
> better with zoom levels.
>
>Bob Bruce

Hi, Thanks for the plugins! Only two remarks related to the zoom_to_point_BB 
metadata:

1. There is a wrong entry in the repository:
zoom-to-point-bobb.zip

This tag is optional, so if you have a static url to the file (as you do), you 
can safely remove it at all. But if it's present, it has higher priority than  
url in recent versions of the plugin installer and causes problems.

2. Version numbers in the __init__.py and repo xml don't match.

It's always good to test everything by installing the plugin after every 
upload (I know it's annoying but mistakes happen... :) )

Regards,
B.
___
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] QGIS Image Clipper Plugin Available

2009-09-01 Thread Bruce, Bob (CON)
Thanks to everyone who has tested this. I made a problem report on Wed
2009-08-26 9:22 AM under the subject line:

 

"[Qgis-user] QGIS API QgsMapToolEmitPoint Is Not Working Now andQGIS
Crashes"

 

When the image clipper plugin stopped working for me. I tracked the
problem down to the point where it was going to grab the location of
mouse clicks on the canvas. Unfortunately I couldn't figure out why this
was happening because I believed that I was following the right
procedures according to the documentation. I never did get any response
to this query but I didn't worry about this then because all of my
existing installations were working OK. Now I just tried updating my
OSGEO4W installation with the latest version of QGIS and I am getting
this problem on this workstation. So it seems to be related to something
to the way that I am getting the mouse pointing. And it the problem only
appears after I upgrade the installations (or install a new download)
using OSGEO4W.

 

Hopefully someone who is smarter that I am about this stuff can spot
what is causing the trouble.

 

Incidentally, I developed this with version 1.1 of QGIS and tried
testing it with 1.0.2 and it didn't work there, so I assume that
something wasn't available in the API for version 1.0.2.

 

Bob Bruce

 

Here is the report that I made earlier:

 

Something strange is happening, a plugin that was working before has
stopped working for me now. I recently set up a new Windows XP system
(which has been fully patched) and then installed QGIS 1.0, 1.1.0 and

1.2 along with the libraries using the OSGEO4W installer. It has been
two months since I have been using this plugin but I don't suppose that
the API has changed in that time?

 

When I run my plugin in QGIS 1.1.0 (Pan) the Python code in the plugin
enables the mouse clicks on the canvas to be captured and when I move
the cursor on the mapcanvas I see a cross-hair cursor but as soon as I
click on the canvas a Windows dialog appears with the message "qgis.exe
has encountered a problem and needs to close" and QGIS crashes. The slot
function never seems to be entered because the QMessageBox at the top of
it never appears before the crash. Shown below is a snippet of my Python
code in which I have added some calls to QMessageBox in the function
setUpRubberBanding and these get called but the message box in
setClipWindow never gets called before the crash.

 

What would be causing this QGIS crash?

 

thanks,

 Bob Bruce

 

 def setUpRubberBanding(self):

 -

 -

 (ommitted code)

 -

 -

 self.canvas = self.iface.mapCanvas()

 QMessageBox.information(self,'ImageClipperDlg - ClipImage','In

Function: setUpRubberBanding'+\

 ' Map Canvas Scale = "' + str(self.canvas.scale()) + '"')

 self.emitPoint = QgsMapToolEmitPoint(self.canvas)

 self.canvas.setMapTool(self.emitPoint)

 QMessageBox.information(self,'ImageClipperDlg - ClipImage','In

Function: setUpRubberBanding'+\

 ' about to connect signal
"canvasClicked"')

 QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint
&, Qt::MouseButton)"), self.setClipWindow)

 self.isEmittingPoint = True

 

 def setClipWindow(self, point, button):

 QMessageBox.information(self,'ImageClipperDlg -
ClipImage','Entered Function: setClipWindow')

 

 

 

 

 



From: qgis-user-boun...@lists.osgeo.org
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of G. Allegri
Sent: Tuesday, September 01, 2009 8:18 AM
To: Swapnil Chaudhari
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Image Clipper Plugin Available

 

It crashes my qgis trunk (1.3.0) from osgeo4w...
I've no time to debug it now, I will try as soon as I find a bit of time

giovanni

2009/9/1 Swapnil Chaudhari 

Hi Bob, 
Can you please check its compatibility with QGIS 1.0.2 Kore? It gives me
compatibility problem error. 
Thanks 
Best, 
Swapnil
On Mon, 31 Aug 2009 08:33:35 +0530 wrote


>Hi:
I have a plugin available that people may be interested in testing. 
This can be used to extract and combine portions of one or more image 
layers in QGIS. I have only used this on Windows but hopefully it would 
work OK in Linux also. You can get it and some test data by going to the

page: http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml 
. We have been using this plugin a lot at my workplace to extract the 
useable portions of scanned photography that we have georeferenced using

the GDAL Georeferencer plugin.

There is also the zoom-to-point plugin that I have tweaked to work 
better with zoom levels.

Bob Bruce

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.71/2335 - Release Date:
08/30/09 06:36:00

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http

RE: [Qgis-user] Need Help on Coordinate Capture in Python Plugin

2009-06-17 Thread Bruce, Bob (CON)
Thanks a million Aaron, it worked!

Bob

-Original Message-
From: Aaron Racicot [mailto:aar...@z-pulley.com] 
Sent: Wednesday, June 17, 2009 12:05 AM
To: Bruce, Bob (CON); 'QGIS User List'
Subject: RE: [Qgis-user] Need Help on Coordinate Capture in Python
Plugin

Hi there Bruce,

Try to make the SIGNAL signature match the C++ signature as that is what
PyQt will try to match.  Specifically you are using Qt.MouseButton (the
Python version) when the C++ version would keep the '::'.

Try:

QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint &,\
Qt::MouseButton)"), self.setClipWindow)

Hope that gets you going.

Aaron


--
Aaron Racicot
Z-Pulley Inc.
aar...@z-pulley.com


-Original Message-
From: qgis-user-boun...@lists.osgeo.org
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Bruce, Bob (CON)
Sent: Tuesday, June 16, 2009 7:06 PM
To: QGIS User List
Subject: [Qgis-user] Need Help on Coordinate Capture in Python Plugin

Hi:
I am writing a python plugin to clip images to a user selected
rectangle and am stuck at the point where the plugin gets the
coordinates from mouse clicks. Here are some code snippets from my
plugin:

-
-
-
# connect QGSMapCanvas mouse click event to the rubber band clip
window
# function
self.mapCanvas = self.iface.mapCanvas()
self.emitPoint = QgsMapToolEmitPoint(self.mapCanvas)
self.mapCanvas.setMapTool(self.emitPoint)
QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint &,\
Qt.MouseButton)"), self.setClipWindow)

def setClipWindow(self, point, button):
QMessageBox.information(self.iface.mainWindow(),\
   "ImageClipperDlg Mouse Click Event"," Here are the
coordinates ")


I have tried many variations of the argument lists but I cannot seem to
get the method/function setClipWindow to be called. Can someone see what
I'm doing wrong?

Thanks,
Bob Bruce



**  Bob Bruce, P.Eng.Geomatics Support Engineer
**  bbr...@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch,
**  work # (204) 945-66361007 Century Street,
**  FAX  # (204) 945-1365Winnipeg, Manitoba, Canada, R3H 0W4
**
**  The Manitoba Centre for:  
** Cadastral & Topographical Mapping, and Remote Sensing
** See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/
**  and:
http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html
** Check out our digital maps at: http://mlidata.gov.mb.ca/WPMLI
**and: https://mli2.gov.mb.ca/


___
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


[Qgis-user] Need Help on Coordinate Capture in Python Plugin

2009-06-16 Thread Bruce, Bob (CON)
Hi:
I am writing a python plugin to clip images to a user selected
rectangle and am stuck at the point where the plugin gets the
coordinates from mouse clicks. Here are some code snippets from my
plugin:

-
-
-
# connect QGSMapCanvas mouse click event to the rubber band clip
window
# function
self.mapCanvas = self.iface.mapCanvas()
self.emitPoint = QgsMapToolEmitPoint(self.mapCanvas)
self.mapCanvas.setMapTool(self.emitPoint)
QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint &,\
Qt.MouseButton)"), self.setClipWindow)

def setClipWindow(self, point, button):
QMessageBox.information(self.iface.mainWindow(),\
   "ImageClipperDlg Mouse Click Event"," Here are the
coordinates ")


I have tried many variations of the argument lists but I cannot seem to
get the method/function setClipWindow to be called. Can someone see what
I'm doing wrong?

Thanks,
Bob Bruce



**  Bob Bruce, P.Eng.Geomatics Support Engineer
**  bbr...@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch,
**  work # (204) 945-66361007 Century Street,
**  FAX  # (204) 945-1365Winnipeg, Manitoba, Canada, R3H 0W4
**
**  The Manitoba Centre for:  
** Cadastral & Topographical Mapping, and Remote Sensing
** See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/
**  and:
http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html
** Check out our digital maps at: http://mlidata.gov.mb.ca/WPMLI
**and: https://mli2.gov.mb.ca/


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