Tag Info

New answers tagged

1

Here is one solution, perhaps there is other but this one works first create the layer : qDebug() << "Create Memory Layer Tracks"; QgsVectorLayer * lVectorLayer = new QgsVectorLayer("Point","TRACKS","memory"); lVectorLayer->isValid(); qDebug() << "Vector valid :" << lVectorLayer->isValid(); QgsVectorDataProvider * lDataProvider = ...


1

Here is the solution gsGeometry * MyPoint; MyPoint = QgsGeometry::fromPoint(QgsPoint(PosX,PosY)); QgsGeometryMap MyGeometryMap; QgsFeatureId MyFeatureId; MyGeometryMap.insert(MyFeatureId,*MyPoint); or this way gsGeometry MyPoint; MyPoint.fromPoint(QgsPoint(PosX,PosY)); QgsGeometryMap MyGeometryMap; QgsFeatureId MyFeatureId; ...


1

At this moment CartoDB only offers a single API key per user which as you say, is full control.


0

I found the solution A lot of post on stackexchange showme the way to do that Here a sample extract of the code in c++ : //Declaration CMyQgsMapCanvas * mpMapCanvas; QgsMapToolEmitPoint * mpClickPoint; mpMapCanvas = new CMyQgsMapCanvas( this, NULL); mpMapCanvas->create(); mpMapCanvas->setProjection(); mpClickPoint = new ...


3

qgis.utils is a set of utilities used by the application to do Python based things. Some of these things are setting up plugins, adding Python error handling, etc. qgis.core is the main core library for QGIS. This holds most of the non ui based objects that you can use to build a plugin or standalone application. This library holds things like layers ...


0

Yes, OSM provides boundaries if you pass the parameter polygon_geojson = 1, I use MapQuest webservice which is a mirror of OSM: var mapquest_search = 'http://open.mapquestapi.com/nominatim/v1/search.php'; var params_mapquest_search = { params : { polygon_geojson : 1, 'accept-language' : 'pt-BR', addressdetails : 0, format ...


0

Mapzen provides boundary data for all admin levels extracted from OpenStreetMap data as GeoJSON, divided by country as part of their Borders project. The data is available for download at https://mapzen.com/data/borders/


1

Baed on the Openstreetmap database, there is a service https://osm.wno-edv-service.de/boundaries/ which lets you select and download boundary data in various formats. Just expand the nodes on the left panel of the countries you want. If this is too slow for you, take the data from http://www.gadm.org/country or http://www.naturalearthdata.com/downloads/.


1

You can export data for several boundaries from the main OSM database. Administrative boundaries are complete in OSM for admin_level=2 that are for whole countries, and they are very up-to-date. The deper you go in admin_level there are countries that have 100% coverage for each place region, other countries still have some gaps. When using data from OSM, ...


0

Here is the code without error QgsVectorFileWriter * writer; writer = new QgsVectorFileWriter("/tmp/myshapes.shp", "CP1250", MyQgsFields, QGis::WKBPoint, mpMapCanvas->mQgsCoordinate, ...


1

If you review the API (http://qgis.org/api/classQgsVectorFileWriter.html) for QgsVectorFileWriter, the constructor looks like: QgsVectorFileWriter::QgsVectorFileWriter ( const QString & vectorFileName, const QString & fileEncoding, const QgsFields & fields, QGis::WkbType geometryType, const ...


0

Please feel free to try out our api. The TravelTime Platform. We allow 2 main events on our API (The TravelTime Platform) TimeFilter - allows you to receive time from one origin to 1000's of lat / lngs by any mode of transport in under a second. TimeMap - Show the catchment area by polygon - use for display or database search. enter link description here ...


2

I figured out where I went wrong. I forgot to set my limit for the data, so by default the limit was set up to be 25. This was the reason why I was getting data just for the first month. Thanks for your help.


1

From the looks of it, you are getting a python error because the headers argument is expecting a dictionary, not a string The following works for me on the entire date range: import requests url = "http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCNDMS&locationid=ZIP:28801&startdate=2000-01-01&enddate=2010-01-01" # replace 'myToken' ...



Top 50 recent answers are included