<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>here are my findings from 2015:</p>
<p><a class="moz-txt-link-freetext" href="https://gis.stackexchange.com/questions/107522/is-it-possible-to-use-comments-in-qgis-query-builder-with-esri-shapefiles/149448#149448">https://gis.stackexchange.com/questions/107522/is-it-possible-to-use-comments-in-qgis-query-builder-with-esri-shapefiles/149448#149448</a></p>
<p>In short: comments with shape files did not (do not maybe still )
work</p>
<p>Solution: Just do not use ESRI-Shape files for work ;)</p>
<p>Cheers,</p>
<p>Bernd<br>
</p>
<div class="moz-cite-prefix">Am 03.02.22 um 15:33 schrieb Hugh
Kelley:<br>
</div>
<blockquote type="cite"
cite="mid:CAOrcXHEmyd4Pc-gtk8BBA8YXYh4=ByhJ3S=gES4nzaXHreP3CQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Very helpful point, it is a shapefile. <br>
</div>
<div><br>
</div>
<div>so far "#", "--", "//" and "/* */" did not work. I also
tried "<!-- comment -->" for good measure which didn't
work as well. <br>
</div>
<div><br>
</div>
<div>I tried a few of those on a geopackage too and they
errored out there as well. <br>
</div>
<div><br>
</div>
<div>I'll try a postgis datas source later today if I remember.
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Feb 3, 2022 at 9:23 AM
Johannes Kröger (WhereGroup) <<a
href="mailto:johannes.kroeger@wheregroup.com"
moz-do-not-send="true" class="moz-txt-link-freetext">johannes.kroeger@wheregroup.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Hugh,</p>
<p>that depends on the provider in use, a PostGIS provider
might behave differently from a Shapefile. See if wrapping
the comment in /* comment */ works.</p>
<p>Cheers, Hannes<br>
</p>
<div>Am 03.02.22 um 15:16 schrieb Hugh Kelley:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi all, <br>
</div>
<div><br>
</div>
<div>in the Layer Properties >> source >>
Query Builder dialogue, if I use "--" it shows that
I've commented out that line. when I test the query
though, it throws an error complaining about the
comment I included. <br>
</div>
<div><br>
</div>
<div>Is there a way to include a comment in the query? <br>
</div>
<div><br>
</div>
<div>i've like to include a note to myself when I filter
things sometimes as it can be hard months or years
later to figure out the motivation. for example: <br>
</div>
<div><br>
</div>
<div>-- remove built neighborhood bikeway according to
KML file from client, per email 2022-02-03<br>
"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)</div>
<div><br>
</div>
<div>Maybe there's a better way to include this note,
but it seems that the closer the note is to the filter
query definition the more likely I am to see it. <br>
</div>
<div><br>
</div>
<div>thanks<br>
</div>
<br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">Hugh <br>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">johannes.kroeger@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank" moz-do-not-send="true">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu
Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
<a href="https://wheregroup.com/blog/" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://wheregroup.com/blog/</a>
---------------------------------------------
</pre>
</div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">Qgis-user@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">Hugh Kelley <br>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
</body>
</html>