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
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,...
Ambulare's user avatar
  • 445
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&...
Leasye's user avatar
  • 1,136
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 ...
igal's user avatar
  • 163
3 votes
3 answers
875 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 ...
Dirk's user avatar
  • 1,789
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/...
tinlyx's user avatar
  • 10.9k
3 votes
2 answers
812 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 ...
Freeze's user avatar
  • 664
3 votes
1 answer
983 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 ...
RD  Harles's user avatar
3 votes
1 answer
818 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/...
Rethi's user avatar
  • 31
3 votes
1 answer
2k views

Uploading shapefile to geoserver using cURL

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 /...
vascobnunes's user avatar
  • 5,522
2 votes
2 answers
981 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 ...
Diego's user avatar
  • 71
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 ...
ayar anasse's user avatar
2 votes
3 answers
2k 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/...
jack's user avatar
  • 45
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=...
JJD's user avatar
  • 1,511
2 votes
1 answer
341 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 ...
Satya Chandra's user avatar
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 ...
Freeze's user avatar
  • 664
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'...
Warden's user avatar
  • 33
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 ...
DPSSpatial_BoycottingGISSE's user avatar
2 votes
1 answer
885 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 ...
the_skua's user avatar
  • 585
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:...
julsbreakdown's user avatar
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/...
CHANDU's user avatar
  • 149
2 votes
1 answer
331 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 ...
Michael Weinberg's user avatar
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' ...
Web-GIS entrepreneur's user avatar
2 votes
1 answer
988 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 ...
Satya Chandra's user avatar
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/...
Stefan's user avatar
  • 2,092
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(...
Ashwin Bhayal's user avatar
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 * ...
Poul K. Sørensen's user avatar
2 votes
0 answers
948 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 ...
script80's user avatar
2 votes
0 answers
288 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 ...
Poul K. Sørensen's user avatar
1 vote
3 answers
2k 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 ...
Hugolpz's user avatar
  • 2,633
1 vote
1 answer
186 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 ...
DCB's user avatar
  • 13
1 vote
1 answer
570 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, ...
SketchyTurtle's user avatar
1 vote
1 answer
164 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:...
Nikola Krlovic's user avatar
1 vote
1 answer
434 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'...
Diogo Caribé's user avatar
1 vote
1 answer
554 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://...
alextc's user avatar
  • 2,013
1 vote
1 answer
769 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</...
boliwe's user avatar
  • 553
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 ...
Satya Chandra's user avatar
1 vote
0 answers
167 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 ...
Sey's user avatar
  • 11
1 vote
0 answers
198 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 ...
Dieter's user avatar
  • 39
0 votes
1 answer
522 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 ...
jesnes's user avatar
  • 415
0 votes
1 answer
314 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 ...
skwidbreth's user avatar
0 votes
1 answer
366 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/...
SharmaPN's user avatar
0 votes
1 answer
155 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: ...
Navid's user avatar
  • 819
0 votes
2 answers
252 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, ...
gwydion93's user avatar
  • 1,821
0 votes
1 answer
739 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/...
John Pooley's user avatar
0 votes
1 answer
262 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 ...
SimpleProgrammer's user avatar
0 votes
1 answer
233 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 ...
user3699999's user avatar
0 votes
1 answer
122 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 ...
Oliver Burdekin's user avatar
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 ...
Martin Jensen's user avatar
0 votes
2 answers
592 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 ...
sigon's user avatar
  • 303
0 votes
1 answer
652 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?
Vikram's user avatar
  • 395