Tag Info

New answers tagged

1

I've also had units tests fail for elusive reasons (it was Main Module in my case). While not an ideal solution; this worked for me (got successful install, haven't had any further strange behavior) and is suggested in the docs: Often it is useful to skip unit tests when performing a build. Adding the flag -DskipTests to the build command will only ...


1

Well, This link can help, is ArcGIS JS page, it had info and examples. Some of the examples could be nice for your interest.


3

Your are not modifying vector, but features "copies" get with getFeatures. You need to get the feature.id() and updateGeometry using dataProvider of the vector or directly using methods of the vector layer (inside an editing session) you can find reference of the methods in: for QgsVectorDataProvider: virtual bool changeGeometryValues (QgsGeometryMap ...


1

This is a Subversion centric answer as I don't use git et al.. For library code that gets reused in multiple python add-ins/python toolboxes/script tools, we include the library package/module in the add-in/toolbox/tools repo as an external file via an svn:externals property. Updating the external files is automatic when an svn update is run on the ...


0

The OSM wiki page is perfect : http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Lon..2Flat._to_tile_numbers_2 Here is the extracted answer (in pseudo code) for quick reference. Given Longitude/latitude/zoom to tile numbers : n = 2 ^ zoom xtile = n * ((lon_deg + 180) / 360) ytile = n * (1 - (log(tan(lat_rad) + sec(lat_rad)) / π)) / 2 Given Tile ...



Top 50 recent answers are included