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
2answers
36 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
vote
2answers
94 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
1answer
77 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/...
1
vote
1answer
63 views

Enable tile caching for a 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 and How to enable tile caching (check box) for a layer under ...
0
votes
1answer
128 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
0answers
236 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
1answer
267 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 ...
1
vote
1answer
129 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://...
1
vote
1answer
323 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 ...
3
votes
0answers
468 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/...
2
votes
1answer
458 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 ...
3
votes
1answer
217 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 ...
0
votes
1answer
183 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
1answer
238 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
1answer
489 views

Error to add store through cURL REST API too 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'...
2
votes
1answer
296 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
2answers
1k 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:...
1
vote
1answer
817 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 ...
1
vote
2answers
545 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 ...
2
votes
2answers
659 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=...
0
votes
1answer
111 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 ...
1
vote
0answers
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(...
5
votes
3answers
1k 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&...
0
votes
1answer
352 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
1answer
541 views

I converted a KML file into a PostGIS db using ogr2ogr. How do I publish all the tables as seperate 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 seperate layer onto a GeoServer. I know about cURL, but ...
0
votes
0answers
2k 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
0answers
836 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 ...
1
vote
0answers
188 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
1answer
569 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</...
3
votes
1answer
2k views

How to delete a GeoServer coveragestore 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/examples/...
0
votes
2answers
558 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 ...
2
votes
2answers
2k 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/...
16
votes
1answer
20k 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,...
2
votes
1answer
951 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
0answers
66 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
1answer
801 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
1answer
499 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?
0
votes
1answer
200 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
1answer
682 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/...
1
vote
0answers
143 views

How to post an existing shapefile datastore using cURL?

I read geoserver doc, and already Uploaded a shapefile to geoserver using cURL. But I can't change layer name by REST. So I think that there is another way to post a layer. If I can post an existing ...
2
votes
3answers
1k views

How to upload a NETCDF to Geoserver using cURL?

I'm trying to upload a NETCDF file (.nc) to Geoserver Store of Coverage ImageMosaic The command is this: curl -v -u admin:geoserver -XPOST -H "Content-type: text/plain" -d "file:///data/coverages/...
1
vote
3answers
1k views

Where can I programmatically download SRTM_V4.1 data?

SRTM v4 is an effort by the folks at CIAT-CSI to scrub, polish, and remove gaps in the raw SRTM data released by NASA (SRTM 3). One userfriendly interface : http://dwtkns.com/srtm/ provides ...
1
vote
0answers
194 views

SLD style definition from GeoServer to Drupal

I've been experimenting with the SLD style definitions in both GeoServer and Drupal. What I want to achieve is to create a new style in GeoServer (by a curl operation, but I know how that works) and ...
2
votes
1answer
810 views

Creating a geoserver layer with curl (but with a bounding box)

I'm attemping to load a layer into Geoserver from a PostGIS database using cURL. It works, but I also need to set the bounding box to -180,-90,180,90. Does anyone know how to add the bounding box to ...
3
votes
1answer
1k views

How to pragmatically upload a shapefile to geoserver using cURL? I'm having problems

I'm building the curl command in a python script, but when I run the script I get this error: * Connected to localhost (127.0.0.1) port 8081 * Server auth using Basic with user 'admin' > PUT /...