Questions tagged [curl]

Curl is a tool and libcurl is a library for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TFTP, SCP, SFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTSP and RTMP.

Filter by
Sorted by
Tagged with
0 votes
0 answers
93 views

Create existing GeoTIFF store and publish layer

I have raster images in "data_dir/data" in GeoServer. How to remotely create storage for them and publish layers? I do as here: https://docs.geoserver.org/latest/en/user/rest/stores.html#...
0 votes
0 answers
79 views

Mapbox API - how to bulk upload geojson file in cURL or POSTMAN?

I can only see documentation for adding a single feature at a time with this PUT request; PUT https://api.mapbox.com/datasets/v1/{username}/{dataset_id}/features/{feature_id} ...but I cannot see any ...
0 votes
0 answers
67 views

GDAL WFS - Not able to get features from dataset: Failure writing output to destination

I'm using the GDAL 3.0.3. OGC WFS driver in a Java Environment using SWIG GDAL bindings. After rolling out code to various test machines, one of the machines is not able to get features from a Layer, (...
0 votes
1 answer
312 views

Upload GeoJSON to GeoServer using CURL

I tried to upload a zipped shapefile to GeoServer using CURL. curl -v -u username:password -XPUT -H "Content-type: application/zip" --data-binary @D:\curl\bin\roads.zip https://DOMAIN/...
0 votes
1 answer
149 views

Unable to use CURL to update an empty imagemosaic

After creating an empty image mosaic : curl -v -u admin:geoserver -XPUT -H "Content-type:application/zip" --data-binary @/services/GeoServer/data_dir/data/MaltaLab/basic.zip http://localhost:...
0 votes
1 answer
497 views

Coordinate projection API that accepts HTTP GET requests?

Is there an API out there that converts/projects coordinates through an HTTP GET request and returns JSON? I imagine the parameters would be something like: { source_epsg: 4326, //WGS84 ...
  • 415
2 votes
2 answers
903 views

Adding a geopackage (gpkg) to GeoServer through REST API

I'm trying to use the REST API to upload a GPKG file (SQLite with vector data) into GeoServer with curl but I always get Error auto-configuring coverage. The (wrong) command I'm currently using is ...
  • 71
0 votes
1 answer
146 views

Why curl returns "userName%" by GeoServer REST API create new user

When I insert this below link like GeoServer 2.17.1 RESTful API I got only: userName% curl -u admin:@dmin9901 -X POST http://localhost:8080/geoserver/rest/security/usergroup/users/ -H "accept: ...
  • 819
1 vote
1 answer
173 views

GDAL WMS service won't accept HTTPS connections

We have a system that is using the GDAL C# wrappers to talk to a WMS server. This all works ok when using HTTP, but if we try and connect to the same server using HTTPS then the call to GDAL. Open ...
  • 13
1 vote
1 answer
400 views

Set 00000 Input Transparent Color with GeoServer Rest API

I need to change parameters (Input Transparent Color) from layers in GeoServer. I have a lot of images to do it. So, I need to do this edit using GeoServer REST API. I did the code below but it doesn'...
0 votes
0 answers
1k views

curl REST API to AJAX

I'm trying to make a web application that is able to : 1) Upload raster data to GeoServer so when I use this command on cmd it works curl -u admin:geoserver -v -XPUT -H "Content-type: image/tiff" --...
0 votes
2 answers
237 views

How to use a key in an esriRequest call

I have been making calls to a previously free API using esriRequest var layersRequest = esriRequest({ url: base_url, content: { "latitude": lat, "longitude": long, ...
  • 1,821
2 votes
2 answers
1k views

Upload many layers from PostGIS database to GeoServer using curl

I have more than 200 layers in my PostGIS database and I want to publish those layers in GeoServer using curl. I've imported one layer using the command below but can't figure out how to upload all ...
0 votes
1 answer
729 views

ImageServer / GDAL Error

I am attempting to add an ImageServer layer to my project (QGIS 3.4.2 22034aa070 on Windows 1803) using the following command: qgis.utils.iface.addRasterLayer("https://gis.maine.gov/arcgis/rest/...
2 votes
1 answer
332 views

Enabling tile caching for layer?

I published around 1000 layers in geoserver without enabling tile caching for layer. How to check a cache is enabled for a layer or not? How to enable tile caching (check box) for a layer under ...
0 votes
1 answer
260 views

Export GeoJSON files from Targomo

After the Route 360 QGIS plugin stopped working, I developed my own script to handle CSV to GeoJSON travel time polygons. Up until recently, I had been using this page I created to turn CSV files ...
0 votes
0 answers
560 views

Digest authentification in Geoserver not working

I am trying to use Digest authentification in Geoserver. But when I send a Curl request I get the 401 error. I followed this tutorial : http://docs.geoserver.org/stable/en/user/security/tutorials/...
2 votes
1 answer
2k views

Difference between outcome of REST query through browser and through cURL

I am working with the geoserver rest interface to automate the config of all layers, stores etc. One thing I noticed was that when using a browser and navigating to a layer the outcome is something ...
  • 654
1 vote
1 answer
535 views

One single cURL command to delete a GeoServer raster layer (coverage) from a coveragestore via REST

I have published a GeoTIFF image to a GeoServer coveragestore as a layer. In order to delete the layer I had to run the following two cURL commands: curl -v -u admin:geoserver -XDELETE http://...
  • 2,003
3 votes
2 answers
794 views

Creating image pyramid datastore using GeoServer REST API?

I am trying to automate the geoserver configuration process and I am using curl and the geoserver REST API. I am able to create workspaces and for instance a WMS datastore, but I am not able to ...
  • 654
3 votes
1 answer
789 views

Geoserver ImageMosaic index is not updating with cURL

I am successfully adding a new ImageMosaic of GeoTiffs with the Geoserver REST API curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file://D:/tifdirectory" "http://localhost:8088/...
  • 31
2 votes
1 answer
860 views

Geoserver 2.9 Rest API cURL Set SRS for Directory of Shapefiles

I'm automating the publishing of layers in Geoserver 2.9. I've had good luck with getting my GeoTIFFs to publish nicely, despite having garbage for incoming SRS info. With the GeoTIFFs, I POST a ...
  • 585
3 votes
1 answer
241 views

Named map created with CartoDB Maps API not appearing in web interface dashboard

I am trying to learn how to use CartoDB and the CartoDB APIs - in particular the Maps API. I'm following along with the Named Maps Tutorial but I'm experiencing some confusion. When I create a named ...
  • 163
0 votes
1 answer
229 views

Create Choropleth Style Map in CartoDB programmatically

I am trying to create a choropleth map for a school project I am working on. Based off user input, I will create a csv file that I will then upload to CartoDB using their Import API. By setting the ...
0 votes
1 answer
312 views

CartoDB - inserting polygons

I am new to using PostGIS and CartoDB, and I am doing some test SQL inserts into both using PHP. I've had no problem with points, but polygons are proving to be a bit tricky - my SQL insert works ...
2 votes
1 answer
1k views

Error adding store through REST API to GeoServer

I have problem with adding raster layer to geoserver automatically. I need, that geoserver add layer without person job, only script action and i saw that it may be done with cURL REST API but, i can'...
  • 33
2 votes
1 answer
329 views

POST to CartoDB Maps API via NodeJS

We are attempting to port a Python-based CartoDB authentication sample app to NodeJS: The example, "Basic auth middleware with CartoDB," was created by CartoDB labs. We have sucessfully replaced one ...
2 votes
2 answers
2k views

How to remove cache from GWC for a specific layer

I am trying to remove the cache from a specific layer using curl so far i got to curl -v -u user:password -XPOST -H "Content-type: text/xml" -d "<truncateLayer><layerName>workspace:...
2 votes
1 answer
2k views

Building GDAL with libcurl support on Debian Linux

Does anyone know how to build GDAL with libcurl support on Debian Linux (specifically LinuxMint and/or Ubuntu)? After following build instructions here and tip from @EvilGenius below, I'm specifying ...
3 votes
3 answers
857 views

Use GeoServer's REST API on feature names with special characters

By default, GeoServer comes preconfigured with some example workspaces, datastores and layers. One of these workspaces is called it.geosolutions. If I try to delete this workspace via cUrl and the ...
  • 1,759
2 votes
2 answers
1k views

How to request paginated or filtered data from WFS 2.0?

I want to download a data set from a WFS 2.0 server via HTTP GET, with curl for instance. $ curl -X GET http://example.com/wfs/?service=WFS&request=GetFeature &version=2.0.0&typeNames=...
  • 1,511
0 votes
1 answer
120 views

Can you force cartoDB to read a file as a synced table

I'm writing a script that downloads from a data source every hour. I then do some processing on it and convert it to a kml saved in my google drive. As the data is updating every hour I want to be ...
2 votes
0 answers
1k views

How to publish layer on geoserver using rest api with PHP CURL

I'm working in a project that I need to publish a layer automatically on geoserver. Searching I discover that the REST API can help me. Studying the REST API I saw that I need to use cURL to do that(...
6 votes
3 answers
2k views

Geoserver : add extra style (SLD) with Curl

In my geoserver I have a layer with a default style (SLD) and i want to add another style to this layer with Curl. I tried command below with <style></style> instead of <defaultStyle&...
  • 1,136
0 votes
1 answer
374 views

CartoDB import api: upload data from stdin instead of file

I am trying to upload data using the CartoDB import api. Uploading a regular file works but my attempts to upload data from stdin are failing. The example of uploading a file works perfect. curl -F ...
1 vote
1 answer
567 views

I converted a KML file into a PostGIS db using ogr2ogr. How do I publish all the tables as separate layers?

As the title says, I converted/imported a KML file into my PostGIS database using the ogr2ogr command. Now I am trying to publish each table as a separate layer onto a GeoServer. I know about cURL, ...
2 votes
0 answers
3k views

SSL certificate problem: unable to get local issuer certificate with gdal and curl

* Connected to ascendxyzdatastagingweu.blob.core.windows.net (168.61.57.78) port 443 (#0) * libcurl is now using a weak random seed! * SSL certificate problem: unable to get local issuer certificate * ...
2 votes
0 answers
939 views

Geoserver2.6. REST cURL automation to add GeoTIFFs (batch) [closed]

I would like to add and publish hundreds of GeoTIFFs to my GeoServer datastore. I have started to write a batch file to manage GeoServer by REST API. I have finally figured out how to create a new ...
2 votes
0 answers
282 views

vsicurl on shapefile is requesting data outside file size range

ogrinfo --debug on --config CPL_CURL_VERBOSE YES -ro -al -so "/vsicurl/http://ascendxyzdatastagingweu.blob.core.windows.net/915295c046e0428e8f4fc94ce9188133-upload9/JORDSTYKKE.shp" Given the above ...
1 vote
1 answer
754 views

Geowebcache is does not seed from rest and web UI

I am trying CURL to seed geowebcache: curl -v -u USERNAME:PASSWORD -XPOST -H "Content-type: text/xml" -d "<seedRequest><name>WORKSPACE:LAYER</name><srs><number>4326</...
  • 553
3 votes
1 answer
3k views

Deleting GeoServer coverage store using REST API

I was wondering if there is any example of using REST API with curl to delete a coverage store? I looked at the examples at the boundless website http://docs.geoserver.org/2.5.x/en/user/rest/...
  • 10.8k
0 votes
2 answers
588 views

Create a named map in CartoDB

I'm trying to create a template map following this tutorial from the cartoDB's maps API. My template.json file { version: "0.0.1", name: "template_1", // embedded authorization certificate ...
  • 303
2 votes
2 answers
3k views

How we can get output for os.system() in python?

I wrote the following command in Geoserver rest-api using curl: cmd=curl -v -u admin:geoserver -XGET -H "Accept: text/xml" http://localhost:8080/geoserver/rest/workspaces/myworkspace/datastores/...
  • 149
23 votes
1 answer
31k views

Passing Filter Parameters to GeoServer WFS via URL?

I'm trying to use PHP's CURL function to fetch geoJSON information from a GeoServer instance. I'm doing this using url variables rather than trying to construct a full xml GetFeature request. However,...
  • 445
2 votes
1 answer
1k views

How to set up a Workspace setting in Geoserver using Curl

I have successfully created a workspace + store + raster layer in Geoserver using Curl in PHP. If I go back to Geoserver's UI and enter the Workspace that I have just created, the Settings: 'Enable' ...
1 vote
0 answers
75 views

How to publish a layer with standalone geowebchache in geoserver?

I have a multiple geoservers on two different systems with same port(one is backup for another) and geowebcache in on of the system with different port . Now i want to publish my layers in geoserver ...
2 votes
1 answer
977 views

Geoserver projection recognize problem

I'm publishing shape files in geoserver through curl,my problem is that geoserver didn't recognizing the projection which is in ESRI WKT format(layer was publishing).I searched for this problem i ...
0 votes
1 answer
646 views

Bounding Box in CuRL Tool(REST API)

I have set my time interval using CuRL tool for automatic Geowebcache.. How to set bounding box in curl command?
  • 395
0 votes
1 answer
290 views

GeoServer REST - Applying Style to Multiple layers

I have a bunch of rasters in GeoServer that need to have the same style applied to them as their default style. Is there any way to do this?
2 votes
1 answer
2k views

Selecting service (WMS / WFS) through GeoServer REST API?

Is it possible to select a service (WMS / WFS) through the Geoserver REST-API? I know how to add a workspace through the REST-API, like this curl -v -u admin:geoserver -XPOST -H "Content-type: text/...
  • 2,082