<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ohhh. I thought I just upgraded gippy. Sorry, now I see that upgrade gives me 0.3.5. Will try that. <div class=""><br class=""></div><div class="">Thanks.<br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 25, 2015, at 3:15 PM, Matt Hanson <<a href="mailto:matt.a.hanson@gmail.com" class="">matt.a.hanson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Looks like you have v0.3.1, which does not contain the where(sql) function. You need 0.3.5.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Aug 18, 2015 at 4:16 PM, Matt Hanson <span dir="ltr" class=""><<a href="mailto:matt.a.hanson@gmail.com" target="_blank" class="">matt.a.hanson@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">SWIG does support function overloading. When I get a chance I will test it out and see if it works on the current master.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Aug 18, 2015 at 3:53 PM, Bobby Braswell <span dir="ltr" class=""><<a href="mailto:rbraswell@appliedgeosolutions.com" target="_blank" class="">rbraswell@appliedgeosolutions.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I was thinking the python bindings couldn’t handle the overloading and wondering if it made sense to have a separate function, e.g. “whereSQL” or something like that.<div class=""><div class=""><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Aug 18, 2015, at 2:29 PM, Matt Hanson <<a href="mailto:matt.a.hanson@gmail.com" target="_blank" class="">matt.a.hanson@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">That should work, where is a function of GeoVector in GIPPY, and there is an overloaded version of it:<div class=""><a href="https://github.com/gipit/gippy/blob/master/GIP/gip/GeoVector.h#L142" target="_blank" class="">https://github.com/gipit/gippy/blob/master/GIP/gip/GeoVector.h#L142</a><br class=""></div><div class=""><br class=""></div><div class="">But it seems to be using the other version. What version of GIPPY are you using? This was one of the things recently added, was GIPPY upgraded along with GIPS?</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Aug 18, 2015 at 2:17 PM, Bobby Braswell <span dir="ltr" class=""><<a href="mailto:rbraswell@appliedgeosolutions.com" target="_blank" class="">rbraswell@appliedgeosolutions.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">It looks like the where method on geovector is overloaded so that you can pass in sql. But I get the error below which suggests it doesn’t. As I write this I’m guessing that the python bindings can only know about one implementation. If that’s true it would be great to have a switch so I could pass in sql and not just be limited to an = comparison.</div><div class=""><br class=""></div><div class="">Rob</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-size:11px;font-family:Menlo" class="">(venv)<b class="">rbraswell@rio:~/repo/gips$ </b>gips_inventory modis -p indices -d 2010-100 -s /atlas/projects/cyanomap/vectors/ -v4 -w “area > 100" </div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""><b class="">GIPS Data Inventory (v0.8.0rc6)</b></div><div style="margin:0px;font-size:11px;font-family:Menlo" class="">Traceback (most recent call last):</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> File "/home/rbraswell/repo/gips/gips/scripts/inventory.py", line 46, in main</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> args.tiles, args.pcov, args.ptile)</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> File "/home/rbraswell/repo/gips/gips/core.py", line 94, in factory</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> features = open_vector(site, key, where)</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> File "/home/rbraswell/repo/gips/gips/utils.py", line 275, in open_vector</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> return vector.where(where)</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> File "/usr/local/lib/python2.7/dist-packages/gippy/gippy.py", line 5301, in where</div><div style="margin:0px;font-size:11px;font-family:Menlo" class=""> return _gippy.GeoVector_where(self, *args)</div><div style="margin:0px;font-size:11px;font-family:Menlo" class="">TypeError: GeoVector_where() takes exactly 3 arguments (2 given)</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px" class=""><br class=""></div><div style="margin:0px;font-size:11px;font-family:Menlo" class="">Data inventory error: GeoVector_where() takes exactly 3 arguments (2 given)</div><div style="margin:0px;font-size:11px;font-family:Menlo" class="">(venv)<b class="">rbraswell@rio:~/repo/gips$ </b></div></div><div class=""><b class=""><br class=""></b></div></div><br class="">_______________________________________________<br class="">
GIPS mailing list<br class="">
<a href="mailto:GIPS@lists.osgeo.org" target="_blank" class="">GIPS@lists.osgeo.org</a><br class="">
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/gips" rel="noreferrer" target="_blank" class="">http://lists.osgeo.org/cgi-bin/mailman/listinfo/gips</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></body></html>