<p dir="ltr">Cool! Thanks for the feedback. I'll update the wiki page :) </p>
<p dir="ltr">--Wolf on Android<br>
The usual disclaimer goes here</p>
<div class="gmail_quote">On 20 Dec 2014 12:25, "Jorge Arévalo" <<a href="mailto:jorge@cartodb.com">jorge@cartodb.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p dir="ltr">Hi Wolf</p>
<p dir="ltr">I already fixed it. I had to follow these steps:</p><p>- Define <span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">GOA2_CLIENT_ID, </span><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">GOA2_CLI</span><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">ENT_SECRET, </span><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">GME_APIKEY</span></p><p>- Define <span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">GME_REFRESH_TOKEN, which allow the app to refresh the token</span></p><p>No problem, so far. Just followed this <a href="http://trac.osgeo.org/gdal/wiki/GMEDriver" target="_blank">http://trac.osgeo.org/gdal/wiki/GMEDriver</a></p><p>- Define GME_AUTH (or provide 'auth' in the query string). This is not specified in the wiki page, but can be found here: <a href="https://github.com/OSGeo/gdal/blob/trunk/gdal/ogr/ogrsf_frmts/gme/ogrgmedatasource.cpp#L140" target="_blank">https://github.com/OSGeo/gdal/blob/trunk/gdal/ogr/ogrsf_frmts/gme/ogrgmedatasource.cpp#L140</a></p><p>The steps to get those environment vars are:</p><p>- <span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">GOA2_CLIENT_ID, </span><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">GOA2_CLI</span><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">ENT_SECRET, </span><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">GME_APIKEY --> from Google API console</span></p><p><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">- GME_AUTH, GME_REFRESH_TOKEN --> execute gdal_auth.py. Also stated in the wiki page. Just use the interactive option.</span></p><p><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">gdal_auth.py -s gme</span></p><p><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">So, the wiki page is basically correct. But just need to add the part about GME_AUTH :-)</span></p><p>Best regards,</p><p>Jorge</p><p><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif"><br></span></p><p><br></p><p><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px"><br></span></p><p><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px"><br></span></p><p dir="ltr"><br></p><p dir="ltr"><br></p>
<div class="gmail_quote">El 19/12/2014 18:33, "Wolf Bergenheim" <<a href="mailto:wolf%2Bgrass@bergenheim.net" target="_blank">wolf+grass@bergenheim.net</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Jorge.<div><br></div><div>I noticed some issues with it earlier this week. I'll see if I have some spare time over the weekend to see what I can do about it. Are you using the trunk version or an earlier release?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 December 2014 at 23:23, Jorge Arévalo <span dir="ltr"><<a href="mailto:jorge@cartodb.com" target="_blank">jorge@cartodb.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I'm having problems making the GDAL GME driver work
(<a href="http://trac.osgeo.org/gdal/wiki/GMEDriver" target="_blank">http://trac.osgeo.org/gdal/wiki/GMEDriver</a>). I've defined CLIENT_API and
CLIENT_SECRET in Google API console, and I successfully used them with
the QGIS GME plugin
(<a href="https://plugins.qgis.org/plugins/GoogleMapsEngineConnector/" target="_blank">https://plugins.qgis.org/plugins/GoogleMapsEngineConnector/</a>) and with
the example Python script of the doc page:
<a href="https://developers.google.com/maps-engine/documentation/oauth/installedapplication" target="_blank">https://developers.google.com/maps-engine/documentation/oauth/installedapplication</a>.
But, for some reason, I keep getting HTTP 401 error when trying to read
from my GME account using the GDAL driver.<br>
<br>
I've used gdal_auth.py to get the access token and the refresh token.
Passed the config options, as stated in the driver's page. Always
getting HTTP 401. <br>
<br>
Do you have any working example using GDAL GME driver? More info about
my problem here:
<a href="http://gis.stackexchange.com/questions/127065/i-cant-configure-authentication-with-google-maps-engine-driver-from-gdal" target="_blank">http://gis.stackexchange.com/questions/127065/i-cant-configure-authentication-with-google-maps-engine-driver-from-gdal</a><br>
<br>
Many thanks in advance!<span><font color="#888888"><br>
<br>
<div>-- <br>
Jorge<br>
<br>
<div><font size="-1">Sent using Postbox:<br><a href="http://www.getpostbox.com" target="_blank"><span style="color:rgb(51,102,153)">http://www.getpostbox.com</span></a></font></div></div>
</font></span></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>
</blockquote></div>
</div>
</blockquote></div>