Application programming interface (API). A set of interfaces, methods, protocols, and tools that application developers use to build or customize a software program.

learn more… | top users | synonyms

138
votes
18answers
59k views

How do various JavaScript mapping libraries compare?

I am working on a web-based mapping system and I'm trying to figure out the best/most appropriate library to use. There are a few of them about and they each have pros and cons. Even after trying a ...
2
votes
2answers
2k views

POI Datasets for North America

I use foursquare because it contains a lot of POIs. Which database do you use when you need a point of interest in North America?
16
votes
4answers
5k views

Is there a programmatic way to retrieve Landsat 8 Satellite Images?

I have not been able to find out this myself, but is there a way to programmatic access Landsat 8 Satellite Images? I know that I can go to USGS EarthExplorer to search and browse through the scenes, ...
2
votes
1answer
1k 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 ...
56
votes
6answers
32k views

Should I use OpenLayers or Leaflet?

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 ...
16
votes
5answers
9k views

Geocoding API 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 ...
3
votes
3answers
6k views

How can I fix “ImportError: No module named qgis.core”?

First of all, I'm using Python 2.7.3, QGIS 1.8 (Lisboa) on Windows 7 pro 64 bits. Now let's go to the actual question: I have written some code (Python) that works well within the QGIS built in ...
1
vote
1answer
567 views

How to programmatically export a composition as image?

QGIS Print Composer has tool "Save As Image" and I found appropriate function in QGIS source code exportCompositionAsImage. Is it possible to get access to existing Print Composer from Python console ...
1
vote
2answers
392 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 ...
11
votes
10answers
3k views

What are the advantages of using Rails for a GIS/mapping application? [closed]

I've heard some good things about Rails, but I don't know much about it yet. There are only a few questions about Rails on GIS.SE (and there's not even a Rails tag). Is it worthwhile to learn about ...
3
votes
3answers
4k views

Do you know a service route calculation to get a 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 ...
6
votes
1answer
2k 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 ...
0
votes
4answers
1k views

Unable to make infowindow work in CartoDB runtime layer

I'm trying to personalize a layer created with CartoDB. The layer is created at runtime and the problem is that I cannot make work even easy things like custom infowindow or legends or click ...
5
votes
1answer
140 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 ...
4
votes
7answers
2k 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 ...
3
votes
1answer
209 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 (...
2
votes
2answers
2k 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
1answer
232 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 , ...
1
vote
1answer
73 views

How to re-render only a single layer on a mapcanvas?

In my application I have a mapcanvas that contains several layers. some of layers need to be updated or rendered again because data has been changed ( like the geometry or some attributes ) Is there ...
1
vote
1answer
804 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
0answers
393 views

GeoServer REST API Timeout Error

I'm trying to upload a 20MB shapefile using the REST API, but gets a timeout error. I can upload smaller files without problems. I'd like to be able to upload a shapefile of any size without ...
1
vote
0answers
37 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
2answers
1k 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....
1
vote
1answer
1k 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
1answer
439 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 ...