<div dir="auto"><div>Hi Laurent,<div dir="auto"><br></div><div dir="auto">I might be mistaken, but I think the where is for the strds, so you should use one of the variables allowed/available in the twmporal framework... and one more thing, I would use double quotes after the where (where="name=='something'" or, if temporal, where="start_time =='2001-01-01'")? Have you tried that?</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Vero</div><br><div class="gmail_extra"><br><div class="gmail_quote">El 14 jun. 2017 5:03 p.m., "Laurent C." <<a href="mailto:lrntct@gmail.com" target="_blank">lrntct@gmail.com</a>> escribió:<br type="attribution"><blockquote class="m_-2132769538562977112quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm running into a problem with t.rast.what when trying to select a<br>
specific point with the "where" option:<br>
<br>
/usr/lib/grass72/scripts/t.ras<wbr>t.what points=stations@chiapas<br>
strds=boqueron_60m_qy@chiapas_<wbr>results where=name=='Boquerón'<br>
Traceback (most recent call last):<br>
File "/usr/lib/grass72/scripts/t.ra<wbr>st.what", line 531, in<br>
<module><br>
main(options, flags)<br>
File "/usr/lib/grass72/scripts/t.ra<wbr>st.what", line 169, in<br>
main<br>
dbif=dbif)<br>
File "/usr/lib/grass72/etc/python/g<wbr>rass/temporal/abstract_<br>
space_time_dataset.py", line 1411, in<br>
get_registered_maps_as_objects<br>
rows = self.get_registered_maps(colum<wbr>ns, where, order,<br>
dbif)<br>
File "/usr/lib/grass72/etc/python/g<wbr>rass/temporal/abstract_<br>
space_time_dataset.py", line 1479, in get_registered_maps<br>
sql += " AND (%s)" % (where.split(";")[0])<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in<br>
position 20: ordinal not in range(128)<br>
<br>
If I'm not setting "where", it works fine.<br>
When using the "where" option with v.db.select, I do not have this<br>
problem neither:<br>
v.db.select map=stations@chiapas where=name=='Boquerón'<br>
cat|name|rain_rate<br>
9|Boquerón|0<br>
<br>
Should I open an issue?<br>
<br>
Best regards,<br>
Laurent<br>
______________________________<wbr>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/grass-user</a></blockquote></div><br></div></div></div>