OSM digitizing road map by shapefile

I have shapefile with roads. I want to digitize some of the objects in shapefile to OSM, because I allways use OSM shapefiles and I have something to give to. What software should I use? I have JOSM installed. Is it enough?


How to use replaceDataSource to replace data source for multiple layers?

I appear to be having difficulty with using 'replaceDataSource'. ESRI has atrocious documentation on updating and fixing data sources, and almost everything I have read on the subject is almost what I am looking for, but not quite. What I am looking for is a way to repair multiple map documents without having to specify the name of each layer that has a broken data source. The code I have written so far **_should_** loop through the map documents in a directory, find which layers have a broken data source and determine if it is a shapefile, personal geodatabase feature class, file geodatabase feature class or a raster. The code determines the name of the feature class or shapefile, and uses the 'replaceDataSource' to fix the broken data source. When the script is run in the Python window in ArcMap, it points to their being an error on the lines that contain 'lyr.replaceDataSource' bit of code along with **Info: Layer: Unexpected error** When the script is run in PyScripter, the first datasource is a shapefile and it gives an error message but keeps running: **Info: Layer: Unexpected error** and nothing else. However, as soon as it runs into a feature class in a personal geodatabase, python crashes and gives this message: **exceptions.EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host** I suspect the primary reason the script is not working may be the manner is which the broken data sources are determined, but really have no idea. Currently using ArcGIS 10.2, python version 2.7.3 and PyScripter. Here is an edited, pared down version of the code, with the full code following:               import arcpy, os, sys, traceback          workspace = arcpy.env.workspace = r'c:\users\athom\Documents\GIS\GIS_computer_06_20_2013\GIS_LOCAL_MASTER\MAPS\Map_Projects\TEST'     mxdList = arcpy.ListFiles("*.mxd")     for Map in mxdList:         filePath = os.path.join(workspace, Map)         mxd = arcpy.mapping.MapDocument(filePath)         brkLayerList = arcpy.mapping.ListBrokenDataSources(mxd)         for lyr in brkLayerList:             if lyr.supports("DATASOURCE") and lyr.supports("WORKSPACEPATH"):                 brokenDataSource = lyr.dataSource                 if brokenDataSource.startswith('n'):                     newDataSource = brokenDataSource.replace(r'n:', r'c:\users\athom\Documents\GIS\GIS_computer_06_20_2013\GIS_LOCAL_MASTER')                     layerName = lyr.datasetName                     ChangedDataSet = newDataSource.replace(layerName, '')                     try:                         if "shp" in newDataSource:                             ChangedDataSet =ChangedDataSet.replace(' ','')[:-4]                             layerName = layerName+'.shp'                             lyr.replaceDataSource(ChangedDataSet, "SHAPEFILE_WORKSPACE", layerName, True)                             lyr.save()                         elif "mdb" in newDataSource:                             lyr.replaceDataSource(ChangedDataSet, "ACCESS_WORKSPACE", layerName, True)                             lyr.save()                         elif "gdb" in newDataSource:                             lyr.replaceDataSource(ChangedDataSet, "FILEGDB_WORKSPACE", layerName, True)                             lyr.save()                         else:                             lyr.replaceDataSource(ChangedDataSet, "RASTER_WORKSPACE", layerName, True)                             lyr.save()                     except Exception as e:                         print arcpy.AddError(e)                         print "N FAILED"                 else:                     print 'Data Source Lost'              mxd.save()         del mxd      Full code with error checking.               import arcpy, os, sys, traceback          workspace = arcpy.env.workspace = r'c:\users\athom\Documents\GIS\GIS_computer_06_20_2013\GIS_LOCAL_MASTER\MAPS\Map_Projects\TEST'     mxdList = arcpy.ListFiles("*.mxd")     for Map in mxdList:         filePath = os.path.join(workspace, Map)         mxd = arcpy.mapping.MapDocument(filePath)         brkLayerList = arcpy.mapping.ListBrokenDataSources(mxd)         for lyr in brkLayerList:             if lyr.supports("DATASOURCE") and lyr.supports("WORKSPACEPATH"):                 brokenDataSource = lyr.dataSource                 print brokenDataSource                 if brokenDataSource.startswith('N'):                     newDataSource = brokenDataSource.replace(r'N:', r'c:\users\athom\Documents\GIS\GIS_computer_06_20_2013\GIS_LOCAL_MASTER')                     layerName = lyr.datasetName                     ChangedDataSet = newDataSource.replace(layerName, '')                     print newDataSource                     print ChangedDataSet                     print layerName                     try:                         if "shp" in newDataSource:                             try:                                 ChangedDataSet =ChangedDataSet.replace(' ','')[:-4]                                 print ChangedDataSet                                 lyr.replaceDataSource(ChangedDataSet, "SHAPEFILE_WORKSPACE", layerName, True)                                 lyr.save()                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                              elif "mdb" in newDataSource:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "ACCESS_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                              elif "gdb" in newDataSource:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "FILEGDB_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                         else:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "RASTER_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                     except Exception as e:                         print arcpy.AddError(e)                         print "N FAILED"                      elif brokenDataSource.startswith ('n'):                     newDataSource = brokenDataSource.replace(r'n:', r'c:\users\athom\Documents\GIS\GIS_computer_06_20_2013\GIS_LOCAL_MASTER')                     layerName = lyr.datasetName                     ChangedDataSet = newDataSource.replace(layerName, '')                     print newDataSource                     print ChangedDataSet                     print layerName                     try:                         if "shp" in newDataSource:                             try:                                 ChangedDataSet =ChangedDataSet.replace(' ','')[:-4]                                 print ChangedDataSet                                 lyr.replaceDataSource(ChangedDataSet, "SHAPEFILE_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                         elif "mdb" in newDataSource:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "ACCESS_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                              elif "gdb" in newDataSource:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "FILEGDB_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                         else:                             try:                                 lyr.replaceDataSource(ChangedDataSet, "RASTER_WORKSPACE", layerName, True)                             except:                                 tb = sys.exc_info()[2]                                 tbinfo = traceback.format_tb(tb)[0]                                 pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])                                 msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"                                 arcpy.AddError(pymsg)                                 arcpy.AddError(msgs)                                 print pymsg + "\n"                                 print msgs                     except arcpy.ExecuteError:                         arcpy.AddError(GetMessages(2))                         print "n FAILED"                      else:                     print 'Data Source Lost'              mxd.save()         del mxd


How to resample polygon vertices so that they are evenly spaced in Arc 10

I have digitized the outline of many river channels (by both manually picking points and using streaming mode), but now I need the vertices to be evenly spaced (for input to another program). I tried to use the "densify" tool which was partially successful, but this adds additional vertices at the specified distance whereas I wanted to also simplify the sections that were streamed and have too many vertices. Has anyone any suggestions for a tool I might try? I have no experience in writing scripts, but may be able to modify another. Many thanks in advance.


Is it possible to generate a heatmap on the server-side using ArcGIS Server?

Using ArcGIS Server's JS API it is possible to generate a heatmap at runtime, as in the example at http://tmappsevents.esri.com/website/heatmap/index.html This requires having client-side access to the individual points in the heatmap, for example by downloading a feature layer to the browser. The problem is that the browser becomes unusably slow when working with more than a few thousand points. Has anyone been able to generate the heatmap on the server-side, and send it down as a cached or dynamic layer? I need the ability to generate the heatmap at runtime, so that the points could be filtered with the change immediately visible in the heatmap.


How to randomly select from existing points within each polygon?

I have a polygon layer (where each feature has a class attribute), and a point layer, and there are at least 10 points within each feature of the polygon. Is there a way to randomly select only "k" points of these 10 points for each feature (class) in QGIS? ![select only two of ten points that are within each polygon](http://i.stack.imgur.com/kRWI9.jpg) Thanks!


export postgis database

I'm totally new to the awesome PostGIS world, so sorry for the maybe silly question. After a while I was able to install postgres and postgis on my computer (debian testing) and I was also able to create some databases. Through the DB Manager of QGIS I have imported some shapefile into the database and that's ok. But now, if I want to export the entire postgis db as a single file (like SpatiaLite does) how can I do that? I mean, Spatialite creates a _real_ file into a directory while postgis no (or at least I haven't found it). Thanks guys and sorry for the simple question


qgis's georeferencer renders my white map with a translucent blue tint, can I prevent this?

I'm running QGIS 2.0.1-Dufour on MacOSX and when loading a PNG or TIFF into qgis as a raster its always getting rendered with a blue tint. Here's what it looks like before being loaded into QGis's Geoferencer. ![](http://i.stack.imgur.com/aTWnC.png) and after: ![enter image description here](http://i.stack.imgur.com/wNiTv.png) Is there any way I could save this file in photoshop or gimp that would allow it to maintain its original colorization? GDALINFO (png)                   davodavo$ gdalinfo color\ key.png         Warning 1: libpng: iCCP: Not recognizing known sRGB profile that has been edited         Driver: PNG/Portable Network Graphics         Files: color key.png         Size is 308, 588         Coordinate System is `'         Metadata:           XML_com.adobe.xmp=<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0">            <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">               <rdf:Description rdf:about=""                     xmlns:exif="http://ns.adobe.com/exif/1.0/">                  <exif:PixelXDimension>308</exif:PixelXDimension>                  <exif:PixelYDimension>588</exif:PixelYDimension>               </rdf:Description>            </rdf:RDF>         </x:xmpmeta>              Image Structure Metadata:           INTERLEAVE=PIXEL         Corner Coordinates:         Upper Left  (    0.0,    0.0)         Lower Left  (    0.0,  588.0)         Upper Right (  308.0,    0.0)         Lower Right (  308.0,  588.0)         Center      (  154.0,  294.0)         Band 1 Block=308x1 Type=Byte, ColorInterp=Red           Mask Flags: PER_DATASET ALPHA          Band 2 Block=308x1 Type=Byte, ColorInterp=Green           Mask Flags: PER_DATASET ALPHA          Band 3 Block=308x1 Type=Byte, ColorInterp=Blue           Mask Flags: PER_DATASET ALPHA          Band 4 Block=308x1 Type=Byte, ColorInterp=Alpha      gdalinfo (tiff) -- same blue tint                   Driver: GTiff/GeoTIFF         Files: colorkey.tif         Size is 308, 588         Coordinate System is `'         Metadata:           TIFFTAG_DATETIME=2014:07:09 17:27:31           TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)           TIFFTAG_SOFTWARE=Adobe Photoshop CS6 (Macintosh)           TIFFTAG_XRESOLUTION=143.9926           TIFFTAG_YRESOLUTION=143.9926         Image Structure Metadata:           INTERLEAVE=PIXEL         Corner Coordinates:         Upper Left  (    0.0,    0.0)         Lower Left  (    0.0,  588.0)         Upper Right (  308.0,    0.0)         Lower Right (  308.0,  588.0)         Center      (  154.0,  294.0)         Band 1 Block=308x8 Type=Byte, ColorInterp=Red         Band 2 Block=308x8 Type=Byte, ColorInterp=Green         Band 3 Block=308x8 Type=Byte, ColorInterp=Blue


Markers not displayed in xhtml in OpenLayers

I just started working with OpenLayers because I want to include a map on my JSF page (.xhtml files). I want to use the same feature that is demonstrated in this example: http://openlayers.org/dev/examples/styles-context.html I played with the code a little bit in the html example files that come with the .zip download. When I copied the code into my JSF .xhtml page, the map appears but the markers are not displayed. Here is the example code:               <script type="text/javascript">     //<![CDATA[     var map;     function init(){      map = new OpenLayers.Map('map', {maxResolution:'auto'});     var wms = new OpenLayers.Layer.WMS.InlineXhtml( "OpenLayers WMS",      "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic', format: 'image/svg+xml'} );      map.addLayer(wms);          // create 50 random features in the northern hemisphere      // give them a "type" attribute that will be used to style     // them by size     var features = new Array(50);                 for (var i=0; i<features.length; i++) {      features[i] = new OpenLayers.Feature.Vector(     new OpenLayers.Geometry.Point(                             (360 * Math.random()) - 180, 90 * Math.random()     ), {      type: 5 + parseInt(5 * Math.random())     }     );      }           // allow testing of specific renderers via "?renderer=Canvas", etc      var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;      renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;                      // create the layer styleMap with a simple symbolizer template     yer1 = new OpenLayers.Layer.Vector('Points', {     styleMap: new OpenLayers.StyleMap({     pointRadius: "${type}", // based on feature.attributes.type      fillColor: "#000000"      }),      renderers: renderer     });     layer1.addFeatures(features);           map.addLayers([layer1]);     map.zoomToExtent(layer1.getDataExtent());      }     //]]>      </script>      I added:               map.zoomToExtent(layer1.getDataExtent());      and changed the markers from 50 random to 2 markers of the coordinates of London and Berlin. And the map was centered exactly to show them, but the markers are still not displayed. But that proves that the markers are read and loaded to the map correctly, just not displayed. If I do the same back in the example .html page the map is again centered properly and the markers are displayed. I have uploaded the example .html file to my webapp and it works perfectly. So this seems to be the .xhtml issue... Is it the problem of xhtml? How to fix this? EDIT: Using the google console tool I analysed the code that was generated and it turnes out that in the .xhtml page the radious is zero:               <circle id="OpenLayers.Geometry.Point_41" cx="483.55555555555566" cy="150.7555555555556" r="" fill="#000000" fill-opacity="1" stroke="#000000" stroke-opacity="1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>      Please notice that it's always r="" but why is that? The script code is IDENTICAL in both cases - one (.html) produces the right radios, the other(.xhtml) one doesn't...


Minimum system requirements for ArcGIS on Mac

Just looking to buy a new-ish computer for study for my PhD. I will be using ArcGIS. I know the ideally it would be best to buy all the memory and ram I can afford but I am self-funding on a low budget. I am wondering what's the minimum spec Apple Mac I could use to run this software practically?


Qgis OpenStreetMap plugin misbehaviour

I used the plugin successfully. But yesterday, after changing several buildings in JOSM. Import under qgis with the plugin does not work anymore. The buildings are in the layer point! Do you have any idea? thank you! I can not post image because it requires 10 reputation.


Which remote sensing satellite is best used for vegetation extent mapping

I'm currently writing an assignment for my remote sensing class and while I think I have correct answer was wondering what people who do this stuff for a living think. The question is: which satilite out the **Landsat TM (Thematic Mapper)** and **SPOT 5** would you use to map general extent of a 300km x 300km study area. My answer was that you would use the **SPOT 5** as it is higher resolution and would let you get a finer extent vs the 30m resolution of the Landsat TM. However the SPOT 5 has a small swath area so you have to use more images. I also thought about the 2200km VMI swath on the SPOT 5 but the resolution is 1km. Thoughts?


Error in Select Layer by Location python script?

I keep on getting an error on Select by location that the file cannot be found and the inputs are invalid, but I can't figure out what I'm doing incorrectly. I realize some of my variables unnecessarilly repeat themselves, which I plan to clean up, but it still doesn't explain why SelectByLocation isn't working.               # Import arcpy module     import arcpy          #Set Geoprocessing Environments     arcpy.env.overwriteOutput = True     arcpy.env.scratchWorkspace = "C:/PATH HERE/Testing"     arcpy.env.workspace = "C:/PATH HERE/ArcGIS/gdb.mdb"               # Parameters.     PRISM = arcpy.GetParameterAsText(0)     PRISM = "C:/LOCATION HERE"          #Unchanging Variables and Workspaces     Map = "C:/LOCATION HERE"     workspace = "C:/PATH HERE/gdb.mdb"     scratchWorkspace = "C:/PATH HERE/Testing"     PRISM_pts = scratchWorkspace + "/PRISM_pts.shp"     Pts_Lyr = scratchWorkspace + "/Pts_Lyr.lyr"     Map_Layer = scratchWorkspace + "/Map_Layer.lyr"     Prism_Lyr = scratchWorkspace + "/Prism_Lyr.lyr"          # Process: Raster to Point     arcpy.RasterToPoint_conversion(PRISM, PRISM_pts, "Value")          #Process: Make a Feature Layer for the Rasters     arcpy.MakeFeatureLayer_management(PRISM_pts, Pts_Lyr)          #Process: Make a Feature Layer for the Map     arcpy.MakeFeatureLayer_management(Map, Map_Layer)               # Process: Select Layer By Location     arcpy.SelectLayerByLocation_management(Map_Layer, "INTERSECT", Pts_Lyr, "", "")          #====================================     # Runtime error  Traceback (most recent call last):     # File "<string>", line 1, in <module>     # File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py",     # line 6618, in SelectLayerByLocation     # raise e ExecuteError: Failed to execute. Parameters are not valid.     # ERROR 000368: Invalid input data.     # ERROR 000732: Selecting Features:     # Dataset C:/PATH HERE/Testing/Pts_Lyr.lyr     # does not exist or is not supported     # Failed to execute (SelectLayerByLocation).     #     # =====================================               # Process: Spatial Join     arcpy.SpatialJoin_analysis(Map, Prism_Lyr, Spatial_Join_shp, "JOIN_ONE_TO_ONE", "KEEP_ALL", "", "INTERSECT", "", "")      I don't quite understand why ArcGIS can't find the layer by location file, since it just created it. Am I missing a step?


Geoservers communicating with other Geoservers

I am able to connect to multiple Geoservers using the Geonetwork but is it possible for two Geoservers to communicate with each other without the Geonetwork?


How to shift the Map a little bit?

I'm having trouble with two maps, both UTM33N/WGS84. They should be exactly on top of each other but there is a slight shift between them of probably a few hundred meters or so. ![enter image description here](http://i.stack.imgur.com/fMx1T.png) I Tried to adjust this with the Vector Affine Transformation Plugin but didn't succeed. I don't know how to use it.


WMTS GetFeatureInfo in android

I want to create something in android like this: http://openlayers.org/dev/examples/wmts-getfeatureinfo.html I'm able to load the costum tiles with WMTS but now i need to get data to show in some kind of a popup window when clicked(touched). I found that you can get extra info with the service getFeatureInfo, for this request i need some extra parameters like "I" and "J". Whitch are the number of pixels from the bottom-left point of the tile to the clicked position on the tile? But I have no idea how I can get these parameters in android. Is this the right method to do this or is there a better solution? Any advice would be appreciated.


mulitple line labeling arcgis

I try to label a field according to his length with VBScripting in Argis 10.0 The idea is : If myfield is more than a certain length, then please add a new line and split the field correctly. My field can be Null. Cant get the code below work (Verify retuns nothing) : `Function FindLabel ( [JOIN_NUMBER] ) If IsNull([JOIN_NUMBER] ) Then FindLabel = [JOIN_NUMBER] Else FindLabel = Left([JOIN_NUMBER] ,8) & vbnewline & Right([JOIN_NUMBER] ,Len([JOIN_NUMBER] ,-8)) End If End Function`


How can I Destripe Landsat Images?

I am working with Landsat 7 ETM+ SRC-off imagery. I'm doing some land-cover classification for a place in Kenya. My problem is the no-data stripes in the image. Is there a way in which I can interpolate data for such 'empty' areas using the neighbouring pixels?


how to keep relationship between feature classes after intersection one of feature classes?

I have geodatabase with 3 feature classes. one of them is circuit polyline feature class and two polygon feature class. substation and division in geodatabase there is relationship between circuit and substation. I am going to intersect between division and substation. the result of relation will be feature class with all substation and in attribute table all data about substations and division are available. but my problem is that there isnt the relation between circuit and substation in result feature class from intersect? how can I make intersect feature class between sub and div that relation between substation and other classes maintain?


ArcPy nested loop problem

I have a question connected with ArcPy. I was trying to make a nested loop with 2 cursors - 1st with 2 elements and 2nd with 5 elements. The statement should return 10 connections, e.g. 1-1, 1-2, ... 2-5. Here is part of my code:               import arcpy     import os.path          folder = "Z:\WOLGA"         na="na"         baza = "testy.mdb"         dataset = "network_analyst"         arcpy.env.workspace = os.path.join(folder, na, baza, dataset)         shapePocz = os.path.join(folder, na, baza, dataset, "dom")          listaPktPocz = arcpy.SearchCursor(shapePocz, "", "", "", "")         shapeKonc = os.path.join(folder, na, baza, dataset, "punkty_docelowe")         listaPktKonc = arcpy.SearchCursor(shapeKonc, "", "", "", "")         shapeKoncName = arcpy.Describe(shapeKonc).shapeFieldName         shapePoczName = arcpy.Describe(shapePocz).shapeFieldName          for pktPocz in listaPktPocz:         for pktKonc in listaPktKonc:             print str(pktPocz.numer) + " - " + str(pktKonc.numer)      For now I got such connections as: 1-1, 1-2, 1-3, 1-4, 1-5 only. The outer loop is not being executed properly. Pls help!


How do I specify the position, style and units of the ScaleBar in pyqgis?

I would like to add a scale bar to my composition using the python console and then export it to a raster image.   I am following the MapRendering tutorial with the "output using map composer " approach however,the Scale Bar item example do not have many features. I would like   * a scale bar with 2 ticks, one at the beginning, one at the end    * units in km   * eventually round it to the nearest km   * place it on the upper right of my figure.    * set a transparent background  Just like in the desktop QGIS version. What are the options ? So far I have found               item = QgsComposerScaleBar(c)     item.setStyle("Line Ticks Up") # optionally modify the style     item.setComposerMap(composerMap)     c.addItem(item)      Will the scale bar be "at scale" ? Thank you for your help I cannnot find anything from that page ScalBar class


QGIS crashes when trying to open ecw files

I added Ubuntugis unstable repo and installed Qgis, libgdal-ecw-src, libecwj2-3.3 but still does not work. When I attempt to open an ecw file with Qgis it crashes and tells me: 'std::length_error': basic_string::_S_create I am using ubuntu 13.04 and when I do: gdalinfo --formats|grep -i ecw it seems to work. ECW (rw): ERDAS Compressed Wavelets (SDK 3.x) JP2ECW (rw+v): ERDAS JPEG2000 (SDK 3.x) What is the problem?


Scripting (with) WPS?

As far as I understand WPS (web processing service) can be used to execute geospatial operations on the server side. Is it possible to create scripts with WPS? For example something like: 'check in a directory if there is a new file' - if so , 'process this file', 'store the result in the database' I assume that I'm expecting too much, but what is the best solution for an script when using qgis server or geoserver? D3


Any example of creating a time-aware layer (acrgis js api + ruby rails) using data from the server

I have a data set of points. Each point has latitude, longitude, date and description sent from the server I already have a graphic layer which is used for represening the points in a static way with some popups like this                         ...               var graphic = new esri.Graphic(point, symbol);                    graphic.setInfoTemplate(new esri.InfoTemplate("", "Number: " + data.number));                    gLayer.add(graphic);               ...      But Now I need to add a time-aware layer (a feature layer I believe) that allows me to show the data according to datetime information using a time slider, like here oil Filed. The only difference, I need to use the data sent from the server as json and I need to add popups to each point I believe I need to add a featureLayer (MODE_SNAPSHOT) with a featureCollection as params that contains the data sent from server but I coulnd't figgure out how to do this (I'm a newbie in ArcGis, several hours only). To be exact I'm not sure how to create that feature collection with latitude/longitude for each point and the most important thing: how to connect it with corresponding time information I.e. I have sets of {lat: xxx, long: yyy, datetime: yyyy-mm-dd, description: sometext } sent from the server Now I need to figure out how to pass the data to a featureLayer so it can be shown on a map with a time slider Any example/help will be appreciated thanks a lot


What can go wrong in UTM to WGS1984 conversion (shifted data)

I try to convert .shp files to OSM data with shp2osm and ogr2osm but the output data is shifted. _Semi-Cross-Posting Warning: I have already asked a questions on theOSM help site, but this questions is more theoretical._ The .prj file I have contains the following (line-breaks added for readability) and the source data was saved using ArcGIS:               PROJCS["Adindan_UTM_Zone_37N",     GEOGCS["GCS_Adindan",     DATUM["D_Adindan",     SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],     PRIMEM["Greenwich",0.0],     UNIT["Degree",0.0174532925199433]],     PROJECTION["Transverse_Mercator"],     PARAMETER["False_Easting",500000.0],     PARAMETER["False_Northing",0.0],     PARAMETER["Central_Meridian",39.0],     PARAMETER["Scale_Factor",0.9996],     PARAMETER["Latitude_Of_Origin",0.0],     UNIT["Meter",1.0]]      I am using ogr2ogr for the coordinate transformation:               ogr2ogr -t_srs WGS84 -s_srs "ESRI::subcities.prj" "subcities_converted.shp" "subcities.shp"      When I finally import the data in the OpenStreetMap editor, the data is shifted by around 176m, 222°. Does this mean the source data and the .prj file is plain wrong? Or I am doing something wrong on the way?


ArcGIS Server geoprocessing service examples for shapefile data export

I have a web application client built using ArcGIS Server Manager which is currently showing a single map composed by three data layers. The map data are provided as a map service by my ArcGIS Server 10.1 instance. My task is to provide the map's users a way to download the full map locally as a shapefile (e.g: zipped) via her/his web browser. I was hinted to read here and to build a geoprocessing service to accomplish the task. I decided to write a specific toolbox myself using Python, then publish it as a geoprocessing service on my ArcGIS Server instance and finally include it into my web application. Can you point me towards any third-party (meaning: non-ESRI) code sample to start me up? I can find no examples other than the ones in ESRI's support website! Thanks in advance


Cannot add Plugins from Python: "Plugin is Broken"

I'm using the latest version of QGIS on a Windows 7 (32 bits), and when I try to add a plugin from the option "Fetch Python Plugins", it simply cancels the installation and I can see the following error: `Couldn't load plugin 'xytools' from ['C:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python', 'C:/Users/ProprietÃ¡rio/.qgis//python', 'C:/Users/ProprietÃ¡rio/.qgis//python/plugins', 'C:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python/plugins', 'C:\Program Files\ArcGIS\bin', 'C:\PROGRA~1\Quantum GIS Lisboa\bin\python27.zip', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\DLLs', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\plat-win', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\qgis\bin', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\wx-2.8-msw- unicode', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\qgis\python\plugins\fTools\tools']` The plugin that was not successfully installed appears in red colour saying "Invalid" - and in the description field: The plugin is Broken. It happens with all plugins from the QGIS Plugin Installer. Does anyone knows how can I fix this problem? Thank you in advance for any help you can provide.


Sending and receiving gis data to map

I have a spatial database in Sql server and I am working in asp.net mvc. My project must show stored shape in web page that uses openlayers js and user must see and edit shapes and send the result to server. I want to know how can I send data to my map and receive new data from it and save data to database. Is there any library that work for me? Is is not important that it must be open source thanks a lot


Create DEM from stereo pairs?

Does ArcGIS Desktop or any of its native extensions allow me to create DEMs from stereo pairs (acquired by satellite, GeoEye 1)? If the answer is a clear no, brownie points will go to an answer that proposes a viable alternative using OpenSource.


Bug in gdalwarp's simple nearest neighbor? Or more likely I need some help

I'm trying to understand how to use the GDAL utilities a little better. I think I've defined something incorrectly or I've found a bug in gdalwarp. My bet is that I've defined something incorrectly, I would love some help in understanding this better. I'm getting answers for a simple nearest neighbor reprojection that I don't understand. I apologize in advance for the length of this post, but it's hard to describe in any fewer words. If someone who's a gdal master could follow it along and show me where I fell of the path, I'd really appreciate it. I start with a 5x5 raw 2-byte image, with values 1 through 25 ( [[1, 2, 3, 4, 5][6,...,10][...]]) file:ease_subset_324_376_5x5.bin I'm letting this represent specific grid cells in a 25km EASE2 projection.   _ISPRS Int. J. Geo-Inf. 2012, 1, 32-45; doi:10.3390/ijgi1010032_   This projection has a proj4 string: `'+proj=laea +lat_0=90. +lon_0=0. +x_0=0. +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m'` In my case the upper left corner of the upper left grid cell is located at:   `-900000.00, -400000.00` Which means the lower right corner of the lower right grid cell is located at:   `-900000.00 + 5 * 25000., -400000.00 - (5 * 25000.)` or `-775000., -525000.` I want to convert this to a format that contains the projection and location information so I create a VRT file to desibe the raw data:               <VRTDataset rasterXSize="5" rasterYSize="5">       <VRTRasterBand dataType="Int16" band="1" subClass="VRTRawRasterBand">         <SourceFilename relativetoVRT="1">ease_subset_324_376_5x5.bin</SourceFilename>         <ImageOffset>0</ImageOffset>         <PixelOffset>2</PixelOffset>         <LineOffset>10</LineOffset>         <ByteOrder>LSB</ByteOrder>       </VRTRasterBand>     </VRTDataset>      And use gdal_translate to create a GeoTiff that describes my data:               gdal_translate subset.vrt subset_EASE2_N25km_gdal.tif \         -a_srs '+proj=laea +lat_0=90. +lon_0=0. +x_0=0. +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m' \         -a_ullr -900000.00 -400000.00 -775000.00 -525000.00      Next I want to reproject this image to a 114x105 2km polar stereographic grid. The upper left corner of the upper left gridcell is located: `-366000.00 -782000.00` and the lower right corner of the lower right gridcell is: `-366000 + (114 * 2000.), -782000.00 - (105 * 2000.)` or: `-138000. -992000.` I use gdal warp to project my image into my new stereogrphic projection.               gdalwarp -t_srs "+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" \          -te -366000.00 -992000.00  -138000.00 -782000.00 \          -tr 2000 2000 subset_EASE2_N25km_gdal.tif subset_Moge2km_gdal.tif      I now have an image 114x105 with values 0-25 like I expect, but there are a few places, where I don't understand the values in the reprojected data. **For example: The value in gridcell[50, 26] => 5.** I would presume nearest neighbor sampling, would take the center of that gridcell, project it into the original image and select the closest value from there, but that's not what I see. the location of the center of polarstereo gridcell[50, 26] is (2km cells)   `-366000.00 + 2000./2 + 50 * 2000., -782000.00 - 2000./2 - 26 * 2000.`   or: `-265000.00, -835000.00` Using gdaltransform I can find the location in my original image:                gdaltransform           -s_srs "+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"           -t_srs "+proj=laea +lat_0=90. +lon_0=0. +x_0=0. +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m"          -265000.00, -835000.00     -800001.11880625 -414546.034290511 0      Converting this x/y onto my original EASEgrid2 grid cell. Center of upper left gridcell = `-900000 + 25000./2, -400000 - 25000./2.` or: `-887500., -412500.`               xmeters = x - x0 = -800001.11880625 - (-887500.) = 87498.88119374996     ymeters = y0 - y = -412500 - (-414546.034290511) =  2046.034290510986      Convert to gridcells by dividing by resolution:               x_gridcell = 87498.88119374996 / 25000. =  3.4999552     y_gridcell = 2046.034290510986 / 25000. =  0.081841372      This to me would say that I would want the value at 3,0, but I was getting the value at 4,0. grid[3,0] = 4, grid[4,0] = 5 Also if you just look at the meters:               back_projected_point = -800001.11880625, -414546.034290511     grid at 3,0 = g3 => -812500.00      -412500.00     grid at 4,0 = g4 => -787500.00      -412500.00          distance(back_projected_point, g3) = 12665.239     distance(back_projected_point, g4) = 12667.447      Again, this to me looks like I should be getting the value at gridcell[3,0], but that's not what I see. Following this logic: All of these points in my polar stereo projected image are incorrect.               points =  [ [ 47, 88 ], $                 [ 59, 87 ], $                 [ 60, 88 ], $                 [ 61, 89 ], $                 [ 62, 90 ], $                 [ 50, 26 ], $                 [ 49, 25 ], $                 [ 48, 24 ], $                 [ 47, 23 ], $                 [ 46, 22 ], $                 [ 45, 21 ] ]      Again, all I can think of is that I'm not properly specifying the gdal parameters, or there's something wrong with gdal.


How to open a file geodatabase with tables and relationships in QGIS?

How can I open or connect to an ESRI file geodatabase in QGIS? I don't want to only see the features (shapes), I want to make sure that tables and relationships are opened correctly, too. Thanks in advance


How to select several disseminate features with ArcGIS JS API?

I have a cadastral map similar to this one from an ArcGIS Javascript API example: Cadastral map What I would like to do is selecting several parcels clicking on them and show the information related in a sidebar or floating panel. For example, I would like to select that big house on the right side and then few more spread on the map. Every time I click on one, I would like the application to show the information associated **AND** not losing that selection when clicking on a new one. In the end, I should have an array of selected features (or similar) that maybe I can re-use later. I have tried Feature Layer with Selection example, but it does not fully fit my requirements, because depending on the distance between features, I can't select two of them without selecting many more that I do not need. Is this possible? Can anyone explain the process? Thanks in advance!


ArcGIS arcpy reprojecting raster issue

I have a raster which I want to reproject from GCS_WGS_1984 to GCS_NorthAmerican_1983. I am using the following code:                   try:               spatial_ref = arcpy.CreateSpatialReference_management("GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision", "", "", "", "", "", "0")         except:             print arcpy.GetMessages()              try:             arcpy.Project_management(o_dir+int_ras,o_dir+geo_int_ras,spatial_ref)         except:             print arcpy.GetMessages()      It gives the error: ERROR 000732: Input Dataset or Feature Class: Dataset does not exist or not supporte However, the input datasets most defn exist. Is there some issue with how I am reprojecting?


How to fix spatial reference error on CopyFeatures ArcGIS tool?

When I run the CopyFeatures tool to copy features from an ArcSDE geodatabase to another empty ArcSDE geodatabase (no features, no tables), I get the following result: ![enter image description here](http://i.stack.imgur.com/tLOyi.png) The error message is about the spatial reference of the output feature class. The output is created by the tool itself. Why wouldn't it set the correct spatial reference? Do you have any hint on how fixing this?


how to compute tile row from latitude in mercator projection

I work on google tile images. I want to compute a tile row from its latitude. How can I do that. I know that tile system cover all of the earth from -85 latitude to 85 latitude. 4 tiles exists at the first level. Google uses mercator projection.


What do I need to create 3D model of real terrain?

I'd like to create 3D model of some real terrain (to be exact it's about some real roads and only as much as 80m to 100m of roadside - 40m to 50m of each side). As I don't have access to highly detailed local maps, my only source of topographic information of given terrain will be Internet. Now my question - what would be the best approach to create such 3D model and make it as detailed as possible? I know I won't be able to get very detailed elevation data (AFAIK, DEM for Europe has only 90m resolution) but on the other hand it's still better than nothing. But also I don't know what would be the best source of detailed topographic data? Should I use Google Maps and work on its KML files or OpenStreetMap gives better results? Or maybe there are some other resources for getting the information I will need? BTW, would be some in-car GPS system of any help in this case? I'd like to add that I want to model only the surface - the vegetation, buildings and other objects are not needed. Also I won't need any geographic co-ordinates of terrain as I need to have only right measurements in meters. I'm totally new to this subject so any kind of help will be very much appreciated. Thank you in advance for reply. EDIT: Thank you everyone for your comments. I'll try to add more information on this project. Source of data - AFAIK, the most detailed DEMs for Europe (Western and South Europe and also North Africa are my areas of interest) can be obtained from ASTER and Landsat. Both have 30m resolution so it's as accurate as I need it to be. 3D model of terrain - I'd like to reconstruct some real roads that used to be parts of famous rallies or races in the 50's and 60's (Coupe des Alpes, Liege- Rome-Liege, Rallye del Sestriere or Tulpenrallye). Of course not whole roads as it would take ages for me, only some sections that can be about 7km long (that's game engine limitation). So I need a 3D model of surface of some specific road so I could edit it in 3DS Max 5 program. Or some other 3D modeling program (FreeCAD or Pov-Ray) as I need 3DS Max 5 only for texturing, adding some objects like buildings, trees, people, sponsor banners and finally exporting max file to bmf file (it's a format that Rally Trophy uses). And the game looks like in the link below: Rally Trophy - Game Intro Now, my biggest concern is the right method of generating such 3D model of terrain - what kind of programs do I need? And also how to mark a road on it? I'm sorry I cannot explain it any better. But please ask as many questions as you need to.


How to handle PostgreSql 1:m relationship data by using “Data-Driven Input Mask” QGIS plugin?

I have 1:m relationship tables in my PostgreSql. I like to show the main table attributes as well as the relational table attributes (like grid rows) in QGIS attribute-edit-form. What are the entries i have to add to dd_* tables to get this?


Finding overlapped areas and identifying their frequencies in a polygon layer

I have a fire patch polygon layer from 1998 to 2012 and I want to find the areas which experienced the fire several times! How I can find those overlapped areas and the times they experienced it (frequency)?


Convert pixel value histogram to table

I am working in QGIS 2.1 with the National Land Cover Database 2006 land cover layer. It is a raster layer with pixel values corresponding to different land cover types. I have clipped this raster to a buffer layer around my study site. Now I want to analyze the proportion of each land cover type within the site radius. I can view the frequency of each pixel value in the histogram tab of the layer properties window, but I would like to see the pixel frequency data in a table so that I can perform calculations on it. Is there a way to do this in QGIS?


why Semi-Automatic Classification plugin installation failled repeatedly?

I successfully downloaded Semi-Automatic Classification plugin installer OSGEO from http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe. But it respond that it couldn't the installation. Again I download manually from http://plugins.qgis.org/plugins/plugins.xml and when I extract it in plugins folder still QGIS window respond that I commit error. how can I instal it?


How to integrate Google Drive with web mapping capabilities?

I use a shared Google Drive spreadsheet to coordinate a large GIS mapping project. The work involves processing thousands of DOQQ images. Essentially, work is divided into study areas and then further into DOQQ boundaries that make up the study areas. I am envisioning a dynamically updated web map that show which DOQQs have been processed within study areas. In other words, as I update the shared spreadsheet, the web map should also update. The attached image is a rough example of the type of data I wish to present. Is this feat possible with any web mapping services (e.g. CartoDB)? Which technologies should I pursue to accomplish this type of web mapping? ![enter image description here](http://i.stack.imgur.com/Fl7xi.jpg)


Am I correctly projecting a geometry using a WKID in ArcObjects?

I would like to take in any valid WKID for a spatial reference and then project a single geometry to it. The following code seems to be working, but (1.) can someone verify that this is the correct way to do this. (2) Can I just put the ProjectionHint parameter in Project5() to 0/false -- thanks               private IGeometry5 ProjectGeometry(IGeometry5 geom, int outSR)     {         IGeometryServer geomServer = new GeometryServerClass();         ISpatialReference spatialReference = geomServer.FindSRByWKID("EPSG", outSR, -1, true, true);         geom.Project5(spatialReference, 0);     }      http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Project5_Method/002m000001rz000000/ "The projectionHint parameter contains information about whether a geometry will cross the coordinate system horizons. If it doesn't, parts of the code that check this and intersect the geometry with the horizons can be omitted. This can dramatically improve performance. Use ISpatialReference3::ProjectionHint to initialize this parameter."               C#     public void Project5 (         ISpatialReference newSpatialReference,         int ProjectionHint     );


Where can I find European City boundary data?

Does anyone know any sources for free European city boundary data? Thanks!


OpenLayers - is it possible for a feature to have both a single click and double click event?

I'm have an OpenLayer map with a single vector layer containing many features. I've been using SelectFeature to pop up some info when a feature is clicked, and that's working fine. However, I now want to add some functionality when the feature is double-clicked - specifically I just want to zoom in, and not have the popup appear. I gave this a shot: http://blog.slashpoundbang.com/post/2342888467/openlayers- zoom-when-a-feature-in-a-vector-layer-is But it removed my single-click functionality. Essentially this is the same problem as SelectFeature with Double-Click Any ideas? UPDATE: So I'm trying a workaround using SelectFeature to handle the single click and registering an event listener on the vector layer to handle the double click. All I want to do is zoom in on the double clicked feature. This is what I have:                   VEClayer.events.register('dblclick', VEClayer, function(e){                         map.zoomToExtent(e.features.geometry.getBounds(), closest=true);                             }                             );      However now I have another problem, and I'm not sure if it's being caused by having both SelectFeature and the listener active or what. The new issue is that try as I might I can't access any of the event attributes. So when I try to get e.features.geometry.getBounds(), Firebug gives me the error "e.features is undefined". I've tried to get this multiple other ways (e.xy, e.longlat, getMousePosition) and it's always the same result.


Why can't I export XY data to a shapefile?

I have added a table from Access to ArcMap, and then used 'Display XY data' to plot points. When I then try to export the Events to a shapefile I get an error message telling me: "Error exporting data. Create output feature class failed" Followed by: "Warning: Some records may not have been exported correctly." and then: "There was an error exporting the layer." Can anyone tell me why this is happening, and how I can export my data? I was able to export an almost identical file this morning with no problems. I'm saving straight to my C drive, so no unusual characters in the files path. All the fields are either text or Long types, and none have long names/unusual characters in their names. I've tried restarting ArcMap and my machine, and exporting to several different locations. I'm using version 10, with Access 2007, and there are 7332 points in the table. Thanks, Flo


Change Icon of Single Vector Feature in Layer

Currently I am trying to change the icon of a particular feature of a vector layer that the user is focusing on. I add each feature to the map like so:               var point = new OpenLayers.Geometry.Point(pt.lon, pt.lat);     var markerStyle = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style['default'],  {         externalGraphic: iconURL     });     var marker = new OpenLayers.Feature.Vector(point, attributes, markerStyle);      Later I do the following to update the feature's icon:               var marker = this.findSelectedMarker();     if (marker) {         marker.style.externalGraphic = newIconUrl;         this.layer.redraw();                  }      But when the layer redraws, all features in my layer use the `newIconUrl`, not simply the selected marker that I am trying to update. How can I change the icon of the one selected feature of my layer? Thanks.


How to export/save a layer composition to GeoTiff?

I want to export/save a QGIS composition of raster/vector layers to a GEOTIFF or ECW raster with high resolution (20 000 * 20 000 Pixel).


Hide labels for features without data

I have a FeatureLayer that uses a ClassBreaksRenderer. The renderer loads data from a collection like so:               var renderer = new esri.ClassBreaksRenderer(                 null,                 function (graphic) {                     return data[graphic.attributes.ID];                 });      Using a LabelLayer, is there a way to only render labels when the feature has a value (as determined by the ClassBreaksRenderer)? I am able to "hide" the labels in this instance, by setting the font size to 0, but the DOM elements are still created. On a layer with thousands of features where only a sub-set are displayed, that kills performance.


Are there any Hosting companies, that offer Geoserver?

I am working with a non-profit, and we are planning to have a webmap for them. Most of the hosting providers just offer a simple LAMP setup on their Linux option, and if you want to install any software on your own, you need to go for a dedicated server (either real or virtual) which is very expensive for the organisation I am working with. I have seen that there is a hosting provider for Mapserver based maps. Is there any similar provider for Geoserver based maps?


GeoTiff size - what to do?

I have a whole series of GeoTiff tiles, each one about 250mb in size, in total just over 90gb. I want to be able to display these as a wms into QGIS to 20+ GIS users and in the end make them into a tile cache. My problem is that I don't have enough server space to stick the GeoTiff tiles on to in their current state, so they are living on an external hard-drive. My server contains GeoServer and I've also got access to MapServer on the same server but I'm less fluent its configuration than I am with GeoServer. Is there a way that I could reduce the size per GeoTiff to make them more manageable or should I convert them into another file tile, png/jpeg2000 for example? Has anyone else any experience of such large GeoTiff sizes and what did you do with them? Oh and I'd like to do this entirely with OpenSource (if possible). Med


QGIS - "Bad Allocation" Exception - on identify

I have QGIS (v1.8) set up to identify in Top down mode. When I use the identify tool on the map, I frequently get a Bad Allocation exception message and I was wondering what gives rise to this error. It seems to occur, after all layers have been scanned for intersects with the click location (i.e. the status displays as 'identifying done') - it seems to appear when the popup window is being generated. Any thoughts on what I can try to do to resolve this? THanks


IS it possible to run GRASS commands in the QGIS graphical modeler?

I have a geoalgorithm set up in the graphical modeler and everything runs except for the GRASS commands. It is really frustrating because when I execute these commands on their own they work just fine but as soon as I run them as part of a larger process they simply do not produce the desired results. I am using the mapcalc command to extract raster values below 10, for example.


Web-based map authoring with ArcGIS Server?

I'm embarking on a project in which users will author, save, and share their own maps over the web. We will provide them with a large number of feature classes, but users will effectively author their own maps, map symbologies, etc. Furthermore, they will create and edit their own feature classes, which they can both map and share with other users. The model for AGS map services seems to be: author a map in ArcMap, save an MXD/MSD, publish. I'm struggling to understand how this can help us build a dynamic web mapping platform as described above. Can anyone offer some tips on how to go about it?


Slope, aspect and beam in R.Sun (GRASS)

I'm starting to mess about with the solar radiation packages of GRASS and ArcGIS and have become rather stuck on the GRASS side of matters. I have a DSM area, and that is feeding into GRASS well enough, however when processing on the default values it falls over, not outputting anything. I'm using the command...               g.region rast=elevation.dem     r.sun -s elev=elevation.dem day=180     r.colors col=grey     d.his i_map=beam_map h_map=elevation.dem      In the R.Sun man page, the following command is recommended:               g.region rast=elevation.dem     r.sun -s elev=elevation.dem slop=slope asp=aspect beam=beam_map day=180     r.colors beam_map col=grey     d.his i_map=beam_map h_map=elevation.dem      However here, where am I supposed to get the slope, aspect and beam from?


How to solve loading performance issues when handling multiple KMLs?

I am using over 10 KML in Google Maps. When I increase the number of KMLs they load too late. I use checkboxes to hide/show KML layers. With up to 5 KML layers, it worked fine. When I increase the size of the KMLs it's not working normally. When I check "show", it shows but "hide" does not work ... How can I solve this?


What to call these types of grids?

In a GIS application I'm developing there's an option to show two types of grids. First is a standard lat/lon grid. Second is a crosshair with marks and distances in four directions away from the center. ![attached image](http://i.stack.imgur.com/QpOib.png). Since English isn't my native language I wonder how to better call these two types in menus, etc. to distinguish between them?


Overlay analysis of topographic data

I have a topographic map with Buildings, Roads, Hydro and land use as the prominent layers in polygon format. Also i have newly collected Building polygons of the same area in shape file format. Now i need to have an overlay analysis of Buildings in these two resources. I can rasterize and geocode the map to orient with Digital data. Also these two can be overlaid and compared manually. But i need to do this analysis automatically with possibly using a shorter method. One possibility is to vectorize Buildings in the map and perform vector overlay. However I am looking at a more efficient method possibly filtering Buildings in raster and comparing it with Buildings converted to rater in shape file. Any idea on this is appreciated.


Can ESRI's File Geodatabase API be Redistributed?

ESRI's file geodatabase API can now be used with GDAL/OGR - http://www.gdal.org/ogr/drv_filegdb.html however each individual seems to have to login to ESRI and download the API files individually. For example this is referenced in a blog post here and in the GDAL build notes. The license agreement before downloading the API shown by ESRI is at: http://resources.arcgis.com/node/agreement/3193 Clause 47 states: >   1. Licensee may develop and distribute software or web applications that > use the Esri File Geodatabase API to Licensee's end users. > The best discussion about the license is at Paul Ramsey's blog post from January 2011. This finishes with a final update that: > Update 4: Received email from ESRI confirming that the final license will be > reviewed to ensure there are no ambiguities and that it reflects their > intent that the API be usable by any application in any application category > and the derived product freely redistributable and royalty free. So to the > extent that the current license has any ambiguity it shouldn't be considered > a red flag that the final one will. So has or when will the ESRI API be available as part of GDAL downloads or installations, and when can we distribute application which include the API?


Sum values in a field

Using QGIS 1.8, I've got a shapefile with an integer field called AREA and I'd like to sum the values which are in this shapefile. Does anybody know how to ? Thank's a lot. Robert


Leaflet, wrong API key when using CloudMade tiles!

I've registered on CloudMade and got some API keys but non of them work with Leaflet API. When I checked for image URLs and opened each directly using my browser it prints out the message "Wrong apikey". Anyone with the same issue?


How does Mobile GPS work in Windows Tablets?

Can anyone tell me how GPS chips generally works in Windows8 Tablets? As far as I can tell Tablets do not have a separate GPS chip like those in handheld GPS receivers - It seems to be combined into the Network chips. With my current tablet, gps doesn´t start without first logging into the network with a mobile SIM card. They seem to first get a fix according to the location of the last successful IP Address login and then refine the position using triangulation from satelites. I would be grateful if anyone with experience with such devices could clear this up for me.


Is there a source for free CSV files with geo data and other desired fields?

I'm writing some software components that process geospatial data. The input data is a CSV with general columns (e.g. `name`) and geo columns (e.g. `city`, `lat` or `zip`). I would like to test these components with some thousands of points. **Is there an online source that generates free csv files with geo data, according to a list of desired fields?** For example, I would like to have 1,000 points in North America, each with `lat`, `lon`, `city`, `zip` and `state`. Or 5,000 points in Europe, each with `lat` and `lon`. I will probably build it myself from free data sources if it doesn't exist, but using an existing source would save lots of time.


Distance-direction computation of lines with exactly/more than two nodes?

A distance and direction tutorial provided as an Answer at **How to add Direction and Distance to attribute table?** uses:   1. _xat (0 ), xat (-1 ) and yat (0 ), yat (-1)_ for **start and end points of lines** ; in addition to    2. (*atan((xat(-1)-xat(0))/(yat(-1)-yat(0)))) * 180/3.14159 + (180 *(((yat(-1)-yat(0)) < 0) + (((xat(-1)-xat(0)) < 0 AND (yat(-1) - yat(0)) >0) _2)))_ to **calculate direction** I would like to know any difference in application if lines with more than 1 part and/or nodes are used. Would there be any difference between using lines with 2 nodes vs lines with more than 2 nodes and segments? Which assumptions would QGIS automatically use/make in the following scenarios below: a - regarding **direction** : the overall direction is derived from the difference in start and end node **OR** would it be the average of each individual computed segment. b - regarding **distance** : is it the distance between start node and end node **OR** is it the sum total of each segment that is represented in the distance


QGIS "transform error" messages - how to stop them?

In QGIS, I am getting an error message every time I edit a node. Also, there is a lot of lag in performance. The message is: "Transform error caught: forward transform of (10990.308086, 100347.255186) PROJ.4: +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs +to +proj=utm +zone=54 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs Error: latitude or longitude exceeded limits" I hae been very careful to Set Layer CRS on all layers, to GDA94, or, in the case of the two raster layers, GDA94/MGA zone 54 (which is also the project CRS). This should all work. Shouldn't it? But it is odd, that when I was using my legacy MapInfo TAB layers, they would show up in QGIS with weird projections that were not the projection in the TAB files, like some old Dutch projection and, more usually, NAD projections. I saved those layers as SHP files (resetting the projection to GDA94) to see if QGIS works better with SHP. And it did, for a few hours. Now the error messages are back. What is wrong? Is this a QGIS bug? Or is there a backoffice setting that I've missed? * * * ## EDIT: ADDITIONAL INFORMATION. Below I provide the sequence of steps to create the transform error from a clean start.   1. Open QGIS   2. Set these options for Project CRS:      * "Automatically enable OTF if layers have different CRS"     * Do not "enable OTF by default"     * Start new projects with GDA94     * "When new layer is created, use project CRS."   3. Add raster layer 76949_zone54_mga.ecw (www.ga.gov.au/cedda/maps/1058)   4. Look at Project properties, witness that "OTF by default" is disabled, and CRS has changed to greyed-out MGA94 zone 54 (the CRS of the raster file)   5. Add shapefile layer (graticule from "Hamilton Special" GA 250K topo), downloaded from GA website.      * Note that its .prj file contents are: GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]     * That is, it has a CRS of GDA94. The file loads and displays correctly. Look at project properties, and witness that it has automatically enabled OTF projection.   6. Create new shapefile point layer, with CRS selected as GDA94   7. Edit new shp layer, by making two points.    8. Exit edit mode and save.   9. Look at message log: two error messages logged with following info: Transform error caught: forward transform of (0.000000, 0.000000) PROJ.4: +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs +to +proj=utm +zone=54 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs Error: latitude or longitude exceeded limits That is a replicable error, and all files used are pristine Geoscience Australia product, unquestionably ok. The fault lies somewhere in QGIS or in the settings used. Yes I could create the new file in a CRS of MGA_zone54 (to follow the raster projection in this case), and that will work ok. But I would prefer that my vector files that aren't tied to a particular UTM zone. Anyway, GDA and MGA zone 54 are based on the same datum and ellipsoid, they are two sides of the same coin. MGA is just the projection of GDA94 longlat data. So what is the problem?


Write raster with its attribute table and symbology

I am classifying lots of rasters and I'd like to automate the legend creation and symbology displaying for easy manipulation. Here is the kind of raster I'm dealing with:               library(raster)     r <- raster(nrow=10, ncol=10)     r[] = 1     r[51:100] = 3     r[3:6, 1:5] = 5     r <- ratify(r)          rat <- levels(r)[[1]]     rat$landcover <- c('Pine', 'Oak', 'Meadow')     rat$class <- c('A1', 'B2', 'C3')     levels(r) <- rat     r          levelplot(r, col.regions=c('palegreen', 'midnightblue', 'indianred1'))


Split an attribute Python 9.3 in modelbuilder expression?

**Updated question** Goal: I need to upgrade an existing Model-builder were the expressions uses Python 9.3. Workproces & Goal: My *.mxd Have 1 attribute field containing the following build: X1-X2-X3-x4_x5_x6-x7.   Example: G-OI-KI-VUUR_NAAMGEVING_0000101111_VECT_12X001111-X. I tryed to split is on the ‘-’ and ‘_’ signs because the names have a different length. My goal is putting the fields X1 - X7 in separate text-fields by using a Model-builder which is coded with Python 9.3. **Issue** : one of those 'transformations' (X4) isn’t working properly. I used _| **!LAYER!.split("-")[3]** |_ A new field is created, but I got as a result: x4_x5_x6-x7. I only wanted x4. Matthieu Brbt came with a solution to use | ***(!LAYER!.split("-")[-1]).split("_")[0]*** | instead. Unfortunately this ended up with an error: 000539: Indentation Error: unexpected indent (, line 1) Failed to execute (Calculate Field) Matthieu suggested to check for empty spaces in the expression but those were not here. This is what my expression looks like: ![enter image description here][1] **So how can I make a split based on the ‘-’ and ‘_’ for field x4 ?** Thank you for your help!


How to better visualize features of clusters in Openlayers

I am using the cluster strategy for mapping a large number of features in Openlayers, now I would like to find a good solution for providing info about the features contained in a cluster selected by the user. In other words whenerver the user selects one cluster I would like to explode the cluster with as many markers as the features contained in it, of course selectable markers. Anybody could help me? I attached an image about how the markers around the selected cluster would look like. thanks in advance. Defelix ![enter image description here](http://i.stack.imgur.com/sFnoc.png)


Requirements for BaseCustomLayer in ArcScene?

What must be implemented/included to add a layer deriving from BaseCustomLayer to ArcScene? I have had success adding a BaseCustomLayer to ArcMap by implementing Draw, AreaOfInterest, Cached, MaximumScale, MinimumScale, SpatialReference, Visible, and Name. However, when I attempt to add this layer to ArcScene it gives me the error "ArcScene cannot add this layer".


How do I add a KML layer using the ArcGIS Silverlight API?

I am trying to create a map which will include radar rainfall data in a KML format. How can I easily do this using the Silverlight API (the version doesn't matter)?


What is the maximum number of features a SDE featureclass can hold?

I have a SDE 10.0 Geodatabase based on MS SQL 2008. I'm running a continuous process where about 6400 point features are written to a feature-class every hour. I need it to be a featureclass, since I'm doing some krigging on the feature-class, after applying an attribute query based on a time field in the data. I was wondering what is the limitation on the number of features a SDE Feature-class can hold?


Convert point to grid: Numbers of cells differ

In R I am trying to aggregate points data to a grid. The data for the grid (G-Econ) comes as a csv-file. In this file each row represent a grid-cell at 1x1 degree resolution and the given coordinates, in longitude and latitude, label the south-west corner of the grid-cell. In trying to convert these points to a grid I run into the issue that the number of grid-cells in the output (so the eventual grid-raster) does not correspond with the number of cells in the input. Basically the short version of my question is: How do I solve this? The simplified G-Econ csv-file can be found here and below I describe step-by- step what I've been doing. First I load the csv-file, limit the number of observations to only include cells in African countries, and create a spatial object out of the data frame.               # Load data     gecon<-read.csv("gecon.csv",header=TRUE,sep=",",row.names=NULL)     gecon$Cell<-1:nrow(gecon) # Create a grid cell identifier           # Limit data to African countries     require(countrycode)     gecon$cont<-countrycode(gecon$NEWCOUNTRYID,"iso3n","continent",warn=TRUE)     g.africa<-na.omit(gecon[gecon$cont=="Africa",])           # Create spatial object     require(raster)     coordinates(g.africa)<-~LONGITUDE+LAT # Creates spatial object     proj4string(g.africa)=CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0")          summary(g.africa)      From this we see that Africa is covered by 3550 grid cells in the dataset   Next step it to transform the points into a grid:               # Transform points to grid     extent<-extent(g.africa)     extent # Determine number of cols. and rows for grid     length(-26:63) # Number of cols: 90     length(-38:37) # Number of rows: 76     rast<-raster(extent,ncol=90,nrow=76,              crs="+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0")     grid<-rasterize(g.africa,rast,g.africa$Cell,fun="last") # Create grid     grid      During this step the number of cells has increased -to 6840- this is due to the inclusion of cells that cover the oceans. I included a cell identifier so I can check how many of the new cells do not belong to a country.               summary(grid)       There are 4053 NAs. Subtract these from the total number of grid-cells and the result is 2787 grid-cells, which is way less than the original number of cells for Africa. I transform the grid into polygons and this number is confirmed.               africa<-rasterToPolygons(grid) # Create spatial polygons     africa # See nfeatures       So I guess something goes wrong when I rasterize the data, that somehow the interpolation of points to grid-cells results in this reduction. Due to my inexperience with GIS in R -and in general- I have been unable to solve this issue. Does anyone have any suggestions on how I could solve this? Or maybe recommendations for a better method?


How to install python-mapscript in a virtualenv?

I am on a django project where I want to use the python implementation of the mapserver mapscript library. I was able to install mapserver and python- mapscript from source. However, due to the project setup I am forced to run django in a virtualenv that does not allow site-packages in my virtual environment. Since mapscript is installed as a global site-package my django app can't see the mapscript installation. When I try to install mapscript through `pip install mapscript` I get an error `'mapserver.h' file not found`. So how can I install python-mapscript in my virtual environment? I thought of copying the installed egg into my virtual environment, but not sure if that is possible.


How is it possible to publish data with ArcGIS Server without creating ArcSDE service or using ArcSDE?

I am still relatively new to the ESRI server techologies. I have server1 which runs ArcGIS server 10.0 and when I look at which processes running on this server I see ArcSOM.exe, ArcSOCMON.exe and many ArcSOC.exe (probably around 50 instances) I have another server (server2) which runs 6 instances of giomgr.exe 11 instances of gsrvr.exe and 2 Imgrd.exe instances. There are also 2 DBMS Servers which hold sde-geodatabase data. My question is how have I been able to publish data from a file geodatabase stored on a partition on server2 although there is no SOC, SOM, DBMS or AGS running from it?


Content for Introduction to GIS course using QGIS?

For teaching an Intro to GIS class using QGIS, what could be its content? The class will be for an Masters in Public Administration program, 20 hours over the course of a weekend, with the students often looking for jobs as government analysts and managers or nonprofit executive directors. I want them to be able to make a simple map that can go in a document and be able to talk to technical GIS staff intelligently. It will probably be the only course in GIS they ever take and they probably won't be looking for work as GIS techs. I will do a couple of hours demonstration on QGIS to ESRI parallels during the weekend, but teach the course with QGIS. QGIS pluses: it is a fine platform for teaching the concepts, and it is free. Granted ESRI will be more recognizable on a resume, but if they get a job at a place with no GIS, it will be easier to get a budget for QGIS. I have also decided using QGIS somewhat selfishly -- I run FreeBSD at home, and I want to be able to prep on my machine. My basic text will actually be "Mapping It Out" (Monmonnier, 1996 ??), which they will read before class and write a short page on, since it is most important they learn how to make an argument from a map as part of a bigger decision making process. I will assign the QGIS tutorial to be skimmed, and have as optional Glaser's book on QGIS and old editions of Dent's Cartography. I think I will do a demonstration with questions (~2 hours), a little bit of lecture on basic concepts (~3 hours, distributed over the weekend), a lot of practice time (~12 hours), and then student presentations and discussion (~3 hours). The demo and student maps will start with some addresses, make a locator map of the points, edit them a little for practice, do something with the field calculator, figure out the local demographic characteristics of the points by which tract they are in, calculate some point-in-polygon rates based on local population and point/ event counts, and finish by embedding the PNG in a document and writing a paragraph that refers to the map.


Why does AddGeometryColumn error using the libspatialite-2 DLL with pysqlite2?

What I'm trying to achieve is to create a geometry column of a point based on the latitude and longitude of that particular row in the already created table. Given the following code:               #!/usr/local/bin/python     from pysqlite2 import dbapi2 as sqlite3          conn = sqlite3.connect('adde.sqlite')     conn.enable_load_extension(True)     conn.execute("SELECT load_extension('libspatialite-2.dll');")     conn.execute("SELECT InitSpatialMetadata();")     conn.enable_load_extension(False)     conn.execute("SELECT AddGeometryColumn('coords','geom_column', 4326, 'Point', 2);")     conn.execute("UPDATE coords SET geom_column = GEOMETRYFROMTEXT('POINT('||longitude||' '||latitude||')', 4326);")     conn.close()      I receive the error:               AddGeometryColumn() error: "insert on table 'geometry_columns' violates constraint: 'spatial_ref_sys.srid'"      I've been able to create the column in the Spatialite GUI no problem, but I'd like to do all of this programmatically using Python. I've searched for a while now and I'm coming up a bit short. Any guidance as to why I'm receiving this particular error would be greatly appreciated. I'm using Python 2.6 and pysqlite2 on Windows 7 64-bit


How can I create a pollutant dispersion raster in QGIS?

As my previous questions have indicated, I am working on an air quality problem where I have a dataset of industrial emissions that consists of a location (long, lat), and an annual volume of emissions in pounds or tonnes. The end result that I am looking for is a 'dispersion raster' that will provide an aggregate value of emission dispersion (see below) based on overlapping 11KM buffers, where the dispersion value of each buffer is aggregated wherever the buffers (2, up to 57!) overlap. **Details** I am trying to understand how I can model the dispersion of emissions, from the emissions source, through a simple linear decay model where the dispersion at a point (away from the emissions source) is ((1-d)/(11000m)) (from Hystad 2011 - "Environmental Health Perspectives") where d = the distance to the emissions source in meters. I envision creating a buffer around each emissions point (and have done so, see below) but do not know how to apply the above formula to the buffer. Once the buffer has that formula, thus providing a range of values that degrade to zero as you move from the emissions source, I would like to aggregate all the values (through the vertical or Z) of overlapping buffers. For instance, the attached image provides a view of the emissions sources (red dots) and the buffers (the grey buffers are 'low values' and the red 'high'). How would I create buffers that decay from the emissions point by ((1-d)/(11000m))? Once these are created, how could I calculate the aggregate (i.e. the exposure from all the buffers that overlap a point) exposure value at a point, as represented by the blue dot. This is hard to explain, so please ask questions! Thanks! ![Red= Emissions Sources. Buffers = Range of dispersion. Blue = How do I calculate an aggregate dispersion volume for here?](http://i.stack.imgur.com/DsqXq.png)


Using polygons to apply unique value to all raster cells within those polygons?

In ArcGIS 9.3, I have a raster file that I would like to "mask" with polygons, giving a single value to all the raster cells that overlap the polygons. How can I do this? Here's a screen shot, where the black polygons are my polygon layer, and the rest is raster-based. ![enter image description here](http://i.stack.imgur.com/in1z9.jpg)


Cluster processing - what resources to ask for 50 Gb DEM processing

For "renting purposes", I have to specify the computing resources I need from the computing center at my University. I have very little idea of what to ask for. Considering the information below may you suggest something? This is the computational cluster: "A ten blade server with each blade consisting of 2 Quad Core Intel Xeon 2.33 Ghz CPUs with 16 GB of memory for a total of 80 CPUs and 160 GB of memory. Accounts on a 2 TB disk system. Running 64-bit Linux" With lossless compression, the original data is one 50gb tiff file. At some point in time i shall be working with several (up to ten) files 50gb in size. I would use GDAL, Python scripting and maybe C++ scripting. If allowed, I would use softwares like Grass GIS and Saga GIS. Also, R language with spatial libraries. I will be deriving the usual terrain parameters, trying to apply object-oriented algorithms for the extraction of specific features (landforms) and using statistical analysis for descriptive and modeling purposes. Thank you in advance, Marco


is it possible to obtain layerInfo from the Layer's URL

I am trying to fetch the names of the layers in the MapService, so that I can populate them in the dijit.form.select. I am able to get the `layerInfo` when the ArcGISDynamicMapServiceLayer is added to the map by using,               map.getLayer(map.layerIds[0]).layerInfos[0].name      But this is only after the layer has been added to the map. Is there some way by which I can get the layerInfo names directly from the URL?


Stitching thousand of 32 bit Tiff without geographic information

I'm working on a project which goes beyond my knowledges, I need your help. I'm working with FLIR movies (thermal imagery recorded from plane), and I have to find a way to make a Tiff containing the temperature information and geographic information. I can extract images from the movies in different ways (png, jpeg, csv, Tiff, 32 bit tiff, FITS). My plan was to extract one jpeg/second and then stitch those thousand of pictures with hugin, then georeference the stitched result on ArcGis. My problem is that I suppose the JPEG will be in RGB format so the temperature won't be displayed... So the only way might be to export 1 32 bit tiff/second (which is the only format with the real temperature information) and then try to stitch them together... But I don't see how. The study area is really huge so I have 5000 thousand pictures each day, so I can't afford any manual method. Does someone has a genuis idea?


Mapping and Pedestrian Routing on Android (guidance needed)

I 'm new to this stuff (GIS). I was assigned a project in which i have to implement for the Android platform:   1. showing up maps   2. showing up routes   3. showing up nearby POIs. Everything has to be offline!!(loaded on the Android device!) with NO connection to Wifi or GSM network. Please correct me if i'm wrong (as i stated above this is brand new stuff for me - i never did a project in this field, though 20 years in business): Can the above points be solved with the following tools (respectively)?   1. using OSMDroid (with ZIPped Openstreet maps)   2. using Spatialite (just quickly read through some articles but not sure if i can use it!) - or should i use pgRouting (i understand i have to port it to SQLite - but is it possible?))   3. using "simple maths" (great-circle distance,...) The above points have to be implemented (as far as the amount of data concerned separately) for maps like Italy, Spain, France, Germany, and Greece. I need some guidance!! Is there anyone who has done something similar? Thanks in advance!


Shape file polygons to STL format conversion

I have Building polygons like Ground, wall and Roof polygons from this need to generate STL format( 3d Printer format). Please can anyone suggest how to do this?


Hy, I am running the following code which I found on: GDAL - Perform Simple Least Cost Path Analysis which I adapted to my case, but I get the following error when running the code in the python console of QGIS. I am rather new to the programming & QGIS world so if somebody would be able to help me that would be wonderful!               import gdal, osr     import osgeo.gdal     osgeo.gdal.GetDriverByName     from skimage.graph import route_through_array     import numpy as np          def raster2array(rasterfn):         raster = gdal.Open(rasterfn)         band = raster.GetRasterBand(1)         array = band.ReadAsArray()         return array            def coord2pixelOffset(rasterfn,x,y):         raster = gdal.Open(rasterfn)         geotransform = raster.GetGeoTransform()         originX = geotransform[0] # East/West location of Upper Left corner         originY = geotransform[3] # North/South location of Upper Left corner         pixelWidth = geotransform[1] # X pixel size         pixelHeight = geotransform[5] # Y pixel size         xOffset = int((x - originX)/pixelWidth)         yOffset = int((y - originY)/pixelHeight)         return xOffset,yOffset          def createPath(CostSurfacefn,costSurfaceArray,startCoord,stopCoord):                 # coordinates to array index         startCoordX = startCoord[0]         startCoordY = startCoord[1]         startIndexX,startIndexY = coord2pixelOffset(CostSurfacefn,startCoordX,startCoordY)              stopCoordX = stopCoord[0]         stopCoordY = stopCoord[1]         stopIndexX,stopIndexY = coord2pixelOffset(CostSurfacefn,stopCoordX,stopCoordY)              # create path         indices, weight = route_through_array(costSurfaceArray, (startIndexY,startIndexX), (stopIndexY,stopIndexX),geometric=True,fully_connected=True)         indices = np.array(indices).T         path = np.zeros_like(costSurfaceArray)         path[indices[0], indices[1]] = 1         return path          def array2raster(newRasterfn,rasterfn,array):         raster = gdal.Open(rasterfn)         geotransform = raster.GetGeoTransform()         originX = geotransform[0] # East/West location of Upper Left corner         originY = geotransform[3] # North/South location of Upper Left corner         pixelWidth = geotransform[1] # X pixel size         pixelHeight = geotransform[5] # Y pixel size         cols = array.shape[1]         rows = array.shape[0]              driver = gdal.GetDriverByName('GTiff')         outRaster = driver.Create(newRasterfn, cols, rows, gdal.GDT_Byte)         outRaster.SetGeoTransform((originX, pixelWidth, 0, originY, 0, pixelHeight))         outband = outRaster.GetRasterBand(1)         outband.WriteArray(array)         outRasterSRS = osr.SpatialReference()         outRasterSRS.ImportFromWkt(raster.GetProjectionRef())         outRaster.SetProjection(outRasterSRS.ExportToWkt())         outband.FlushCache()              def main(CostSurfacefn,outputPathfn,startCoord,stopCoord):              costSurfaceArray = raster2array(CostSurfacefn) # creates array from cost surface raster              pathArray = createPath(CostSurfacefn,costSurfaceArray,startCoord,stopCoord) # creates path array              array2raster(outputPathfn,CostSurfacefn,pathArray) # converts path array to raster               if __name__ != "__main__":         CostSurfacefn = "Administratief_perseel_1polygoon_PXLKOST_6000_6000.tif"         startCoord = (174084.004,176969.786)         stopCoord = (173697.916,175206.172)         outputPathfn = 'Path.tif'         main(CostSurfacefn,outputPathfn,startCoord,stopCoord)      Error Code:               Traceback (most recent call last):       File "<input>", line 1, in <module>       File "/Users/PeterVanvoorden/Documents/GroepT/Thesis/c)QGIS/CLIP_AGIV_GRBgis_e40179/Projects/python_console_scripts/least_cost_path0.1.py", line 77, in <module>         main(CostSurfacefn,outputPathfn,startCoord,stopCoord)       File "/Users/PeterVanvoorden/Documents/GroepT/Thesis/c)QGIS/CLIP_AGIV_GRBgis_e40179/Projects/python_console_scripts/least_cost_path0.1.py", line 65, in main         costSurfaceArray = raster2array(CostSurfacefn) # creates array from cost surface raster       File "/Users/PeterVanvoorden/Documents/GroepT/Thesis/c)QGIS/CLIP_AGIV_GRBgis_e40179/Projects/python_console_scripts/least_cost_path0.1.py", line 9, in raster2array         raster = gdal.Open(rasterfn)     AttributeError: 'module' object has no attribute 'Open'      I assume there is a problem with opening the file that I want to analyze "Administratief_perseel_1polygoon_PXLKOST_6000_6000.tif" but I just don't know how to resolve this.. Thanks in advance!


How to remove <VALUE> text from legend in layout view?

I'm producing a map in the layout view which I will eventually export as a jpeg. I've added a legend which includes 15 classes but when I insert a legend in layout view its including the word VALUE at the top of the legend column - I had a look at the properties and can't seem to figure out how to remove this - I'm using ArcMap 10.


Is it possible to use RPy/RPy2 in a Geoprocessing Script that is exposed as a GP Task on ArcGIS Server?

Is it possible to publish a Script tool that uses the RPy/RPy2 module (or more generally any Python-to-R link) to ArcGIS Server 10 SP2? If so, what specifically do I need to do, i.e. Install R on the server machine(s). Thanks.


Use Ushahidi api in another map using openlayers

I have a ushahidi deployment and i am using Openlayers + ushahidi api to show the reports in a separate map along with other features. i have queried the data from ushahidi api and made a vector layer. the layer has data but it not showing up. This part gets the data from ushahidi               var roadreportrequest = OpenLayers.Request.GET({     url: '../roadreport/api/?task=incidents',     async: false,     success: function(Request) {         // alert("success");         roadreportjson = JSON.parse(Request.responseText);     },     failure: function() {         alert("failed to load data from roadrepoter");         roadreportjson = {}     }      }); and this part converts it to vector layer               var roadreport_vector = new OpenLayers.Layer.Vector('RoadReporter Reports');          for (incident_index in roadreportjson.payload.incidents) {     // console.log(incident_index, roadreportjson.payload.incidents[incident_index]);     incident = roadreportjson.payload.incidents[incident_index];     roadreport_vector.addFeatures([         new OpenLayers.Feature.Vector(             new OpenLayers.Geometry.Point(incident.incident.locationlongitude, incident.incident.locationlatitude),             incident)     ])     }     map.addLayer(roadreport_vector);      There is data in the layer, i have checked the console and this code to pan the map also works.               map.panTo(new OpenLayers.LonLat(roadreport_vector.features[2].geometry.x, roadreport_vector.features[2].geometry.y))      My issue is that i am expecting the data to be shown up as on the map(the default orange circles), but it is not showing up.


PostGIS: Insert a Point using Python

What is the right way to insert a Point to a PostGIS database using Python?