LI3DS / api-li3ds

LI³DS Rest API
GNU General Public License v3.0
0 stars 3 forks source link

add support to create foreign pointcloud objects #34

Closed ldgeo closed 7 years ago

ldgeo commented 7 years ago

This PR adds new endpoints to create foreign server, tables and schema:

Fixes #30

elemoine commented 7 years ago

For reference here's how to use httpie to create a foreign table:

http POST localhost:5000/foreignpc/table X-API-KEY:aaaabbbbcccc server=sbetserver srid:=0 table=public.mysbet3 options:='{"sources": "/home/elemoine/src/fdw-li3ds/test/data/sbet/sbet.bin", "patch_size": 100}'
elemoine commented 7 years ago

I just tested the /schema endpoint to create foreign tables from a rosbag file. It works as expected.

Create the rosbag server:

$ http POST localhost:5000/foreignpc/servers X-API-KEY:aaaabbbbcccc name=rosbagserver driver=fdwli3ds.Rosbag options:='{"rosbag_path": "/home/elemoine/src/fdw-li3ds/test/data/rosbag/"}'

Import the foreign schema:

$ http POST localhost:5000/foreignpc/schema X-API-KEY:aaaabbbbcccc server=rosbagserver schema=session8 rosbag=session8_section0_1492648601948956966_0.bag
mbredif commented 7 years ago

Great!