Skip to main content

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
6 views

GeoPackage Data Store Errors when Created from cURL

I have a GeoPackage produced in QGIS that has 2 layers within it. I'm trying to use cURL to upload and generate the GeoPackage Data Store within Geoserver. curl -v -u <user>:<password> -...
user1457123's user avatar
-2 votes
0 answers
15 views

cURL not Updating GeoPackage on Geoserver [duplicate]

I've been using cURL to move a GeoPackage to GeoServer (v2.22.2) with hopes to use the same command to update the GeoPackage on a schedule. I'm seeing a couple of issues. The GeoPackage file on the ...
user1457123's user avatar
0 votes
0 answers
32 views

cURL to Migrate and Publish GeoPackage to GeoServer

I've been using cURL to move a GeoPackage to GeoServer (v2.22.2) with hopes to use the same command to update the GeoPackage on a schedule. I'm seeing a couple of issues. The GeoPackage file on the ...
user1457123's user avatar
1 vote
1 answer
75 views

Set "Namespace URI" of workspace with curl

I'm trying to set the "Namespace URI" while I set a new workspace with a curl in my terminal, but what I get is always "http://"myworkspace". Here is the code I'm using. curl -...
user207536's user avatar
0 votes
0 answers
26 views

Changing GeoServer layer name with REST API using curl

I have created a store via the REST API for a GeoTIFF file. A layer is automatically created with the same name as the GeoTIFF file without the extension. I would like to change the layer name to ...
Theuns Heydenrych's user avatar
0 votes
0 answers
74 views

Connecting to GeoServer REST module

I'm a new starter on GeoServer. I have a requirement where in I have to create a workspace, create a coverage store (GeoTIFF file) and publish it through APIs. I am using Python through the FastAPI ...
Shridev's user avatar
0 votes
0 answers
254 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#...
filippov vlad's user avatar
1 vote
1 answer
671 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
1 vote
1 answer
214 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
0 votes
1 answer
845 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
  • 453
2 votes
2 answers
1k 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
  • 81
0 votes
1 answer
252 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
  • 859
1 vote
1 answer
287 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
2 votes
1 answer
561 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
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" --...
Ayoub Beltarchi's user avatar
0 votes
2 answers
319 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,913
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
0 votes
1 answer
798 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
2 votes
1 answer
419 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
0 votes
1 answer
280 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
0 answers
664 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/...
Jas Mine'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
  • 684
1 vote
1 answer
712 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
3 votes
2 answers
995 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
  • 684
3 votes
1 answer
958 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
2 votes
1 answer
962 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
3 votes
1 answer
243 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
0 votes
1 answer
243 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
319 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
2 votes
1 answer
2k 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
333 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
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
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 ...
Inactivated Account's user avatar
3 votes
3 answers
932 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,851
2 votes
2 answers
2k 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
0 votes
1 answer
123 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
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
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
0 votes
1 answer
382 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
1 vote
1 answer
583 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
2 votes
0 answers
4k 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
974 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
303 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
1 answer
796 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
  • 573
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
  • 11.1k
0 votes
2 answers
598 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
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
24 votes
1 answer
35k 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
  • 465
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
1 vote
0 answers
79 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