<div dir="ltr">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="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, 2015 at 3:53 PM, Bobby Braswell <span dir="ltr"><<a href="mailto:rbraswell@appliedgeosolutions.com" target="_blank">rbraswell@appliedgeosolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>On Aug 18, 2015, at 2:29 PM, Matt Hanson <<a href="mailto:matt.a.hanson@gmail.com" target="_blank">matt.a.hanson@gmail.com</a>> wrote:</div><br><div><div dir="ltr">That should work, where is a function of GeoVector in GIPPY, and there is an overloaded version of it:<div><a href="https://github.com/gipit/gippy/blob/master/GIP/gip/GeoVector.h#L142" target="_blank">https://github.com/gipit/gippy/blob/master/GIP/gip/GeoVector.h#L142</a><br></div><div><br></div><div>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><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, 2015 at 2:17 PM, Bobby Braswell <span dir="ltr"><<a href="mailto:rbraswell@appliedgeosolutions.com" target="_blank">rbraswell@appliedgeosolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>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><br></div><div>Rob</div><div><br></div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">(venv)<b>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"><b>GIPS Data Inventory (v0.8.0rc6)</b></div><div style="margin:0px;font-size:11px;font-family:Menlo">Traceback (most recent call last):</div><div style="margin:0px;font-size:11px;font-family:Menlo"> File "/home/rbraswell/repo/gips/gips/scripts/inventory.py", line 46, in main</div><div style="margin:0px;font-size:11px;font-family:Menlo"> args.tiles, args.pcov, args.ptile)</div><div style="margin:0px;font-size:11px;font-family:Menlo"> File "/home/rbraswell/repo/gips/gips/core.py", line 94, in factory</div><div style="margin:0px;font-size:11px;font-family:Menlo"> features = open_vector(site, key, where)</div><div style="margin:0px;font-size:11px;font-family:Menlo"> File "/home/rbraswell/repo/gips/gips/utils.py", line 275, in open_vector</div><div style="margin:0px;font-size:11px;font-family:Menlo"> return vector.where(where)</div><div style="margin:0px;font-size:11px;font-family:Menlo"> 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"> return _gippy.GeoVector_where(self, *args)</div><div style="margin:0px;font-size:11px;font-family:Menlo">TypeError: GeoVector_where() takes exactly 3 arguments (2 given)</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">Data inventory error: GeoVector_where() takes exactly 3 arguments (2 given)</div><div style="margin:0px;font-size:11px;font-family:Menlo">(venv)<b>rbraswell@rio:~/repo/gips$ </b></div></div><div><b><br></b></div></div><br>_______________________________________________<br>
GIPS mailing list<br>
<a href="mailto:GIPS@lists.osgeo.org" target="_blank">GIPS@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/gips" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/gips</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>