Questions tagged [api]
Application programming interface (API). A set of interfaces, methods, protocols, and tools that application developers use to build or customize a software program.
39
questions
119
votes
8
answers
98k
views
Choosing OpenLayers or Leaflet? [closed]
I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver ...
5
votes
3
answers
28k
views
Add an API key to QGIS for QOSM layer
Could someone let me know how I add a API key to QGIS 2.14.10. The diagonal API key required is still on my map layer. Bit of a novice on QGIS.
4
votes
3
answers
3k
views
Download MODIS/MCD19A2 AOD product with R
I'm looking for a programmatic way to download MODIS/MCD19A2 AOD data in R. So far, I've found a pretty solid R package called MODISTools that works nicely with the MODIS/VIIRS RESTful API. However, ...
3
votes
1
answer
3k
views
How to perform a cascaded combine from python script in QGIS?
I'm working with a large dataset, and I need to be able to combine up to 400,000 polygons. I have been using the QgsGeometry::combine(QgsGeometry* geometry) function and simply looping over all ...
1
vote
2
answers
12k
views
Getting elevation at particular coordinate (lat/lon) programmatically (but offline)?
I would prefer something in python (but I would settle for any programming language) and something that I could install on my own server so the only limitations would be hardware (no throttling, no ...
1
vote
1
answer
1k
views
Accessing geonetwork API by JSESSIONID cookie
I am trying to execute this simple request on geonetwork, which should give me catalog statistics details (about private datasets for the corresponding user).
http://localhost:8080/geonetwork/srv/eng/...
32
votes
2
answers
2k
views
Best-practices for databases and APIs with geographic data spanning the antimeridian [closed]
What is the best-practice for storing geographic features (lines, polygons and their multipart equivalents) when these features span the antimeridian (±180° longitude), and need to be sent to and ...
27
votes
8
answers
15k
views
Geocoding APIs comparison
Is there a good updated source for comparing existing Geocoding APIs (i.e. Google, MapQuest) and their features?
I'm really interested in their language support as well. For example, Google has ...
12
votes
3
answers
11k
views
Downloading sentinel products using API?
I want to be able to automate or batch download Sentinel data (in particular S2).
I am trying to use the OData protocol as described in the Sentinels Scientific Data Hub user-guide on APIs and batch ...
5
votes
3
answers
11k
views
Seeking route calculation service to get route between several points?
I need a routing service with an API callable from a web or desktop application.
I have several points: a start, an end, and intermediate points in the disorder. I expect the routing service to send ...
3
votes
2
answers
2k
views
[GDAL API]: can't save image in some formats
edited "32-bit buffer" below means that it contains 32-bit rgba pixels.
I need to save image to file from 32-bit memory buffer. Code below works well for that when I use TIFF format. In this case ...
0
votes
1
answer
598
views
Downloading Subarea vs Clipping Images to AOI using Planet API? [closed]
This question is associated with the two Planet API tutorials: "Download a Subarea" and "Clip Images to AOI".
It seems to me that both tutorials demonstrate methods to download only a piece of an ...
11
votes
2
answers
1k
views
Designing an API for spatial data
I am considering trying to make an API so that I can make some spatial datasets available to colleagues for analysis.
Part of my work has been to analyze and prepare data which can then be used for ...
8
votes
1
answer
3k
views
Export .qml file using QGIS API
Im loading a shapefile using the method QgsVectorLayer() and adding a style to it using the method loadSldStyle() and the path to the sld file. So far so good.
What I want now is to export that style ...
7
votes
1
answer
2k
views
How to get layer variables using QGIS Python APIs?
How can I access the layer variables defined by the user from QGIS Python APIs?
6
votes
2
answers
1k
views
Where should I add the API key in ORS Tools?
I want to make an isochrone for my halte and station points. But I have to configure ORS Tools with my API key. The problem is, I can't find any configuration button in my ORS Tools plugin.
How should ...
6
votes
1
answer
3k
views
Add a OpenStreetMaps road data layer on Google Maps API v3
I've successfully embedded a Google Maps API v3 map on my site, and added OpenStreetMaps (OSM) as the base layer. Is it possible to use Google's tiles as the base layer, and then overlay street data ...
5
votes
1
answer
612
views
How to refresh layers independently?
I'm writing a C++ application using QGIS API and I would like to improve the performance.
I want to render 5 layers:
one raster layer using gdal to load Bing/Google Map tiles
4 custom QgsMapLayer (...
5
votes
3
answers
6k
views
Implementing Add Feature action using PyQGIS
I'm trying to implement / reuse Add Feature functionality in my python plugin. there a class/function that handles geometry creation on canvas based on layer geometry definition? I'm checking API but ...
5
votes
2
answers
7k
views
GDAL C++ API: How to create PNG or JPEG from scratch
I'm new to GIS and GDAL. My question probably is very basic, but I couldn't find answer. May be I don't understand GDAL ideology.
I need to create raster images from scratch, for example, JPEG or PNG....
5
votes
2
answers
3k
views
Is there a public API that can be accessed with Python and will geocode Points of Interests?
I recently downloaded tagged hospital data from OpenStreetMaps.org using the API. Some of the data have a 'node' tag which are attributed with a lat/long while other data are tagged as 'way' format ...
4
votes
1
answer
637
views
How to calculate correct angles for lat/lon points with the QGIS API?
I am trying to use qgis API to calculate the angle between two points by using function azimuth of class QgsPoint ( http://qgis.osgeo.org/api/classQgsPoint.html ), and my CRS is EPSG:4326 - WGS 84 , ...
4
votes
6
answers
3k
views
What map source/API/tools are recommended to create Web GIS/Mapping application utilising Microsoft technologies? [closed]
I'm researching about technologies (around Microsoft tech) to create mapping application and would like to have advice/suggestions.
Brief requirement to build mapping application with Microsoft ...
2
votes
0
answers
325
views
Problem on running a sample code of QGIS3 C++ API
I have written a code using QGIS 3 C++ API. But there are runtime errors. My environment is:
Windows 10 64bit
Qt 5.15.1(MSVC 2019)
Qt Creator 4.13.1
QGIS 3.x.x
using osgeo4w-setup-x86_64.exe, and ...
2
votes
1
answer
515
views
SVG Issues in QGIS API
I'm using QGIS-2.4.0 to developing an application.
I created my own custom MapCanvasItem for showing SVG. It is great to load a SVG from symbol library that QGIS provides(such as d:\QGIS Chugiak\...
2
votes
2
answers
3k
views
Google Maps JS API v3 - Polygon formation
So my big question here is how does the Google Maps API determine the "inner" versus the "outer" for a filled polygon?
Playing around with the polygon creator @ http://www.the-di-lab.com/polygon/ ...
2
votes
1
answer
664
views
Difference between qgis.utils and qgis.core?
Please, can you tell me what is the difference between qgis.utils and qgis.core ?
I'd like to understand step by step the QGIS API Document.
2
votes
1
answer
1k
views
GDAL OGR API GeoJSON from other datasource as string NOT file
Using the GDAL/OGR API, I need to be able to convert various types of GDAL datasources into GeoJSON. However, I do not want to write the GeoJSON to a file, but rather I need to just return the text ...
1
vote
1
answer
511
views
Is GeoPlanet dead?
I'd like to start a side project that will rely heavily on the relationship between places, and GeoPlanet does this wonderfully. However, the latest version I can find of the data GeoPlanet Data v7.10....
1
vote
3
answers
1k
views
Adding vector layer feature from REST API URL (HTTPS) in QGIS
I'm simply trying to import this feature directly into QGIS 3.16.3-Hannover as a new vector layer:
https://api3.geo.admin.ch/rest/services/api/MapServer/find?layer=ch.swisstopo.swissboundaries3d-land-...
1
vote
1
answer
541
views
Planet API not being accepted for quick search but is on stats
As is similar on another post about this problem I receive the error,
"message": "Please enter your API key, or email and password.",
"errors": []
when trying the script,
#API key stored as an ...
1
vote
1
answer
1k
views
How to access .shp file from local computer or some other server
Below is the code in which we can access a feature layer from ArcGIS sample server.
queryTask = new esri.arcgis.gmaps.QueryTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/...
1
vote
1
answer
2k
views
In cartodb, how can I insert a new row in a table via API?
We've discovered cartodb and we want to use it in our project, but in the API documentation we've only seen the sql.execute() method (docs) in order to insert a now row in a table.
Is this the way to ...
0
votes
1
answer
4k
views
Using GeoJSON as an input for GeoServer
I have an ArcGIS Online API that I would like to use as an input/store in my GeoServer so that I can publish a service from GeoServer. The format available thorough the API is GeoJSON. I can see that ...
0
votes
1
answer
659
views
Does Esri Geodatabase contain style information?
I've downloaded the C++ API SDK for reading/writing Geodatabases from:
http://appsforms.esri.com/products/download/
I don't know much about this file format and how it relates to ArcGIS's internal ...
0
votes
1
answer
632
views
Using the API of QSpatiaLite plugin
I am using the popular QSpatiaLite plugin for QGIS. Since I am creating and modifying SpatiaLite tables directly with Python (using pyspatialite), I wonder whether I can automate tasks such as ...
0
votes
1
answer
787
views
Authentication to GeoNetwork by third party application
I linked the users table of GeoNetwork 3.10.2 with my application database so everytime I create/update a user in the app is also created/updated in geonetwork, now I want that once I log in the app, ...
0
votes
1
answer
2k
views
Creating datastores in GeoServer REST API with external file option
Following the REST API documentation here I should be able to do a PUT request to /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}. Problem is I cannot get how to do it with an ...
0
votes
0
answers
169
views
QGIS: JSON Load error: Invallid Layer cannot be loaded in: Origin is GeoJSON
So far I have tried to load in a GeoJSON inside QGIS, but I get a problem doing so.
To give some context I am testing a system, where we can get a JSON more specifcally a GeoJson from a API. for now ...