<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:360059249;
mso-list-template-ids:-2008794852;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Bo<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I tried the opposite of your suggestion and replaced my srs.db with the srs.db from the computer which displays the warning. I didn’t get any warnings,
but I will try your suggestion when I get the chance.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The QGIS versions are the same, v. 2.14.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards, Casper<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Qgis-developer [mailto:qgis-developer-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Bo Victor Thomsen<br>
<b>Sent:</b> 9. april 2016 09:10<br>
<b>To:</b> qgis-developer@lists.osgeo.org<br>
<b>Subject:</b> Re: [Qgis-developer] Warning from DigitizingTools about CRS mismatch<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Casper -<br>
<br>
AFAIK, All QGIS projection-definitions is stored in in a Sqlite database <qgis maindir>\apps\qgis\resources\srs.db<br>
<br>
This database is initialized at the time of QGIS installation. This process might have been slightly different for the computers involved, so the different srs.db's have a sligthly different content (ex. different sort order or different content in some of
the tables..)<br>
<br>
You could try to copy the srs db from one the computers, that's working OK and overwrite the srs.db on the malfunctioning computer. I assume the QGIS version is the same for all the computer involved.<br>
<br>
DISCLAIMER !<o:p></o:p></p>
<ul type="disc">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
This might not have any kind of influence!<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
This might destroy your QGIS installation! <o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
You might be struck by lightning from the QGIS gods (or whatnot;-)<o:p></o:p></li></ul>
<p class="MsoNormal" style="margin-bottom:12.0pt">So use it with caution and have a backup of the original srs.db handy<br>
<br>
Regards<br>
<br>
Bo Victor Thomsen<br>
GIS & Database specialist<br>
Municipality of Frederikssund, Denmark<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Den 08/04/16 kl. 13:27 skrev Casper Børgesen (CABO):<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I do follow your suggestions and they make perfectly sense. This is a warning and I can probably safely disregard it in this case. I'm more curious to discover why two computers using the same OS and QGIS version seems to handle the CRS difference differently. My initial mail was not specifically directed at DigitizingTools but it is (from the user point of view) the source of the warning.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>What I suspect is that some setting somewhere, inside or outside QGIS, might lead QGIS to behave differently - and I am curious to know :)<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards Casper<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: Bernhard Ströbl [<a href="mailto:bernhard.stroebl@jena.de">mailto:bernhard.stroebl@jena.de</a>] <o:p></o:p></pre>
<pre>Sent: 8. april 2016 12:55<o:p></o:p></pre>
<pre>To: Casper Børgesen (CABO); <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><o:p></o:p></pre>
<pre>Subject: Re: [Qgis-developer] Warning from DigitizingTools about CRS mismatch<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Casper,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I meant the CRS set in the layer's properties for the layer in question. <o:p></o:p></pre>
<pre>As you said both are using the same project so the project's CRS should be the same in both cases.<o:p></o:p></pre>
<pre>In your first mail you state that the project's CRS is EPSG:25832 and the layer's is EPSG:3044. There is the missmatch. Change this to<o:p></o:p></pre>
<pre>EPSG:25832 and all is fine. Check if the layer's CRS has been set to<o:p></o:p></pre>
<pre>EPSG:25832 on the working computer.<o:p></o:p></pre>
<pre>If the very same layer loads into the very same project with different CRS on different machines then this is a question of QGIS in general and has nothing to do with DigitizingTools (which is just pointing out the difference).<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Am 08.04.2016 um 12:43 schrieb Casper Børgesen (CABO):<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Since its the same QGIS project were opening on the different computers, I would expect them to behave the same. The current CRS (as stated in the bottom right of the QGIS window) is EPSG:25832 (OTF).<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I tried replacing the PRJ file of problematic shape file with the PRJ from the working shape file (see the first mail), but QGIS still displays the warning.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards, Casper<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: Bernhard Ströbl [<a href="mailto:bernhard.stroebl@jena.de">mailto:bernhard.stroebl@jena.de</a>]<o:p></o:p></pre>
<pre>Sent: 8. april 2016 11:38<o:p></o:p></pre>
<pre>To: Casper Børgesen (CABO); <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><o:p></o:p></pre>
<pre>Subject: Re: [Qgis-developer] Warning from DigitizingTools about CRS <o:p></o:p></pre>
<pre>mismatch<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Casper,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>no idea why they behave differently. Are the settings for the layer's SRS on both machines the same?<o:p></o:p></pre>
<pre>As I wrote, the warning is shown if there is a missmatch in the project's and the layer's SRS-id.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Am 08.04.2016 um 11:13 schrieb Casper Børgesen (CABO):<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks for your answer.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Yes I know that QGIS tries hard to determine the SRS-id which matches the values of the PRJ file. But my main issue is why it displays the warning only on one computer and not the others (same QGIS project with same data)?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Which mechanisms could trigger the difference in whether the warning should be shown or not?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>We are running QGIS 2.14.0 64 bit on Windows 7.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards Casper<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: Qgis-developer [<a href="mailto:qgis-developer-bounces@lists.osgeo.org">mailto:qgis-developer-bounces@lists.osgeo.org</a>]<o:p></o:p></pre>
<pre>On Behalf Of Bernhard Ströbl<o:p></o:p></pre>
<pre>Sent: 8. april 2016 10:38<o:p></o:p></pre>
<pre>To: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><o:p></o:p></pre>
<pre>Subject: Re: [Qgis-developer] Warning from DigitizingTools about CRS <o:p></o:p></pre>
<pre>mismatch<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Casper,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>DigitizingTools compares _only_ the SRS-id (SRS =<o:p></o:p></pre>
<pre>SpatialReferenceSystem) of the project and the layer. If they missmatch the warning is thrown so the user gets a hint why certain functions are greyed out.<o:p></o:p></pre>
<pre>Thus relevant is not the prj file but the SRS assigned to the layer and the project in their properties. To solve this issue: if they share a common projection, go in the layer properties and choose the same SRS as the project's from the list of projections.<o:p></o:p></pre>
<pre>Background (AFAIK): In Shapefiles the data do not carry information on their SRS (like e.g. in PostGIS or gml). This information is contained in the (optional) prj file. QGIS reads the prj file and assigns the first matching SRS to the data (matching = definition is identical). If there is none matching, a USER-SRS is created with the projection information given in the prj file.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Bernhard<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Am 08.04.2016 um 10:10 schrieb Casper Børgesen (CABO):<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi!<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I have a user who constantly get a yellow warning from QGIS when he enables editing on set of specific shape files. The message is:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>DigitizingTools: Amend Line is disabled because layer CRS and project CRS do not match!<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The project CRS is EPSG:25832. The shape file has the following .prj file:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>PROJCS["ETRS_1989_UTM_Zone_32N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS<o:p></o:p></pre>
<pre>_<o:p></o:p></pre>
<pre>1<o:p></o:p></pre>
<pre>989",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich"<o:p></o:p></pre>
<pre>,<o:p></o:p></pre>
<pre>0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Merca<o:p></o:p></pre>
<pre>t<o:p></o:p></pre>
<pre>o<o:p></o:p></pre>
<pre>r"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.<o:p></o:p></pre>
<pre>0<o:p></o:p></pre>
<pre>],PARAMETER["Central_Meridian",9.0],PARAMETER["Scale_Factor",0.9996]<o:p></o:p></pre>
<pre>, P ARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>In "layer properties/General/Coordinate reference system", QGIS displays "Selected CRS (EPSG: 3044, ETRS89 / ETRS-TM32".<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If he enables editing on a shape file with the following .prj file, it doesn't happen:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>PROJCS["ETRS89_UTM_zone_32N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_19<o:p></o:p></pre>
<pre>8<o:p></o:p></pre>
<pre>9<o:p></o:p></pre>
<pre>",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],<o:p></o:p></pre>
<pre>U<o:p></o:p></pre>
<pre>N<o:p></o:p></pre>
<pre>IT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"]<o:p></o:p></pre>
<pre>,<o:p></o:p></pre>
<pre>P<o:p></o:p></pre>
<pre>ARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",9],PAR<o:p></o:p></pre>
<pre>A<o:p></o:p></pre>
<pre>M<o:p></o:p></pre>
<pre>ETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAME<o:p></o:p></pre>
<pre>T E R["false_northing",0],UNIT["Meter",1]]<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The strange thing is that this only happens on his computer not on a couple of other machines we have tried on.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If there indeed is a CRS mismatch it make sense, but he is the only of our users experiencing this.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards, Casper<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>__________ Information from ESET Mail Security, version of virus <o:p></o:p></pre>
<pre>signature database 13303 (20160408) __________<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The message was checked by ESET Mail Security.<o:p></o:p></pre>
<pre><a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>__________ Information from ESET Mail Security, version of virus signature database 13303 (20160408) __________<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The message was checked by ESET Mail Security.<o:p></o:p></pre>
<pre><a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Qgis-developer mailing list<o:p></o:p></pre>
<pre><a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><o:p></o:p></pre>
<pre>List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre>
<pre>Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>