This driver can connect to the AmigoCloud API services. GDAL/OGR must be built with Curl support in order for the AmigoCloud driver to be compiled.
The driver supports read and write operations.
AmigoCloud:[project_id]
Additional optional parameters can be specified after the ':' sign. Currently the following one is supported :
If no datset_id is provided, the driver will print list of available datasets for given project.
List of available datasets for project id: 1234 | id | name |-----------|------------------- | 5551 | points | 5552 | lines
Authenticated access is obtained by specifying the API key given in the AmigoCloud dashboard web interface. It is specified with the AMIGOCLOUD_API_KEY configuration option.
Write support is only enabled when the datasource is opened in update mode.
The mapping between the operations of the AmigoCloud service and the OGR concepts is the following :
The above operations are by default issued to the server synchronously with the OGR API call. This however can cause performance penalties when issuing a lot of commands due to many client/server exchanges.
The following layer creation options are available:
ogrinfo --config AMIGOCLOUD_API_KEY abcdefghijklmnopqrstuvw -al "AmigoCloud:1234 datasets=987" ogrinfo -oo AMIGOCLOUD_API_KEY=abcdefghijklmnopqrstuvw -al "AmigoCloud:1234 datasets=987" env AMIGOCLOUD_API_KEY=abcdefghijklmnopqrstuvw ogrinfo -al "AmigoCloud:1234 datasets=987"
export AMIGOCLOUD_API_KEY=abcdefghijklmnopqrstuvw ogrinfo -al "AmigoCloud:1234 datasets=987"
$ ogrinfo -ro "AmigoCloud:1234 datasets" List of available datasets for project id: 1234 | id | name |-----------|------------------- | 5551 | points | 5552 | lines
ogrinfo -ro "AmigoCloud:1234 datasets=1234,1235"
ogr2ogr -f AmigoCloud "AmigoCloud:1234" myshapefile.shp
ogr2ogr -f AmigoCloud "AmigoCloud:1234 datasets=12345" myshapefile.shp or ogr2ogr -append -f AmigoCloud "AmigoCloud:1234 datasets=12345" myshapefile.shp
ogr2ogr -append -doo OVERWRITE=YES -f AmigoCloud "AmigoCloud:1234 datasets=12345" myshapefile.shp
ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:1234 datasets=12345" myshapefile.shp
ogr2ogr -append -doo OVERWRITE=YES -f AmigoCloud "AmigoCloud:1234 datasets=12345" -where "visited_on > '2017-08-20'" myshapefile.shp