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

0
votes
1answer
820 views

OSRM API - nearest point fed into routing

I am using the OSRM API to (1) determine the nearest point on a road segment from a give random point with http://server:5000/nearest?loc=_lat_,_lon_ The returned coordinates are used then as an ...
0
votes
1answer
21 views

NOAA API data for past monthly mean Temperature and precipitation

I am trying to use the NOAA API to get data on monthly mean temperature and precipitation for the past 10 years. I wrote the following python code (the variable "token" in the code is the API token ...
136
votes
18answers
53k 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 ...
0
votes
0answers
11 views

How can I extract the latitude and longitude from a s57 File [duplicate]

I had to extract the longitude and latitude from a s57 file, in order to superpose a satelite view from the same point. These coordinate will allow me to get the exact position on google map by ...
1
vote
1answer
27 views

How to render the Sea depth level in different color?

I would Like to adapt an old code in c++ using the api qgis 1.6 : const QgsRenderer* lrenderer = pLayer->renderer(); if( lrenderer == NULL ) lrenderer = new QgsSingleSymbolRenderer( ...
0
votes
0answers
9 views

Problem on rendering categorizedSymbolRendererV2

Finally my code works but the renderering display just one color instead of 4 I don't know why, I follow the sample code of the snorf.net website and the sample code in the qgis python programming ...
1
vote
1answer
19 views

Information about the setDataDefinedProperty

In the QGis C++ API v1.6 there is a function called setlowerValue to set a value for a specific Symbol In my application i use QGis C++ API 2.8.2, i try to understand how the function ...
7
votes
6answers
5k views

Google Earth plugin deprecated. Which alternatives?

I've got a costumer of mine asking for an integration of the Google Earth Plugin to his website. From Google earth Plugin site I read this: Google Earth Plugin API has been deprecated as of ...
1
vote
0answers
18 views

How to write a test suite for QGIS standalone application

I have a rather simple QGIS standalone Python app (2.8.2, Windows 7/64), with some published methods to create different types of geometric primitives (rectangles, circles). class MyApp(QMainWindow, ...
0
votes
1answer
20 views

Problem with QgsCoordinateReferenceSystem

I would like to change the coordinatereferencesystem for my application I have this code : QgsMapRenderer* myRender = mapRenderer(); mQgsCoordinate = new ...
0
votes
0answers
14 views

help for rendering s57 file

I am working on a specific project based on QT 4.5 and QGis API C++ 2.8.2 I have a S57 File, I want to load it, and render it into a canvas My canvas is created, the build and link is ok,no error, ...
0
votes
1answer
20 views

looking for documentation about exploiiting OSM file with c++ API

My application is written in QT4.6, i use the C++ API of QGIS 2.8.2 i had to read and display OpenStreetMap in my canvas in my application so, i am looking for some documentation or tutorial for ...
0
votes
0answers
11 views

how can i change property of a symbol using qgis 2.8 c++ api

i have an application written in QT 4.6, and use the C++ API of QGIS the application will display the data of the s57 file in a MapCanvas i managed to read the file but how can i , for a specific ...
41
votes
5answers
23k 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 ...
1
vote
1answer
898 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
0
votes
1answer
215 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
0
votes
1answer
274 views

Geocortex Viewer: Running a Workflow with Arguments

I have a webpage with the Silverlight Geocortex Viewer embedded in it. Through the browser's developer console, I can run commands through it such as ...
2
votes
2answers
857 views

What Reliable Reverse Geocoding API Can I Use?

I am working in a company where our team requirement is to do reverse geocoding lookups. Below is our requirement. To give you more background, the 3 geolocation-related needs I have are as follows: ...
1
vote
1answer
149 views

APIs to render custom WMTS source

We have a custom WMTS source which we want to show on Android and iOS. What would be my options to do this using native APIs (so no Leaflet or Open Layers)? An ideal API not only shows the maps but ...
1
vote
1answer
286 views

Geoserver api: how to determine a layers respective workspace?

I am using the geoserver api to find information about layers that are available. I am using: http://localhost/geoserver/rest/layers.json to get a dynamic list of all layers. If I then select a ...
20
votes
5answers
7k views

What reliable GeoCoding service would you recommend me?

I'm looking for a web service providing a full address based on coordinates (and reverse). I'm ready to pay for that service. I don't want to use Google's API.
2
votes
1answer
178 views

Need to get distance matrix for large set of points on-the-fly

I do not know much about GIS and I do not know much of the jargon. Hopefully you can help me a bit here because I am really unaware of the services and software available. My problem is as follows: ...
0
votes
1answer
22 views

Error during building an application c++ using api qgis 2.8

I have an apllication that need an object the object type is QgsSymbolV2 but i cannot do that : QgsSymbolV2 * lSymbol = new QgsSymbolV2(); because in the class qgssymbolv2 there is no constructor ...
2
votes
1answer
241 views

How to load a *.qgs file in a C++ QGIS standalone app?

I'm using QGIS-2.4.0 API to develop a standalone app by C++. I saved a test.qgs file in QGIS Desktop software, in the project, there was one layer and it was visible. Then I loaded the test.qgs ...
0
votes
0answers
8 views

API URL for my own uploaded dataset?

I'd like to use CartoDB.js to make an interactive map using a dataset that I uploaded to CartoDB. How do I find the API URL for that dataset? Thanks.
1
vote
0answers
45 views

QGIS - Pop-up menu not displayed when right click on a layer in layer tree view

I'm developing a custom QGIS application using the QGIS API. I've been using the API provided with QGIS Brighton (Version 2.6.1) and have been developing the application in Python in a Windows 7 ...
1
vote
2answers
58 views

How can I get the current center of the view in OpenLayers 3?

I would like the get the center (coordinates) of the current view. I need it for the geoserver print module. I've found the code var center= ol.extent.getCenter({}); but it unfortunately doesn't ...
2
votes
3answers
325 views

Ways to extract DEM for urban areas using Google Maps?

Is Google maps' elevation API suitable to obtain the high resolution elevation data for areas that have 3D building such as Manhattan? Would the API for example yield a significant different value on ...
0
votes
0answers
61 views

google geocoding api usage restrictions and other free api options

I would like to use the google geocoding api to geocode a few thousand addresses. I understand the daily limit for a free account is 2,500. I want to retrieve the coordinates and then map them in ...
3
votes
0answers
214 views

Closest set of points to another set of (predefined) points

I have 10 sets of points which I call templates that I have manually classified from 0 to 10. Each point is a X, Y coordinate in a text file. Each template has 5-8 points. I have new sets of points ...
0
votes
1answer
31 views

CartoDB Update API

Im uploading a csv with the following command: (attached) curl -v -F file=@/var/www/html/map.csv "https://account.cartodb.com/api/v1/imports/?api_key={apiKey}" I had item_queue_id from the response ...
2
votes
1answer
19 views

Looking for API providing accurate timezone data

I'm looking for an API providing accurate timezone data. Thus far managed to find earthtools api but daylight saving time info isn't very accurate. I need to lookup by latitude/longitude or as an ...
1
vote
3answers
2k views

How to export a shapefile through the Wikimapia API?

I am trying to download a kml file from Wikimapia containing information on quaters (districts), the very same information that is nicely available on Wikimapia. What I want to get at the end of the ...
0
votes
1answer
70 views

Converting CAD to map tiles

My team is working on an application that has a map feature, and we want to extend this feature greatly. Among other things, we want the user to be able to load a CAD drawing, and place it on the map. ...
1
vote
0answers
23 views

Wikimapia export all geoglyphs category in an area

I am creating a page with all geoglyphs in Peru. I am looking to download from different areas and upload to google maps, thus I need a kml file. Wikimapia seems to have quite a bit of these and I ...
0
votes
1answer
67 views

Extract geometry from citygml data using citygml4j

I have a citygml file with some buildings. And I am trying to extract the geometry of the polygon in that building using the citygml4j library. I have looked at the FeatureWalker class but I am unable ...
0
votes
1answer
46 views

What packages are required to install C++ API on Linux Mint 17?

What packages are required to install C++ API on Linux Mint 17? I already have access to the Python API (installed via “python-qgis” package), but no C++.
0
votes
1answer
48 views

Download US census data profiles?

US census summary file information is available on the census ftp server: ftp2.census.gov/acs2013_5yr but I can't seem to find the data profiles information anywhere. The only source appears to be ...
0
votes
0answers
98 views

Implement Leaflet search box for 370,000 points stored in PostGIS served as raster tiles

I have built http://opentrees.org. It's a TileMill/PostGIS/Leaflet stack with raster tiles and UTFGrid interactivity. I'd like to add a search box, so users can search for a feature – trees in this ...
2
votes
1answer
89 views

How to implement Add feature action from 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 ...
1
vote
1answer
34 views

ArcMap, Editor and Geodatabase API edit session question

Say a feature class from a File GDB is added to ArcMap and an editing session on it is in progress. What happens if an add-in launched from the same ArcMap session tries to start an edit session using ...
11
votes
8answers
3k views

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

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 ...
7
votes
2answers
233 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
1
vote
1answer
776 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 ...
2
votes
3answers
3k 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
2answers
341 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 ...
0
votes
0answers
32 views

What's the most detailed level of location can I get only by knowing the ZIP code?

I am looking at APIs to get location information from ZIP codes. So far the most detailed level of location I could get was Country --> State --> City. Does ZIP code also map to neighborhood / ...
0
votes
1answer
76 views

Is there a web service to get the area of a city?

I'm looking for an api/service/db that contains the surface area of every city in the world. For example, http://en.wikipedia.org/wiki/London, the box on the right contains that information. I've ...
1
vote
2answers
136 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 ...
4
votes
2answers
1k views

programmatically create and publish geotiff layer in geoserver

We need to automatize process of creating datastore and publishing geotiff layer. Also, before publishing we need to change Declared SRS and to save Native Bounding Box to our database. Geotiff file ...