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

3
votes
0answers
311 views

How to download GeoTIFFs using the REST API in GeoServer 2.2?

I am using GeoServer (Version 2.2 Git Revision f5b5c35076b52d02eb9cca3fa3232bc17b5f6d80 Build Date 19-Sep-2012 18:33 GeoTools Version 8.2 (rev 704570474295e339c08d1ca140d884f23a8a03a3)) and I've got ...
3
votes
0answers
267 views

GeoServer REST API: Creating Database Data Store does not persist password

I'm passing the XML created by the method below to a GeoServer REST API request that successfully creates a postGIS data store. However, password is not persisted. I have to update the password ...
3
votes
0answers
63 views

Is there an easy common gis abstraction available in .Net

Is there an easy common gis abstraction available in the .Net programming world that cuts the dependency to a concrete gis implementation, e.g. to the esri silverlight/wpf sdk. ... for example ...
2
votes
2answers
130 views

Can't get correct number of populated places for a place

I am trying to get a number of populated places for example for Andorra since it is a small number. Here is a geonames site with 10 places: http://www.geonames.org/AD/largest-cities-in-andorra.html ...
2
votes
3answers
385 views

How to insert reversed map with Google Maps API?

Is there a way to put map with Google Maps API to a website, but upside down? North must be down, and south up. Is there any possible way to do it? I really need to put map that way and I need really ...
2
votes
1answer
256 views

Where are the raw data sources for all these maps?

Pretty straightforward question here. At an increasing rate I see crowd sourcing data being mapped to great effect. Where are the raw data sources for all these maps? I know they vary but I don't ...
2
votes
3answers
195 views

I have n points, how do I find the closest one from a point p by road?

I'm currently working on a map with stores and clients. I want to find the closest store by road from a given client, with the aim of simulating the creation of a new store. Requirements: ...
2
votes
2answers
830 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 ...
2
votes
1answer
86 views

Is the QGIS blog broken?

I would like to use the QGIS API in my own program to display maps .... So I thought I would find some tutorial here : http://hub.qgis.org/wiki/quantum-gis/Writing_custom_Applications_with_QGIS_API ...
2
votes
2answers
1k views

Online service to transform coordinates from WGS84 to NZTM and NZMG

Has anyone come across a free web service / REST API to transform coordinates? I'm particularly interested in transforming from WGS84 to: New Zealand Geodetic Datum 2000 (NZGD2000 / NZTM) and New ...
2
votes
1answer
138 views

How to return geo-tagged social media posts?

I have seen quite a few ESRI web apps that utilize Geo-Tagged social media posts as a point data layer. I'm wondering how one goes about querying things like Twitter, Flickr and YouTube to return ...
2
votes
1answer
353 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 ...
2
votes
1answer
689 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: ...
2
votes
1answer
181 views

Cache geodjango query with bounding box filter

Im using geodjango (postgis) to retrieve points contained inside a bounding box (made by leafletjs), it works so nice, but now I want to cache this query. A tipical query is one like this: ...
2
votes
1answer
78 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 , ...
2
votes
2answers
377 views

Retrieve data from MongoDB in OpenLayers

I wonder if it's possible to retrieve "directly" data from MongoDB to display them in an OpenLayers Map ? Maybe using some sort of API ? If you know more about this, or if you think it's a stupid ...
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
1k views

Google maps API charset for http request ?? Geocoding Requests

im sending the following request to maps api but receiving the json response with chars problem. Can some one point me in the right direction to set charset correctly ? Request -- ...
2
votes
1answer
46 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 ...
2
votes
1answer
46 views

How to write a custom canvas item for SVG marker by subclassing QgsMapCanvasItem in QGIS?

I want to subclass QgsMapCanvasItem for SVG marker in QGIS, I looked up a similar topic in stackexchange and QGIS mailing list, I found that this is similar to mine, I did exactly what @Nathan W did. ...
2
votes
1answer
144 views

How to remove legends in cartoDB?

I am able to add and remove cartoDB layers over my google maps but after removing layer the legend stays . how to remove that legends ? here is code that i used ...
2
votes
1answer
77 views

Road Miles Calculation without Google Maps

We have two ZIP codes we want to calculate the road mile difference. Google maps states you cannot use their API if you do not show a map. Is there another service that provides this type of ...
2
votes
1answer
274 views

US Census API - data by census tract

Using the US Census Tract API I can search for the age population in different parts of the country http://api.census.gov/data/2010/sf1?key=[key]&get=PCT0120125&for=county:* returns list of ...
2
votes
2answers
652 views

Can I use leaflet to access a WMS service published as an OpenLayers javascript API?

I would like to add this layer to a site I'm working on that uses leaflet: http://116.240.195.134/vicmapapi/UserGuide.jsp The API itself is a javascript file based on OpenLayers: ...
2
votes
2answers
2k views

'invalid parameters' on ArcGIS rest API used from Silverlight

I have an Silverlight application from which I'm trying to create new features to ArcGIS server. Every time I get error {\"error\":{\"code\":400,\"message\":\"Unable to complete ...
2
votes
1answer
864 views

How to draw lines, dashed lines, routes and add images to the QGIS mapcanvas?

I need to draw a rectangle in a map canvas and inside it draw routed dashed lines and add small images to it. These actions are to be performed using the QGIS API. Is there any place with examples ...
2
votes
1answer
117 views

Is it possible to cancel a request for a KmlLayer, and load a different layer, before it is actually visible

Having asked for a google.maps.KmlLayer, and whilst waiting for it to load, is it possible to cancel the request? Calling layer.setMap(null); seems to causes an error if the layer is not yet visible. ...
2
votes
1answer
2k views

Google Maps API v3 vs v2 (JavaScript): overlay problems

I have been using the Gmap API (v2) for dynamically displaying some data: oMap.map = new GMap2(document.getElementById("map")); oMap.geoXml = new ...
2
votes
0answers
18 views

Querying a shapefile and returning values?

I have a lot of experience making maps in ArcMap. I don't have much experience programming or working with APIs. Here's the (simple) problem: I create a shapefile of a region and then load the ...
2
votes
0answers
40 views

Can I use the Google Elevation API for academic research (licensing)?

I would like to use the Google Elevation API to generate about 5 elevation maps for master's degree research on aircraft collision avoidance. The data would be meshed and used in simulation to ...
2
votes
0answers
50 views

How to develop a real-time navigation App using QGIS API?

I want to develop a navigation application based on QGIS using C++, for live tracking. I think it is quite normal for GIS to do such things, especially QGIS as it is a very mature GIS platform. But ...
2
votes
0answers
19 views

Finding equivalent API-supported data to the 2000 Census

I'm having some difficulty choosing Census datasets for a project that involve various SES measures at the block-group level. I'll be looking at things like median household income and percentage of ...
2
votes
1answer
68 views

Why aren't my basemap tiles showing up via ArcGIS Server

I have a leaflet js script referencing the ArcGIS server imagery api. The code worked fine up until about two days ago. Now when I click on the layer there's a gray background. I am using my local ...
2
votes
0answers
454 views

3D maps on web application [duplicate]

1) Is there any web API which can show 3D trajectory below earth surface and can consume the ArcGIS feature service which can work closely with ArcGIS web platform. 2) Is there any way to publish ...
2
votes
1answer
1k views

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS Java script API

I am new to programming in JSAPI. I have two dynamic layers and I want to set the property setMinScale(scale) and setMaxScale(scale) to layers so how do I Set ? ex. I tried using ...
2
votes
0answers
22 views

Cloudmade Web Maps API Geocoding Issue [duplicate]

Possible Duplicate: Cloudmade Web Maps API Marker Clustering problem I'm at Geocoding in Cloudmade Web Maps API. I've the code below. Whenever I try to access the page, content of elements ...
1
vote
2answers
1k 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?
1
vote
2answers
2k views

extract elevation values along a line using Google Elevation API

I note that there is the Google Elevation API. I see they have an example at the bottom showing an elevation profile for a line. Is there a premade service someone has put up on a website for me to ...
1
vote
1answer
2k 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
3answers
1k 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 ...
1
vote
1answer
795 views

Using GeoServer REST API and C# to create Layer Group

Following information at this link in the section on creation of layer groups, I've created the method(C#): public bool AddToLayerGroup(string layerGroupName, string layerName) { ...
1
vote
1answer
773 views

sending a XAPI-Request to the API-Server - over http

pretty new to Geo-Informatics so do not bear with me if my questions sound like newbie-questions: can i do some requests on POIs of Openstreetmap with XAPI. doing like so: i send a request to the ...
1
vote
1answer
72 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
1answer
755 views

How to add pins to my map?

Is there a way to add locations and info windows to my own map in .tif format? I'm using MySQL and PHP. Can I use Google Maps API pins but not their map? I thought I can put my georeferenced map ...
1
vote
1answer
35 views

Including WMTS Layer from API in Openlayers2

I´ve generated a map API from the GBIF data portal. It shows points from the country Mali. I included the API as a WMTS in Openlayers2, but I dont know how to change the xyz accordingly, so that my ...
1
vote
1answer
165 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 ...
1
vote
1answer
136 views

using WebTiledLayer function

Using esri javascript api version 3.8, I am trying to use some cached tiles from our server at http://hexe.er.usgs.gov/ifhp/will/tiles/ using WebTiledLayer. I believe that our tiles are set up as ...
1
vote
1answer
103 views

jquery communication with arcgis services

I am working with the ArcGIS JavaScript API for my application. My app users are stored in a table published in a map service. Whenever a user wants to connect to the app, he needs to provide a ...
1
vote
1answer
205 views

How to request a limited no of features in Overpass api?

I am using Overpass api to query Building data from OpenStreetMap. the query string is like this (way[building](bbox);node(w););out body; This works really fine (the bounding box is specified by ...
1
vote
1answer
248 views

Where is the ArcGIS Workflow Manager REST API documentation?

I hope it is online and I'm just missing with my searches. I'm looking for this API documentation for 10.0 (but I will +1 answers relating to the 10.1 version):