Open GoogleCodeExporter opened 9 years ago
Hey Barry,
I will add a update feature soon. I've tested to readd a point with PHP library
and
it worked for me:
xxx:~/geocubes/gcapi/php# php test.php
Geo Point with Id: 123456, Lat: 53.1337000000, Lng: 13.0549990000 added
Geo point with Id: 123456 successfully removed
Geo Point with Id: 123456, Lat: 53.1337000000, Lng: 13.0549990000 added
Geo point with Id: 123456 successfully removed
May be you can give me a litte debug output?
Also I will suggest you to integrate the REST api, because you have so many
points
and the REST api is faster than PHP library. I will also try to add a feature to
add/remove multiple points in one request.
Original comment by rk...@skilldeal.com
on 4 Aug 2009 at 2:18
You've got a delete in the middle.
This bit failed:
if ($this->_sendTo("GEO ADD CPL", $ret) == 1)
return $ret[1];
else {
print "geocubes error: failed add";
return 0;
}
When trying to 'add' a point that is already active in the database. Really
just mean overwrite I
guess.
Admittedly havent tried it for a while, but know had issues when first adding
geograph
intergration.
(Yes plan to mitgrate to the rest api - in fact just patch the php class to
optionally be able to
work via the rest api :)
Original comment by BarryBHu...@gmail.com
on 4 Aug 2009 at 2:28
Ah okay I misunderstood this. You are right this is not possible. I will add
"updateing points" only to the rest api. I hope this is okay for you? I will no
longer support PHP library because it's really too slow.
Original comment by rk...@skilldeal.com
on 4 Aug 2009 at 2:42
Just the RestAPI is fine by me :)
Original comment by BarryBHu...@gmail.com
on 4 Aug 2009 at 2:46
Original issue reported on code.google.com by
BarryBHu...@gmail.com
on 4 Aug 2009 at 1:17