arcgis10 filter dataset

Using ArcGIS 10 SP-4 I have a large dataset of sites that needs to be filtered down to a usable size. There is an attribute for the site_ID and another one for the site_type. There are duplicate site_ID’s in the dataset and I only need one record for each site. The preference of what gets deleted depends on the type. If there is a record with a type “A” then all other records for that site can be deleted. If a site does not have a type “A” then it doesn’t matter which records get deleted. In a nutshell I want to turn this… Site_ID-----Site_Type   123--------------A   123--------------B   123--------------C   555--------------B   555--------------B   555--------------C Into this… Site_ID-----Site_Type   123--------------A   555--------------doesn’t matter I’ve been playing around with SQL statements without any luck. Any suggestions?


How do I determine if a road is privately owned or not? (USA)

I'm working on a project where it matters greatly whether or not a piece of land is on a private road or not. Google Maps in many cases takes private roads (in, for example, master-planned subdivisions) and treats them in the same way does for public roads. Is there any quick way to check whether a road is privately owned or public? (in a lot of cases, even if a road is public it can be privately owned)


Convert coordinates to geometry (polygon) using QGIS

I have an Excel sheet with grid data including geographical coordinates. I know that the coordinates represent areas, i.e., a multi(polygon). However, the data lacks geometry information. I'm looking for an open source way of converting these coordinates into the corresponding geometries, mainly polygons and points. I'm hoping that I can do this using QGIS. I've looked around for information on how to achieve this, but no luck so far. I'm not even sure this is possible. I'm still researching, but any idea is welcome. **UPDATE:** I know that for a polygon, there are supposed to be at least 3 coordinates. But these are just given as (x,y). Nothing that conforms to a linear ring, for instance.I'm thinking that the coordinates in my Excel sheet represent the center of the polygon. Is there away of telling what the polygon is. This sounds far fetched, perhaps because I've never done anything like this before. Your opinions will be highly appreciated. **UPDATE: Sample Data** ![enter image description here](http://i.stack.imgur.com/TjbUJ.png) I plan to separate the 'Geolocation' column into x and y columns. Having thought about it for sometime, I think it's impossible. But any idea that might help will be appreciated.


Using CAST function in ArcMap 10 with ArcSDE?

I would like to use the CAST function in the definition query property of a layer and/or in the label class sql query window. This was the most promising link that I've found, including the two links found there. I haven't tried whether the syntax showed works against a file gdb but it doesn't work on SDE. Anyone have luck using sql in ArcMap 10 against ArcSDE 10? Thanks. EDIT: This worked on sde when the field is a Double. CAST(MP AS CHARACTER(12)) LIKE '7%' It does work but '%5' doesn't work. Having the percent after works and before doesn't. Thanks.


Problem Reclassifying Rasters

I need to reclassify some vector data which was made from Euclidian distance from points and lines. So after getting the Euclidian distances, I tried to run reclassify, but got: Error 001100 Failed because no statistics are available. I ran BatchCalculate Statistics on all of the Rasters I want to reclassify, and that went through. Tried Reclassify again, but failed, same error. Went to try and use Get Raster Properties and got: Error 999999 Error Executing Function. Here's my environments (I'm using ARCMAP 10.1) ![environment](http://i.stack.imgur.com/pzUnH.jpg) Please help if you can! Thx


Error running SEXTANTE in QGIS on Scientific Linux

I've installed SEXTANTE into qgis on my Scientific Linux machine and I am getting the following when attempting to run Warp; INFO|Mon Feb 24 2014 15:56:20|GDAL execution console output|/bin/sh: gdalwarp: command not found Has anyone else come across this? Many thanks


Can you map with numbers and words in the same column?

I have a column in my .dbf file that is a mixture of gradually increasing numbers but also a word for all of the items that don't match the criteria, for example:               **JUNIOR_PRI,N,4,2**     3.9     2.44     1.38     2.73     0     Non     Non     0      I didn't want to make the 'Non's a number, because then it would throw off my graduated color ramp if it took those into account; that's why I wanted to have the numbers ramp from yellow to blue, and then make the 'Non's all the same color -- like red. But when it goes into the GIS attribute table, it resets all my 'Non's to zeros. Is that because you can't mix numbers/words in a column? And is it possible to do my initial thought -- or would I have to make another column with all the 'Non's in that one so I could overwrite the blanks from my "JUNIOR_PRI,N,4,2" column? Thanks!


styles when merging shapefiles in qgis

Trying to create something for mapstory.org It wants it in all one shapefile. So I create a polygons and lines (with time attributes) in qgis 1.8 Then merge them all into one shapefile, how can you save the styles of all those polygons and lines into one .sld, how do you create an sld file that will have the info for all those merged polygons and lines?


Calculate distance of point along a line using NetTopologySuite

I am looking to calculate the distance along a line of a point using NetTopologySuite. Indications are that the distanceOp may have something to do with it, given that I can a point on a line closest to another geometry. However how to determine the distance along the line of that point? I can certainly determine what that distance is myself through some code - but I would have through NTS would already have this covered off. Anyone have any pointers? Thanks, Matt


How to use Dealul Piscului 1970/Stereo 70 (EPSG:31700) with Google Mercator?

To open Google layer I use OpenLayers 0.93 plugin, the base layer has CRS "Dealul Piscului 1970/Stereo 70 (EPSG:31700)", the Google layer is set to "Google Mercator (EPSG:900913)". The same base layer + google maps layer is aligned in QGis 1.8 on Fedora and on Windows (using the same plugin version). The same problem exist in earlier versions of Ubuntu and QGis (I have tested QGis 1.7 on Ubuntu 10.04 and Ubuntu 11.10). I tried to manualy change the EPSG:31700 parameters (in srs.db) to match those in the Fedora version of srs.db to:               +proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +towgs84=28,-121,-77,0,0,0,0 +units=m +no_defs         original was:               +proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +units=m +no_defs        I have installed "libgeotiff-epsg" but still no lock. I have replaced all the *.db from /use/share/qgis/resources/*.db with ones taken from QGis 1.8 installed on Fedora, but still no lock, the layer is misaligned. "enable on the fly reprojection" is checked. If you need more details or have some solutions to test, please be a little more explicit because I am a beginner in GIS related things. Thank you **Edit**   I attachet PrintScreen with the offset (I updated towgs84 as @mkennedy recomanded, but still no lock, only on Ubuntu): ![enter image description here](http://i.stack.imgur.com/GQOjo.png)


How to do bivariate or multicriteria line symbolization in QGIS?

Bonjour, je cherche à faire sur Qgis un tracé d'un itinéraire avec comme légende une couleur pour le type de route et la largeur du trait pour la fréquentation de cette route. J'ai vu qu'il était possible de faire des choses sur arcgis comme légende bivariée. Est-ce que ce que je cherche à faire est faisable sur Qgis??? Merci * * * I'm trying to use QGIS to trace out an itinerary with a legend using color for the type of route and line thickness for the amount of traffic on the route. I have seen that it's possible to do things like this in ArcGIS with a bivariate legend. Is what I'm trying to do possible with QGIS?


Vector layer shifted on OSM map: why?

I've defined the following map:               Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 +units=m +no_defs";     var googleProj = new OpenLayers.Projection("EPSG:900913");     var salzburgProj = new OpenLayers.Projection("EPSG:31258");     var bounds = new OpenLayers.Bounds(426249,294999,426251,295001);     var maxZoom = 19;     var minZoom = 15;     var res = [4.77731426696777,2.38865713348389,1.194328566741945,0.5971642833709725];          mapCOD = new OpenLayers.Map({         div: "mapCODs",         allOverlays: true,         maxExtent: bounds,         projection: googleProj,         allowSelection: true,         controls: [new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.Navigation()]         });          var layer = new OpenLayers.Layer.OSM(                 "layer1",                 "tiles/input/${z}/${x}/${y}.png",                 {zoomLevels: maxZoom, zoomOffset: minZoom, resolutions: res}             );               mapCOD.addLayer(layer);      I have created map tiles by myself using mapnik. The map is visualized properly, but I have a shift problem when I try to add a vector layer as follows:               // feat = ...well formed GeoJson feature     var geojson_format = new OpenLayers.Format.GeoJSON({internalProjection: googleProj, externalProjection: salzburgProj});     var vector_layer = new OpenLayers.Layer.Vector(1);     vector_layer.addFeatures(geojson_format.parseFeature(feat));         map.addLayer(vector_layer);      ![enter image description here](http://i.stack.imgur.com/pf4BJ.png) You can see the result in the image above: the vector layer (purple geometries) should be up-right shifted, in order to match the tiles below them. I do not understand why I obtain this behaviour: what is missing in my code?


Calculate field result is float with Arc tool, integer with arcpy script

I am trying to calculate a field for some points within a python script using arcpy functions. (This is calculating the percentage visibility from a cumulative viewshed, if that matters.)               # Process: Get Count     TotalFlightPoints = int(arcpy.GetCount_management(FlightPath_Pts).getOutput(0))          # Process: Add Field     Obsv_Vis = arcpy.AddField_management(Obsv_Vis, "PercentVis", "FLOAT")          # Process: Calculate Field (2)     Obsv_Vis = arcpy.CalculateField_management(Obsv_Vis, "PercentVis", "!RASTERVALU! / " + str(TotalFlightPoints), "PYTHON", "")      Even though I cast that field as a FLOAT when adding it, the result is consistently an integer (0 if less than 1, 1 if the point is 100% visible). I can get around this by `"!RASTERVALU! * 100 / " + str(TotalFlightPoints)`, which will at least give me the percentage (without any trailing decimals). That level of accuracy may be sufficient for this application, at least for now. But, if I use the Field Calculator within ArcMap on a "float" field (with, say, `!RASTERVALU! / 121` as the equation), it gives me the result as a float. So I'm wondering why the field calculator seems to work differently in different situations, and/or what I can tweak to get what I really want.


How to move and open shapefiles with ogr2ogr?

I'm a total newb following along the d3 map tutorial. at this line:                   ogr2ogr \       -f GeoJSON \       -where "adm0_a3 IN ('GBR', 'IRL')" \       subunits.json \       ne_10m_admin_0_map_subunits.shp      I get this output:               FAILURE:     Unable to open datasource 'ne_10m_admin_0_map_subunits.shp' with the following drivers.       -> ESRI Shapefile       -> MapInfo File       -> UK .NTF       -> SDTS       -> TIGER       -> S57       -> DGN       -> VRT       -> REC       -> Memory       -> BNA       -> CSV       -> GML       -> GPX       -> KML       -> GeoJSON       -> GMT       -> PCIDSK       -> XPlane       -> AVCBin       -> AVCE00       -> DXF       -> Geoconcept       -> GeoRSS       -> GPSTrackMaker       -> VFK       -> PGDump       -> GPSBabel       -> SUA       -> OpenAir       -> PDS       -> HTF       -> AeronavFAA       -> EDIGEO       -> SVG       -> Idrisi       -> ARCGEN       -> SEGUKOOA       -> SEGY      This has been asked before, but I have ogr2ogr installed correctly, and my question is much more basic. I haven't moved any .shp, .shx, .dbf, and .prj files. I'm following the tutorial closely, and haven't created any type of project directory, so I am still working out of usr/bin/local. Do I need to move certain files to a new project folder? If so where can I find them?


Why does Clip analysis generate (some) empty output?

I am running a script that is working (see below) - it pulls a file from a folder, clips from that file based on an intersection with another file, and creates a new shapefile in a new folder. It has been working, except that it generates empty outputs for only some of the inputs. With some research I've tried the following fixes to no avail:   1. Check extent and projection of Clipping feature to match that of the Input features.   2. Shorten output file name (hence the awkward string parsing in the output)   3. Standard re-boot of computer, programs.    4. [edit] Also convert Clipping file from Multi-Part to Single-Part Polygon.  Any ideas? Do you see quirks with my script? Are there quirks of Clip tool? Thanks!               #Script - Clip selected buffer circles from WEA areas.     #Input: VTRX_1_distX_sel.shp     #Clip: WEA file     #Send output to clip folder           import arcpy import sys import os from arcpy import env          #Set overwrite arcpy.env.overwriteOutput = True print arcpy.env.overwriteOutput          #Set workspace workspace = "C:\\BOEM\\circle_areas\\" arcpy.env.workspace = workspace sel_files = workspace+"selectedcirc\\"          fileList = [] count = 0          directorypath = "C:\\BOEM\\circle_areas\\selectedcirc\\"          for dirname, dirnames, filenames in os.walk(directorypath):         for filename in filenames:             if filename.endswith("1_sel.shp"):              #   filename = "VTR10_1_dist1_sel.shp"                 print "___"                 print "Clipping from " + filename                 print "___"                 in_features = sel_files+filename                 clip_features = "C:\\BOEM\\circle_areas\\WEA_proj_sing.shp"                 out_features = workspace+"clip\\"+filename[0:5]+"_"+filename[11:13]+"c.shp"                 print "Input file " + in_features                 print "Output file " + out_features                      #Clip                 arcpy.Clip_analysis(in_features, clip_features, out_features,"")                 print arcpy.GetMessages()                 print "___"                 print "___"                 print "___"                 ##


Is there a way to do a python batch script for Analyze and Compress on SDE Databases?

I created and modified python scripts based off of ERSI's example (http://resources.arcgis.com/en/help/main/10.2/index.html#//003n000000v7000000), however, what would be great is to be able to batch process these files using python. I attempted trying model builder by adding two database connections to the compress tool. (That didn't work.) Obviously, right-clicking on the tool in ArcToolbox brings up the option for batch, but I have no idea how to do this for python. I can not seem to find anywhere the ability to do this. It's a pain to have ten scripts running the same thing but with different databases. Anyone know how to do this with python? Thank you in advance.


How to get vector feature by mouse location?

I'm writing a photo grouping plugin. My current problem can be broken up into "end goal" and "baby steps", because I think that's what I want. But if there's a way to get to the end by a different means, that's what I really need. End goal: given 2 different QGIS layers, 'nodes' and 'sections', and given a bunch of groups of photos, mouse over a 'node' > click to assign photos to node. mouse over a 'section' > click to assign. Repeat indefinitely, not necessarily in order. Without toggling active layer back and forth and making selection(s) first. Baby Step #1: find out what feature(s) on which vector layer(s) is under the mouse position. I found the "Value Tool" plugin last night, read through the code, and it reports values from multiple raster layers based on the mouse position. I was super excited! Unfortunately, it seems that QgsVectorDataProvider doesn't have anything analogous to the QgsRasterDataProvider's identify(position) method, which is how that plugin works. So I've been playing around with QgsVectorDataProvider.select(), but can't get it working. Probably doing something stupid. This post: http://gis.stackexchange.com/a/22919/6690 makes it sound like it's possible. Can anyone tell me what I'm doing wrong? Steps (in Python console for now): >   1. load vector layer in QGIS >   2. iface = qgis.utils.iface; canvas = iface.mapCanvas(); layer = > canvas.layer(0) >   3. layer.dataProvider().attributeIndexes() >> [0,1,2,3,4,5] >   4. A = layer.dataProvider.select((0,1,2,3,4,5),canvas.extent()) >   5. checks: A >> nothing; type(A) >> 'type 'NoneType'' > Once I can get a selection by position, I think I can get the list of layers I want to check, iterate through them with position, check & flag on overlaps, and we're off...


OpenLayers 3: Create a map based on ImageStatic and add features (polygons, linestring etc.)

I have an image that I need to create an OL3 map for, so I've done:               var map;          $(function() {         var imgProjection = new ol.proj.Projection({             code: 'pixel',             units: 'pixels',             extent: [0, 0, 3721, 2631]         });              map = new ol.Map({             target: 'skimap',             renderer: 'canvas',             layers: [                 new ol.layer.Image({                     source: new ol.source.ImageStatic({                         url: 'http://skimondo.swissgeo.ch/mapeditor/config/schwarzsee/data/map.jpg',                         imageSize: [3721, 2631],                         imageExtent: [0, 0, 3721, 2631],                         projection: imgProjection,                         center: ol.extent.getCenter(imgProjection.getExtent()),                         extent: imgProjection.getExtent()                     })                 })             ],             view: new ol.View2D({                 projection: new ol.proj.EPSG4326(),                 center: ol.extent.getCenter(imgProjection.getExtent()),                 zoom: 2             })         });              var vectorSource = new ol.source.GeoJSON({"type":"LineString","coordinates":[[3.625,-28.952465726],[0.1875,2.235034274],[0.09375,19.578784274],[-1.25,33.922534274]]});         var vectorLayer = new ol.layer.Vector({             source: vectorSource,             style: new ol.style.Style({                 stroke: new ol.style.Stroke({                     color: '#FF0000',                     width: 2                 })             })         });              map.addLayer(vectorLayer);      But no feature shows up plotted onto the map? I am not sure if I have correctly made the map / layers / projection ? I have basically been trying to convert the old OL 2.13 code that I had working. It used WKT which was generated from the DB using ST_AsText, for the OL3 code, I have to use geoJSON (which is generated from ST_AsGeoJSON I believe):               $(function() {         var map = new OpenLayers.Map('skimap', { controls: [] });              map.addControl(new OpenLayers.Control.PanZoomBar());         map.addControl(new OpenLayers.Control.KeyboardDefaults());         map.addControl(new OpenLayers.Control.Navigation());         map.addControl(new OpenLayers.Control.ArgParser());              var options = {             numZoomLevels: 5,             minResolution: 0.05,             maxResolution: 0.30,             projection: new OpenLayers.Projection('EPSG:4326'),             isBaseLayer: true,             opacity: 0.8         };              var skimap_image = new OpenLayers.Layer.Image(             'schwarzsee',             'http://skimondo.swissgeo.ch/mapeditor/config/schwarzsee/data/map.jpg',             new OpenLayers.Bounds(-180, -127.272238646, 180, 127.272238646),             new OpenLayers.Size(3721, 2631),             options         );              map.addLayers([skimap_image]);              var vector_layer = new OpenLayers.Layer.Vector('Points', {             projection: new OpenLayers.Projection('EPSG:4326')         });              var polygonFeature = [];              var polygonGeom = new OpenLayers.Geometry.fromWKT('LINESTRING(X X, X X)');         polygonFeature.push( new OpenLayers.Feature.Vector(polygonGeom,             {                 id: '1'             },             {                 pointRadius: 8,                 color: '#FF0000',                 strokeColor: '#FF0000',                 strokeOpacity: 0.8,                 fillColor: '#FF0000',                 fillOpacity: 0.4             }         ) );              vector_layer.addFeatures(polygonFeature);              map.addLayer(vector_layer);              map.zoomToMaxExtent();              map.zoomTo(10);          });      Any ideas why my OL3 version code isn't working (with added features showing up)?


can we get the Fusion layer added event

in Google Maps API i have used FusionTableLayer to add data on the map. in ESRI or other webmaps api we have the option to listen the map, and map will call back the method when all the layers are added to map. is their any why get the layer loading is done? and Need to get the event when Fusion layer is added to the google maps How can i do that?


Create a non spatial index on an attribute in QGIS before joining two layers

I’m using QGIS 2.0.1 on Windows 7. I’m trying to join a .dbf which contains no spatial data to a shape file containing spatial data. Ideally I’d like to create an attribute index on the join field in the .dbf before I join it to the shape file. Does anybody know how I can do this? Also in the join menu there are two tick box options:   1. Cache join layer in virtual memory   2. Create attribute index on join field Can anybody tell me what these two options mean? Is the attribute index created during the join if I was to tick this or is it done before the join? Cheers, Jess


intersect two shape files using QGIS API

I am trying to automate a process of a shape file. We are using google maps engine and we have limitation on number vertices in a shape file. so I am using a grid to split the shape files. In GUI , I add a grid from research tool then vector->geoprocessing->intersect and get the result but when I try it using API ( with below code ) result is not same. it gives me error as it cannot insert LINESTRING in POLYGON shapefile. this is my code:               QgsApplication.setPrefixPath('C:\\OSGeo4W\\apps\\qgis', True)     QgsApplication.initQgis()     covLayer = QgsVectorLayer('C:\\Shapes\\small coverage.shp','coverage','ogr')     gridLayer = QgsVectorLayer('C:\\Shapes\\small grid.shp','grid','ogr')     qgis.analysis.QgsOverlayAnalyzer().intersection(gridLayer,covLayer,'C:\\Shapes\\intersected.shp',False)     QgsApplication.exitQgis()      any insight? stuck badly here!! Thanks.


Coded Value Domains in ArcMap

I am analyzing a database in ArcMap 10.1 and I wanted to know whether it is possible to trace what tables are linked to a particular Coded Value Domain? I am attempting to find a particular table. I know that you can do this the other way around and look at what Coded Value Domains are being assigned to a table but as the database is soo large this isn't particularly useful. Any suggestions would be helpful, thanks for your time.


How can I add vector tiles to my tileserver?

I created my own tileserver under ubuntu 12.04 as described here: http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ now I want to serve the tiles as vectors, I found this: https://github.com/mapbox/mapnik-vector-tile but I dont know if I can use it right now. I installed the dependencies but when building the make command does not work at the installation because make: _*_ No targets specified and no makefile found. Stop. is shown.


Is there a way to read the columns in a shapefile / layer without converting it first to an MDB file?

My shapefile has a number of fields, like roadname, and street number. Is there a way to get at these without converting the shapefile first into a featureclass (mdb)? Sometimes the conversion is a time consuming operation. I'm using ArcEngine 10 C# with VS2010


Why does heatmap size vary with number of points

I am making three heatmaps based on points over the same area and don’t understand why the number of rows and columns would vary depending on the number of features. The first feature set has 398 points. Making a heatmap of cell size 15 x 15 produces 2,887 columns, 2,405 rows according to the heatmap dialog in QGIS 2. The second feature set has 510 points. Making a heatmap of cell size 15 x 15 produces 3,077 columns, 3,523 rows. QGIS 2 produces heatmaps for both of these in a reasonable time and of reasonable size (about 140 MB). The third feature set has 1,473 points. Making a heatmapof cell size 15 x 15 produces 189,007 columns and 48,054 rows. After 3 days of processing and a 14 GB file, I killed the process. Shouldn't the number of rows and columns be roughly the same if the areas that the points cover is relatively the same? If not, how would I get my third raster down to a manageable size? Thanks


Automating the "Add Data" tool to add 400+ geotiffs based on file extensions

I have a spreadsheet that lists the file extensions for 400+ geotiffs that I need to add to ArcMap 10. Is there a way to automate the "Add Data" function? Thanks!


Can I use VB to search against an arcserver service in arcmap?

I've published a ArcServer service that is going to be consumed by out of the box, standard ArcGIS on the desktop. My question is, is it possible to write custom tools in VB to query layers from that service in the ArcMap interface. I'm using ArcGIS 9.3. Thanks in advance.


What types of GIS problems does functional programming address?

After reading @ray vernagus post about using ArcObjects with F#, I have been wondering ... what types of GIS problems are better handled by Functional Programming, as opposed to more traditional forms of programming? Perhaps more specifically, when would I be better off using F# as opposed to C# with ArcObjects?


finding orientation -direction of polygon

i have one polygon layer and another is point layer,i want to findout orientation automatically of line of polygon which is parellel to the street and closest to the point.i am using Qgis 2.0 .is it any plugin to findout this?without scripting it can be done? thanks ![enter image description here](http://i.stack.imgur.com/c9ak0.jpg)


EPSG operations and operation methods

Querying through the **EPSG database** , I can see the tables `epsg_coordoperation` where transforms and conversions between different CRS are stored, and `epsg_coordoperationmethod` which stores the mathematical methods used by the transformations. Correct me whether I'm wrong. To make an example, looking through the details of the conversion form ED50 to WGS84 over Sicily (http://www.epsg-registry.org/, --> _retrieve by code_ \--> **1143** ), I can see that the transformation involves simple shifts on the 3 cartesian axis. Operation is ED50 to WGS84, operation method is Geocentric Translation. My statements which I would like to be either confirmed or corrected are:   * coordinate _operations_ are always meant to reach a target CRS;      * coordinate _transformations_ involve a change of datum, e.g. [geocentric<\-->geocentric] or [projected<\-->projected], etc.     * ..as coordinate _conversions_ do, but regarding a [projected<\-->geographic] error-free translation;   * one could apply arbitrary operation _methods_ to a georeferenced dataset, say a simple arbitrary shift on one or more dimensions in the most simple case, given that the requirementes are met.  My questions:   1. Considering only the operation **methods** , does applying method _X_ to CRS _A_ always take to a different CRS? But which one? E.g. a Lambert Conic Conformal (2SP) - EPSG:9802 - projects ellipsoidal coordinated to a projected XY map, but to which CRS? Or again, a shift on an ED50-based image may take to a WGS84-based image, but only if the shifts are the ones defined in the correct _operation_ (--> Parameter values).   2. Bob wants to reproject a coverage from a source to a target CRS. Are there cases in which he would prefer to specify its own _path_ of CRS transform concatenation instead of the _default_ method offered by _foo_ library? Thanks in advance for any effort.


How to prevent labels from one layer from overlapping features in another layer

I am working ArcMap10.1 software. When I was labeling on point feature automatically label fall on line. Label must not fall on line. I'm not aware how to solve this issues. I have attached an example image to show the problem. ![enter image description here](http://i.stack.imgur.com/ULldj.jpg)


Why does Geoserver WMS not work in OpenLayers?

I am relay new to webGIS and these days i trying to develop webmap using FOSS software. This is my codes of open layers and it is not working. Geoserver URL               http://localhost:8080/geoserver/sac/wms?service=WMS&version=1.1.0&request=GetMap&layers=sac:Luse&styles=&bbox=105097.8879663402,181965.81598811893,107146.57910105384,183739.10929816443&width=512&height=443&srs=EPSG:5235&format=application/openlayers      Openlayers code               <script type='text/javascript' src='OpenLayers.js'>     </script><script type='text/javascript'>      var map; function init()      {         map = new OpenLayers.Map('map_element', {});         var wms = new OpenLayers.Layer.WMS( 'OpenLayers WMS', 'http://localhost:8080/geoserver/sac/wms',         {layers: 'sac:Luse'},         {}      );      map.addLayer(wms);      if(!map.getCenter()){ map.zoomToMaxExtent(); } }      </script>     </head>          <body onload='init();'>         <div id='map_element' style='width: 500px; height: 500px;'>     </div>     </body>     </html>      What is the problem? Pls help me.


OSM To Postgis & WGS84 Newbie confusion

Hi I wonder if someone can clarify as I'm confused. I need to load planet OSM data into Postgis so I downloaded a small data set of a UK County and followed the instructions here loading the Google Mercator projection 900931.sql first. looking at the data in Geoserver the co-ordinate readout on the location bar appears to be in metric East / West and not Longitude/Latitude yet the osm wiki states World Geodetic System 1984 is the coordinate system of OSM data. What am I doing wrong? Also is there a best practice for displaying OSM as a base layer? Where can I get a Point.sld from?


How to intersect lines and polygons in R?

Following on from an answer about intersecting polygons with lines to chop up a polygon into smaller **polygon** units (in QGIS), I wanted to try the same thing in R. However, I cannot seem to find a method that works! `over()` doesn't have a method for polygons intersecting with lines; I found `gIntersection()` from rgeos but it fails:               require(sp)     require(rgeos)          poly <- readShapePoly("polygon.shp")     lines <- readShapeLines("lines.shp")          chopped <- gIntersection(poly, lines)      Giving:               Error in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, "rgeos_intersection") :        UnsupportedOperationException: GeometryGraph::add(Geometry *): unknown geometry type: N4geos4geom18GeometryCollectionE      **Update** : Here's a link to the files in question. **Update 2** : PaulG notes that it works and after updating rgeos and R I got rid of the error above. Thanks PaulG ... However, gIntersection results in a SpatialLines object no matter whether I put in (poly, lines) or (lines, poly) - whereas the operation I did in QGIS (or Arc, back in the bad ol' days) will divide a polygon with the lines and result in a _polygon_ object, not line. So, how do I chop up my polygon with the lines and get _polygons_ out?


How to go with...somewhat complex geological maps in QGIS?

Just a follow-up to this question QGIS: Line to polygon conversion. Not sure do i have to continue there itself... We are currently digitizing a geological map...which has 36 features in total. Some of them will be polygons & some of them will be polylines. What we normally do is, we will capture all the features as polylines in Mapinfo and later we will enclose some of the features as polygons and will keep the others as polylines itself, so that we don't have to digitize the same features again and again. I am arguing with some of colleaques...that most of the work can be done in QGIS itself.I knew very well the limitations of a OSS. But still, i find it very difficult to understand..why a basic conversion like "Line to Polygon" is not running properly..which is very much needed for our work. I've almost tried everything. Polygonize, Line to Polygons (even thru SAGA), Convex Hull. But still, the result is not satisfactory (Pls refer the image). Is it one of the limitations of qgis ? If so, then we have to drop the idea of using qgis for our project (which i don't want to happen). Is there any other alternative in QGIS itself ? ![enter image description here](http://i.stack.imgur.com/tbY5o.jpg) * * * What we'll do in Mapinfo is... 1) Will capture all the linear features as polylines (Obvious, isn't :) ) 2) Then we'll capture some other geological features as polylines as well (with different attributes). Most of the time, the linear features will overlap with the geological features. So we will make use of the previously digitized Linear features layer & merge them with this - Geology layer. Of course, with the change in attributes. 3) Now, using the "Enclose" command in Mapinfo...all the properly snapped polylines will be converted to Polygons. QGIS doesn't work like Mapinfo layer thing..i.e..Point + Lines + Polygons..all in one layer. So we have two options Either capture the features as polygons first & then convert it to polylines. But, it's so cumbersome & will create lot of confusion. B'coz so many linear features will be overlapping on this polygon/geology features. It'll be very difficult to delete the unwanted polylines late...once we have converted it to polylines. Or otherwise, we have to go with mapinfo's procedure. Polyline -> Polygons..That's what we are trying to do & so far the results are unsatisfactory (as in the image) Update: As answered by nhopton, i tried the same "Polygonize" in 2.2 Valmiera (which was installed with all the components thru OSGEO installer) and it worked fine. I think the problem might be with python components or something.. The outcome was shown in the image. Note: The second map in the image was done in a system wherein which QGIS 2.2 was installed as standalone sw. ![enter image description here](http://i.stack.imgur.com/tbY5o.jpg)


Oncoming intersection or intersection density

Through the use of Android and its on board GPS module, I am looking to calculate the density of intersections in a given area. Say 1 km x 1km. How would I go about accomplishing this? I am new to any kind of coding, but so far I have developed a simple GPS location app and integrated it with the google maps api. What I have read is that I wouldn't be able to use the google api for street information. I have read some papers using image processing on a google map, and determine nodes via crossings of the lines. But that isn't good enough, plus very complicated and way out of my scope of abilities. How would I be able to use OSM on an Android device to calculate street intersection density or upcoming intersections? Thanks guys!


ArcPy: Creating weekly-sum layers by summing field values from seven consecutive daily .dbf's

So I have 490 consecutive daily rainfall shapefiles/.dbf files in a single directory. Each consists of a uniform even-spaced grid of 220 points having uniform pointIDs, number of records, field names and datatypes, and a field containing a daily recorded rainfall value (in inches) for each point/record. I'm trying to read in the first 7 .dbf's from a list, read their rainfall values, sum them up for each record/point, create a new shapefile (ie. weeksum1.shp) having the same table structure as the daily files and containing weekly calculated sums for each record. Repeat for the next 7 .dbf's until 70 weeks (490/7) of data are created. I've successfully done this by converting the shapefile's to raster, but I have to keep associated attributes for each point which I didn't foresee before spending a lot of time building scripts/models to work with rasters... USING: ArcGIS 10 (ArcInfo) SP4 with all extensions, ArcPy, Excel 2007


Map Algebra expression in a model fails on open workspace

I have model which runs 2 processes that create rasters and a third process that (attempts to) add the two of them using Map Algebra. The expression is very simple, just `"%Raster_A%" + "%Raster_B%"`. This third process aborts with `ERROR 000539: Error running expression: rcexec() <type 'exceptions.RuntimeError'>: ERROR 010167: Could not open workspace .` The help file for _Error 000539 : Error message from Python_ does not appear relevant, this isn't a problem with python syntax or type use. There is no help page for #010167, but the "not open workspace" is self explanatory. I haven't found any info on `rcexec()` but name and context suggest it's a method for shelling out to an external python process and getting something back. It's reasonable to assume the external process doesn't know it's being executed from a model and that the workspace lock it's encountering is from the parent, and that this is okay. Or, maybe rcexec is not encountering a lock and what's really having trouble with is finding the workspace. I have no way of knowing (I don't think). The model has an _Output Workspace_ input parameter, which the two antecedent processes use just fine. I tried connecting the Output Workspace input parameter to the map algebra expression as _Enviroment > Workspace > Current Workspace_ to no effect. Any ideas how to track the source of this error down and fix it? * * * **update:** Aha! The environment is not clean. I edited the model and _deleted_ the Current and Scratch workspace settings, and they reverted to the default `C:\Users\matt\ArcGIS\default.gdb`. At that point the error changed from _can't open_ to _invalid workspace_ :               ERROR 000539: Error running expression: rcexec() <type 'exceptions.RuntimeError'>:     ERROR 000875: Output raster: T:\env298.gdb\A_plus_B's workspace is an invalid output workspace.      The curious thing is that the workspace specified in the error _was_ the model's workspace at one time. So `rcexec()` is not respecting the value set in the model's environment properties, nor the process's workspace environment property. Now I just need to figure out how to _really_ reset the environment to defaults.


How to change the styles (fonts, in particular) in a ArcToolbox tool UI?

I am attempting to change the font size in my ArcToolbox tool UI. I have scoured the ArcGIS 10.0 online help and found nothing on this topic. Googling it turned up the 9.1 version, which has been helpful. I followed those instructions, and here is what I have done:   * I copied MdDlgContent.xsl that styles Tools to a local directory, the same as my Tool actually   * I edited the CSS and the HTML in MdDlgContent.xsl and have been successful in making a quite ugly Tool (just for the purpose of seeing whether I can make changes occur or not) where the background color, table border, table cell padding, and background image are changing: ![enter image description here](http://i.stack.imgur.com/1Ydp6.png) Now, that said, I cannot, for the life of me, get the caption fonts (surrounded in red boxes above) to change. I have added/edited CSS and HTML all over the code, trying every dirty non-validating hack I know of. I would post the code, but it's just too much. The XSL, on my system, is located at: C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Stylesheets If you scroll down in the 9.1 help on this topic, they show an example where the font size and color have both been changed. I'm thinking this is something that is right in front of me that I'm just not seeing and am wondering if anyone has figured this out before.


Why does ERDAS not like my GDAL output?

I am creating a raster using GDAL and the IMAGINE file doesn't work in ERDAS because it doesn't recognize the projection. Here is the code to generate a sample:               from osgeo import gdal          projectionWkt = """PROJCS["Albers Conical Equal Area",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4269"]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["standard_parallel_1",29.5],PARAMETER["standard_parallel_2",45.5],PARAMETER["latitude_of_center",23],PARAMETER["longitude_of_center",-96],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["meters",1]]"""          outputRaster = gdal.GetDriverByName("HFA").Create("test.img",10,10,1,gdal.GDT_FLoat32)     outputRaster.setProjection(projectionWkt)      This file does work in ArcMap, but can't be used in ERDAS. Am I doing something wrong with GDAL?


After joining data from csv file to shapefile, why are all values zero in categorized renderer?

I have joined data from a csv file to my shapefile. The attribute table shows a successful join. I have converted the variable of interest to INTEGER. But when I go through Style to categorize the variable, all I get is zero. Help please!


How to convert geospatial data with a custom SRS into ESRI Shapefiles?

I want to convert geospatial data stored in a .csv file into GeoJSON or ESRI Shapefiles. The problem is that the coordinate reference system is not in the database of EPSG codes. The originator however provides a .prj file with the relevant information.               // ETRS89_UTM_Zone_33_BB_6stellig.prj     PROJCS["ETRS89_UTM_Zone33_6",       GEOGCS["GCS_ETRS_1989",         DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137.0,298.257222101]],         PRIMEM["Greenwich",0.0],         UNIT["Degree",0.0174532925199433]       ],       PROJECTION["Transverse_Mercator"],       PARAMETER["False_Easting",500000.0],       PARAMETER["False_Northing",0.0],       PARAMETER["Central_Meridian",15.0],       PARAMETER["Scale_Factor",0.9996],       PARAMETER["Latitude_Of_Origin",0.0],       UNIT["Meter",1.0]     ]      Source: Landesvermessung und Geobasisinformationen Brandenburg


2 Shapefile vectors will not plot properly in same space

There are slight differences in 2 shapefiles projection information. I have activated on-the-fly, but they do not plot in the same space. I tried to save as new shapefiles with the same CRS, but nothing changed. Here are the projection files followed by the properties shown in Qgis. > > GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] Extents: In layer spatial reference system units : xMin,yMin -176.732,51.712 : xMax,yMax -130.017,69.5665 Layer Spatial Reference System: +proj=longlat +datum=WGS84 +no_defs > GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS > 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] Extents: In layer spatial reference system units : xMin,yMin -608773.35,761075.16 : xMax,yMax 1463871.73,2053821.27 Layer Spatial Reference System: +proj=longlat +datum=WGS84 +no_defs


Install QGIS 1.9 on Fedora 19

I have tried the guide http://hub.qgis.org/projects/quantum-gis/wiki/Download > yum install --enablerepo=updates-testing qgis qgis-python qgis-grass qgis- > mapserver it shows only QGIS 1.8 is available any guide on installation of QGIS 1.9?


Reproject an aerial layer in QGIS and then open with ArcEngine?

I have an Aerial layer (.SID file) which I would like to re-project in QGIS, then I would like to open it in ArcEngine. I've figured out how to do this with vector layers in GGIS, its just a right click, "Save As", but my Aerial layer does not have a "Save As" option.


How to connect ArcGIS Destkop 10 with PostGIS

> **Possible Duplicate:**   >  How can I connect to a PostGIS database from ArcMap 9.3 and 10.0? I've installed postGIS 1.5.3, and would like to connect it from ArcGIS Destkop v10. Which is the best (and cheaper) way to do it? Thank you very much.


Is there a way to connect to PostgreSQL in ArcCatalog without SDE? I came across this post from 2011 that suggested using zigGIS but I can’t find a working link to the program. A little background: At my work we have a small GIS department (3 people) and our current process is to create file geodatabases for each client. The main issue is that we work in a high-transaction environment and we are constantly locking each other when we work on the same project. This is extremely annoying so we're trying to move to a relational database like PostgreSQL. While it would be nice to switch over to SDE ESRI Canada gave us a quote that is way too much for a staff of three people (something like 40k install and 20k/year maintenance) Also if anyone uses PostGIS as your main form of data storage, what GIS program do you use?


Access the symbology value and label with C#. I am having trouble finding the label in arcObjects. Please help

# region GetLookupTable Method                   /// <summary>         /// GetLookupTable method loops through the fields of a specific          /// featureClass and adds them to an Entities.Layer, which is been          /// created. Currently is applyed to get the symbology of a layer         /// </summary>         /// <param name="pGeoFeatureLayer">IGeoFeatureLayer layer</param>         /// <param name="eLayer">Entities.Layer layer</param>         /// <param name="eColumn">Entities.Column current column</param>         private static void GetLookupTable(IGeoFeatureLayer pGeoFeatureLayer, Entities.Layer eLayer, Entities.Column eColumn)         {             // get the index of the field we are interested in             List<int> constructOidList = new List<int>();                       constructOidList.Add(-1);                       constructOidList.Add(1);                       constructOidList.Add(2);                       constructOidList.Add(3);                       constructOidList.Add(4);                       constructOidList.Add(5);                       constructOidList.Add(6);                       constructOidList.Add(7);                       constructOidList.Add(8);                       constructOidList.Add(9);                       constructOidList.Add(10);                       constructOidList.Add(20);                       constructOidList.Add(30);                       constructOidList.Add(33);                int[] oidList = constructOidList.ToArray();                  try             {                 IFeatureClass pFeatureClass = (IFeatureClass)pGeoFeatureLayer.FeatureClass;                 IFeatureCursor pFeatureCursor = pFeatureClass.GetFeatures(oidList, false);                 IFeature pFeature = pFeatureCursor.NextFeature();                      IObject pObject = (IObject)pFeature;                 IRow pRow = (IRow)pObject;                 ITable pTable = (ITable)pRow.Table;                 eLayer.IdColumn = pTable.OIDFieldName; // OID field name                       long valueOut = 0;                  bool canConvert = false;                 // loop through the returned features and get the value and name pair for the field                 while (pFeature != null)                 {                     string pValue = pFeature.get_Value(pFeatureClass.FindField(eColumn.Name)).ToString();                     string pLabel = "";                          if (!string.IsNullOrEmpty(pValue))                     {                         canConvert = long.TryParse(pValue, out valueOut);                         if (canConvert == true)                         {                             eColumn.LookupTable.Values.Add(valueOut, pLabel); // lookup table values                         }                     }                     pFeature = pFeatureCursor.NextFeature();                  }                 System.Runtime.InteropServices.Marshal.FinalReleaseComObject(pFeatureCursor);             }             catch(Exception exc)              {                 Console.WriteLine(exc.Message);             }         }         #endregion


Testing if shapefiles intersect from a list using intersect: ArcGIS

I am new to programming and scripting in general, so please bear with me. I have generated a list of the location of all the shapefiles for my workplace. The files are all placed in folders, no geodatabases are used. I am trying to create a tool which queries which of the shapefiles intersect another shapefile. I would like to use the list as one of the inputs for the intersect parameters. I want to:   1. Calculate the area of the intersected features   2. perform stats   3. If area of intersect > 0, convert the original data to feature layer   4. clip the feature layer and save as new fc in target location. I would really appreciate some python script examples as to go about this task. I am using arcGIS 10 with an arcView license. Thank you.


Can feature Info be extracted from WMS

Ok since my previous problem of overlaying WFS onto WMS is still unsuccessful, I though was able to overlay the WMS instead with this code,               {layers: 'iPlant:AllQuebecSpecies', transparent: true}      So now I wanted to know can I use the openlayers get-feature example to obtain info from the WMS or does it work only for WFS?


How can i create sectors for telecom towers

friends i am seeking advice from the GIS community * * * I work in the Mobile networks industry and i took up a task to create a plugin for QGIS using `c++/python` that does the following:   * step 1: Create points corresponding to each mobile tower based on Lat/Long of each tower( this part i have accomplished )   * step 2: Further: sectorise: each of these towers would have antennas oriented at different azimuths. so i need to create a symbol for each antenna direction (would in the end look like a flower petal in a flower or inward pointed triangles)    * step 3: When i click on any sector, all nearby sectors facing the sector should be highlighted in some way( so i can find the neighbors) What i have to start with is a big excel file containing the sector name , lattitude, longitude, antenna orientation , etc. Does anyone have any opinion ? ![enter image description here](http://i.stack.imgur.com/hwRi1.gif)


Time series data visualization

Hi I have two different data sources that i would want to use for my application > 1) Time series data on a road network > > 2) Spatial data of the road network In essence i would want to combine both the information and build visualizations. For example to show variation of speed with time on a particular road using a time slider. To do this I created a view joining the two tables using sdetable tool and built a layer using the view. But for some reason I am not able to host it as a service. Please do suggest if there are better ways to do it?


What is a good way to produce wire frame images from DEM?

As part of a project for a wind turbine assessment, I would like to make a wire frame image to compliment my Viewshed / line of sight and Photo montage. I have never created a wire frame image from dem data and haven´t got a clue where to start. Could anyone direct me in the right direction regarding software..preferably OpenSource!? Cheers, Robert


How can I modify the tiles size in Openscales or other ways to boost the application performance

I am developing an application in Flex that uses Openscales and GeoServer in order to provide a map in the background. It works but the perfs aren't really good; even if everything is on the same computer (the application, the GeoServer and the MySQL database or the shapefiles that are used by GeoServer), loading the map takes some time (~5-10s for the whole screen). I thought that with everything local, it would be much more fluid than that. For example, when you drag the map, I'd like the map to be updated almost instantly. In order to boost this, I tried many things on Geoserver (shapefiles, MySQL, ...) and modified many parameters but it doesn't change anything. I'm now trying to change the tiles size : I think that they are for the moment in 128x128 so I would like to change their height and width so that the app asks the server for less tiles each time the user drag the map. My questions are:   * How do you change those width and height? I coudn't find a way to do it.   * How could I increase my app performance regarding the map? The code that creates the map object is the following :               <?xml version="1.0" encoding="utf-8"?>     <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"           xmlns:s="library://ns.adobe.com/flex/spark"           xmlns:mx="library://ns.adobe.com/flex/mx"          xmlns:os="http://openscales.org"          xmlns:layer="org.openscales.fx.layer.*" xmlns:core="org.openscales.core.*">             <os:Map id="fxmap" width="100%" height="100%" resolution="0.01" maxExtent="-180,-90,180,90" projection="EPSG:4326" center="0,45">             <os:WMSC id="mapLayers"                  name="Topp States (WMS)"                  url="http://localhost:8080/geoserver/gwc/service/wms"                  layers="WorldOnMySQL:ne_10m_admin_0_countries"                  format="image/png"                  bgcolor="0x454E54"                   projection="EPSG:4326"                  tileHeight="256"                  tileWidth="256"                  tiled="true"                  />             <os:DragHandler/>             <os:ClickHandler/>             <os:WheelHandler/>         </os:Map>      After that, there isn't anything useful in the script part... I hope you can help me, and ask me if you need more information.


Fill Sinks of multiple rasters in a Python expression

I have 31 rasters that represent different watersheds and I would like to use the Fill (Spatial Analysis) tool to fill the sinks of all rasters at once in Python. All the rasters have the same name followed by a number (0-30). Here is my code so far:               Import arcpy     From arcpy import env     From arcpy.sa import *     Arcpy.env.workspace = (r“Workspace\Path”)          For I in range (31):          outFill = Fill(“raster_name”+str(i)+“.tif”)     outFill.save (“Workspace\Path”)      So far this code only fills sinks of the raster_name0 and does not put it in the folder location I specify. Any ideas on how to modify this code to work on all 31 rasters and save them in a specficed location? I have ArcGIS 10.1 with an advanced arcinfo license.


changing unit of area from unknown unit to square meters

I am using Qgis 1.8 and I have this polygon.Now I wanted to know the area of this polygon and i have used field calculator and it shows my area as 651692439.under general tab crs is : EPSG:4326 - WGS 84.So I want know what is the unit of this area?the vector layer is from Gujarat state of India.Please help.


ST_ShortestLine gives different results for 4326 and 900913 projections. Which is correct?

I'm trying to get my head around how ST_ShortestLine (and ST_Distance and ST_LineLocatePoint) work with different projections. The result for the shortest line differs depending on which projection I use (either 4326 or 900913). This is the result visualised as 4326 (pink is ST_ShortestLine on geometry left at 4326, blue is ST_ShortestLine on geometry transformed to 900913) ![enter image description here](http://i.stack.imgur.com/cRs6s.png) And this is the same result visualised as 900913 (pink is ST_ShortestLine on geometry left at 4326, blue is ST_ShortestLine on geometry transformed to 900913) ![enter image description here](http://i.stack.imgur.com/31REg.png) As you can see, they are both the shortest line depending on the projection you visualise in. So which one is actually the correct 'shortest line' in reality? The actual thing I'm visualising here is the nearest point on a road to a bus stop – the small difference in output is actually a big deal for geographic accuracy. If it helps, the final output for this data will be in the 900913 projection (D3.js). I'm happy to go with the transformed 900913 output, I just want to understand what's happening and which one is actually truly shortest. Thank you!


How can I know how many percent of area changed between 2 time step in arcgis?

I'd like to ask how to do change detection in ARCGIS? I need an image to show how many percent of area in class has been changed between 2 years? for example in output image, red is the area that has been changed 50%, blue is 35-45%, green is <35% etc. Can anyone tell me how can I extract this image in ARCGIS 9.2 (desktop) step by step? Thank you very much


osm2pgsql --hstore

I'm working with postgreSQL 8.$ and PostGIS and I need to import osm file to database. I tried it with utility osm2pgsql, but I have problem with hstore extension. Does anyone know how to solve this problem? Thanks ![enter image description here](http://i.stack.imgur.com/4eWDH.png)


How to create a shapely multipolygon from GADM shapelife?

I am using GADM (http://gadm.org/country) to get shapefiles from administrative areas anywhere in the world (trying with the US at the moment). To read the shapefile I am using Fiona in python. This works fine but after reading the file I can't generate the shapely multipolygon:               import fiona     from shapely.geometry import MultiPolygon, shape           multi = []       for pol in fiona.open('UMI_adm0.shp'):          multi.append(shape(pol['geometry']))                                                                                mp = MultiPolygon(multi)         But after this I get:               File "/usr/local/lib/python2.7/dist-packages/shapely/geometry/polygon.py", line 260, in __array_interface__         "A polygon does not itself provide the array interface. Its rings do.")     NotImplementedError: A polygon does not itself provide the array interface. Its rings do.      Any ideas to what this means?


arcgisscripting in CGI script

I'm trying to write a Python script that imports `arcgisscripting` (stuck on 9.3.1 here) which is then run as CGI by a web app. It runs fine from the Windows command line but as soon as I drop it into the app it throws an `Error 500: Internal Server Error`. I checked the Apache logs and sure enough there's a `ImportError: No module named arcgisscripting`. All of my other modules are working fine (sys, os, etc.) Does anybody know what could be the issue here? **Update** : I think it might have something to do with this: Why can't python find some modules when I'm running CGI scripts from the web?


Finding points along a path

I am unsure of the best approach to this problem. I can think of some ways of doing it which I will list below but I am looking for the best and most efficient way of doing this. # Problem   * Given a variable number of points, create a "route" or line between the points.   * Create a bounding box (of 50km[arbitrary]) around the route.   * Return all points within this bounding box   * Points must be returned in order along the route (A->D) Note: The radius does not have to be circles. A,B,C,D can use rectangular bounding boxes. ![Description of problem](http://i.imgur.com/74Xhxs0.png) **Data**   * Table with points (x,y - technically lat/lon)   * Input points to create a route   * Distance from route to include points We are using PostgreSQL (8.4) and PostGIS (1.3.6) and Python. This is the solution I came up with. Thoughts? Ideas? Input? # Possible Solution   * Create three polygon "tubes" (A->B, B->C, C->D)   * Filter points to only those in the polygons.   * Subtract B->C from A->B so the polygons do not overlap (no duplicates)   * Subtract C->D from B->C so the polygons do not overlap (no duplicates)   * For each polygon   * Calculate vector (A->B, B->C, C->D)   * Find furthest point opposite of vector in the polygon.   * Calculate distance from furthest point to each site in polygon.   * Return points in order of distance (smallest -> largest)   * Join all the points together (A->B points, B->C points, C->D points) # Solution My approach was naive, after taking some time and looking at the PostGIS methods I came up with this single SQL call. Note its specific to our database but might help someone in the future. Im sure it could be improved as well.                   SELECT aerodrome_id         FROM           geo_aerodromecustom_view,            (SELECT ST_Buffer(               ST_Transform(                   (SELECT ST_MakeLine(geom)                    FROM                        (SELECT geom                        FROM geo_aerodromecustom_view                       WHERE aerodrome_id IN ('CYOW','CYVR')                        ORDER BY CASE aerodrome_id WHEN 'CYOW' THEN 1 WHEN 'CYVR' THEN 2 ELSE 5 END                       ) sites                   ),                   900913               ),               50000) as geo           ) as line         WHERE ST_Intersects(ST_Transform(geom, 900913), line.geo)         ORDER BY ST_Line_Locate_Point(           ST_Transform(               (SELECT ST_MakeLine(geom)                 FROM                    (SELECT geom                     FROM geo_aerodromecustom_view                    WHERE aerodrome_id IN ('CYOW','CYVR')                     ORDER BY CASE aerodrome_id WHEN 'CYOW' THEN 1 WHEN 'CYVR' THEN 2 ELSE 5 END                   ) sites               ),               900913           ),           ST_Transform(geom, 900913)         )      I had to project the data because I am using PostGIS 1.3.4 which doesnt support Geography type. Basically what I am doing is I am using ST_MakeLine and a query to locate "aerodromes" and return their geometry. I had to order them (using the CASE directive) so that the line would be connected in the right order. I then project and buffer this line to create a Polygon that I can then use to see what other aerodromes intersect with the buffered polygon. Using the unbuffered line (route) and the call ST_Line_Locate_Line I then order the discovered aerodromes as they appear appear along the path.


ArcGIS javascript API 3.6 How to prevent .on adding graphic layer from eliminating popups on other layers

I have am using mouse events to add a new graphic as such.               paCounties.on("mouse-over", function (evt) {       var highlightGraphic = new Graphic(evt.graphic.geometry, highlightSymbol);       map.graphics.add(highlightGraphic);     }      This works fine by showing my new graphic on mouse over. However, I had three other layers that had popups and now the popups don't work. If I comment out the above code and refresh my popups are back. So something with adding the graphics layer or mouse-over event is preventing the popups from working on my other feature layers. How can I have a mouse over and still retain popups on other feature layers? **EDIT:** As per John's suggestion I tried using selection symbol but I can't seem to get it to work on mouseover. I tried this: I set my selection symbol on the feature layer.               paCounties.setSelectionSymbol(highlightSymbol);     paCounties.setRenderer(new SimpleRenderer(symbol));     map.addLayer(paCounties);      Then I try to trigger it on mouse over:                       paCounties.on("mouse-over", function (evt) {                 var query = new Query();                 query.geometry = evt.graphic.geometry;                 paCounties.selectFeatures(query, FeatureLayer.SELECTION_NEW);             });      Which seems to highlight the county I am mousing over and all the counties around it.


How do you get a schema report from SHP, PostGIS, or other file type?

All, We're loading City and County data into our database, but looking to remove several fields we don't use. Those fields we do use I'd like our users to simply highlight on a printout I give them based on a schema report from the .SHP we're getting the data from. Is there a way to get a list of the fields in a SHP or PostGIS layer in a format such as a spreadsheet I can print off and give to users? Thanks! -m


Obtaining extent of each polygon in shapefile?

In arcgis 10 and python I want to get the extent (xmax, ymax, xmin, ymin) info of each of the polygons in a shape file. I can get the extent of the whole shape file using               file=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp"     desc=arcpy.Describe(file)     print desc.extent.Xmax      > 394551.52085039532 But I can't seem to figure out how to get the same info for each row in the dataset.               rows = arcpy.SearchCursor("100k_trc_tiles_TVM")     for row in rows:      print row      prints the 31 rows in the dataset but               for row in rows:      desc=arcpy.Describe(row)      print desc.extent.Xmax      gives an error. > Runtime error : Object: Describe input value is not valid type I was thinking of adding the extent values to the table using "calculate geometry" but this only gives the centroid. Then I guess we can use something like row.GetValue("xmax"). That being said I know that we can create the X/Y, max/min using the function from http://www.ian-ko.com/free/free_arcgis.htm but it would be best if we can avoid having to add fields, especially if arcpy can get these values. Basically I need to get the extents to feed into the clip tool to clip out 30 areas of data (according to the 1:100,000 map sheets) for geoprocessing since the Split tool fails due to the large size of the dataset (see Issues with large datasets). I want to automate this as it is repeated on a number of datasets. === working script ===               # Emulates Arc Info SPLIT tool by using Clip but     # Requires a FC from which each row is used as the input clip feature.     # Each row must be rectangular.     # Used on 12GB FGDB with 100 million records.               #Licence: Creative Commons     #Created by: George Corea; georgec@atgis.com.au, coreagc@gmail.com     import arcpy, string          #inFrame=arcpy.GetParameterAsText(0) # Input dataframe FC     #inFile=arcpy.GetParameterAsText(1) # Input FC for splitting     #outDir=arcpy.GetParameterAsText(2) # Output FGDB          inFrame=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp"     inFile=r"c:\junk\106\data\7_Merge.gdb\FullRez_m2b"     outDir=r"D:\SCRATCH\Projects\206\datasplit\test_slaasp.gdb"     #NameField="Name_1"          #arcpy.env.workspace = r"C:/Workspace"     arcpy.env.overwriteOutput = True          rows = arcpy.SearchCursor(inFrame)     shapeName = arcpy.Describe(inFrame).shapeFieldName     for row in rows:         feat = row.getValue(shapeName)         Name = row.Name_1         print "Executing clip on: "+str(Name)         extent = feat.extent         #print extent.XMin,extent.YMin,extent.XMax,extent.YMax     # Create an in_memory polygon         XMAX = extent.XMax         XMIN = extent.XMin         YMAX = extent.YMax         YMIN = extent.YMin         pnt1 = arcpy.Point(XMIN, YMIN)         pnt2 = arcpy.Point(XMIN, YMAX)         pnt3 = arcpy.Point(XMAX, YMAX)         pnt4 = arcpy.Point(XMAX, YMIN)         array = arcpy.Array()         array.add(pnt1)         array.add(pnt2)         array.add(pnt3)         array.add(pnt4)         array.add(pnt1)         polygon = arcpy.Polygon(array)         ShapeFile = outDir+"\\temp_poly"         arcpy.CopyFeatures_management(polygon, ShapeFile)              #print Name     ### Set local variables         in_features = inFile         clip_features = ShapeFile         out_feature_class = outDir+"\\"+Name         xy_tolerance = "0.22"              # Execute Clip              try:             arcpy.Clip_analysis(in_features, clip_features, out_feature_class, xy_tolerance)             print "Completed: "+str(Name)         except:             error = arcpy.GetMessages()             print "Failed on: "+str(Name)+" due to "+str(error)


List Map Services and Publish/Delete Map Services using Python in ArcGIS 10.1

I looked at the link http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000004s000000 which describes listing of map service for 9.3, how can we do this in 10.1, moreover I am trying to start stop, publish services , I read on ArcGIS help that the new ArcGIS API Administration uses the RESTful Architecture wherein an http request is made to start/stop a service. Is there any other way? Can we delete or publish/republish a service? Any help on this is most welcome. Thanks


Sum values within one raster (25m) using another raster (1km) ArcGIS Desktop 10.2

I am summarizing some population data using a 1km raster overlay. I converted population data, polygon layer, into a 25-meter raster that contains the value for population/m^2. That value is then multiplied by 625 m^2 (the area of each cell), then I figured that I could do a zonal summary using my 1km raster layer (which is snapped nicely to the 25-meter raster layer), but now I am stuck. If I could just add up the values of each 25-meter cell that occurs in a 1-km cell then I would only need to multiply by 625 to get the approximate total population in that cell... I could use a majority resample but this should give a better estimate. I got some great advice on coding a solution, but I'd like to figure it out along this line of thinking if possible.


ArcGIS 10 Add-In Does not Work on Other computers

I developed a user form that allows user to edit feature attributes in visual basic 2008. vb.net. The add-in's that I built work great on my computer, but when I tried it on another, it crashes ArcMap. is this because the DeveloperKit is not installed on the other computer?? * * * I manually add-in the tool (i.e., Customize, Add from file, etc) and it looks like it installs. ArcMap crashes when I click on the button though. On my computer it work correctly using the same method. I have uploaded the file to here: http://wfurl.com/3611b10 THANKS


How to edit a given version of geodatabase?

I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I create a code like that:               IWorkspaceEdit edit = null;         try {             edit = new IWorkspaceEditProxy(findVersion(getVersionedWorkspace(), "myVersion"));             edit.startEditing(true);             edit.startEditOperation();             IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(getWorkspace());             ITable iTable = featureWorkspace.openTable("MyTable");             IRow iRow = iTable.getRow(56);             StringBuilder builder = new StringBuilder();             iRow.setValue(21, "test2");             iRow.store();             edit.stopEditOperation();             edit.stopEditing(true);         } catch (IOException e) {             e.printStackTrace();         }      I get an exception: > AutomationException: 0x80041354 - Syntax error in 'Microsoft VBScript > compilation error' When I call this method again a get an information like i should use an edit session > Objects in this object class cannot be updated outside of an edit session. but how you can see on above code, I start and stop editing and edit operation. Anyone can give me any hint for that. I also using an IFeatureWorkspace.update method, but I get an information about problem with edit session. I'm not sure what I'm doing wrong, because I can access to database and get rows, but I can't edit them. I am using a JAVA as programming language. When I change my code into: I change code in that way: IWorkspace iWorkspace = ArcGISServerHelper.getInstance().getWorkspace();                   IWorkspaceEdit edit = null;         try {                        IVersionedWorkspace iVersionedWorkspace = new IVersionedWorkspaceProxy(iWorkspace);             iWorkspace = new IWorkspaceProxy(iVersionedWorkspace.findVersion("myVersion"));                  edit = new IWorkspaceEditProxy(iVersionedWorkspace.findVersion("myVersion"));             IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(iWorkspace);             ITable iTable = featureWorkspace.openTable("MyTable");             edit.startEditing(true);             edit.startEditOperation();      I get an exception:               AutomationException: 0x80004005 - The XML being loaded could not be parsed. [physical name: OWNER.ANNO_TABLE] in 'ESRI GeoDatabase'


ArcObjects IFeatureConstruction::PlanarizeLinesFromCursor error

I wrote a little tool in ArcObjects/C# for planarizing a line feature class. I am using _IFeatureConstruction::PlanarizeLinesFromCursor_ because I need to apply a query filter.   Now, I figured out a bug: when executing the operation on ArcSDE featureclass the method adds the planarized version of the geometries, but does not delete the origin (unsplitted) features. The effect only appears on ArcSDE feature classes when the filter contains more than 1000 features. Does anyone know about this bug? Is there any workaround? I am using ArcGIS 9.3.1 SP 2 and .Net 3.5 on Win7.


Combine KML overlays to find overlapping shapes and export to flat file

I have two KML files with many polygons each. One has larger area polygons while the other has smaller areas. They overlap with each other and I would like to know which areas overlap with each other and export this data to CSV or a similar flat file. Eg If KMLOne has a large polygon and KMLTwo has 5 polygons that overlap it then I would like to see which polygons overlap. Also if any polygons overlap but are not 100% overlapping with KMLOne then that should be marked as overlapping as well. An example of how I would like this displayed is below where KMLOne has polygon with name 1 and KMLTwo has several polygons that overlap it.               +--------+--------+     | KMLOne | KMLTwo |     +--------+--------+     |      1 |      1 |     |      1 |      2 |     |      1 |      3 |     |      1 |      4 |     |      1 |      5 |     +--------+--------+      Is there a program that can perform this functionality? Please let me know if you require any clarification.


Getting a reference to the current basemap

In my application I'm using basemap gallery widget for the user to switch between basemaps. However, when the basemap has been switched the map.getBasemap() keeps returning the original basemap assigned to the map in the constructor instead of the current basemap. Also map.getLayer(map.basemapLayerIds) returns undefined after the basemap has been changed by the basemapGallery widget. How can I return the reference of actual current basemap which is displayed in the map?


methods for solving this simple routing problem

In my transport geography class, we were asked to do a "best guess" on the route which does the following on this graph:   1. Starts at A   2. Visits each node   3. Returns to A   4. minimizes distance. ![Graph](http://i.stack.imgur.com/haJc8.png) I wrote up program which calculated all of the five step paths that started from A, visited every node, and returned to A. I then calculated the cost of these paths. My question is: how would other people solve this? My teacher gave us a "hint" that we should read about Dijkstra's algorithm, but I couldn't see how to apply that to solve this particular problem. My solution would fall apart pretty quickly as the number of steps or nodes increased.


Iterative interpolation

I have an excel file with about data from 600 locations, each location having data for 1200 months(12 months* 100 years). I need to interpolate all point locations into rasters for each month of each year separately. I understand I need a script to automate the process because it would be a huge number of rasters. Can anyone recommend me a similar script? I am absolutely new to GIS.


Installing Postgis on Ubuntu 12.04: unmet dependencies libgdal1

After `sudo apt-get install postgresql-9.1-postgis` I got that massage: > The following packages have unmet dependencies: postgresql-9.1-postgis : > Depends: libgdal1 (>= 1.9.0) but it is not going to be installed E: Unable > to correct problems, you have held broken packages. I tryed the `ubuntugis-unstable` and `ubuntugis-stable` repositories. I have QGIS 2.2 installed.


"Oddities" in the Shapefile technical specification

I've been writing a shapefile parsing library, and have encountered a couple of design decisions in the specification that I don't immediately understand. I'm hoping there's a wizened old ESRI developer around here who can tell me why these things are the way they are.   1. The main record file (.shp) is of mixed endianness. Specifically, parts of the header features big endian byte ordering, but the records are all little endian. I typically work at a higher level than bytes and bits, but everything I've so far read about endianness marks this as unusual. Why isn't the file specified to be of uniform endianness?   2. The "File Length" field, as well as other length and position fields, are recorded in 16-bit words, instead of the more standard (from my limited perspective) 8 bit positioning. How did this decision get reached? I posted a similar question on Stack Overflow, but didn't get any response. If this seems too off topic to other people, I could support closing it.


ArcGIS - ICommandBars exception

Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated.               ' zoom to selected     Dim mxApp As ESRI.ArcGIS.Framework.IApplication     Dim numUID As UID = New ESRI.ArcGIS.esriSystem.UID     numUID.Value = "{AB073B49-DE5E-11D1-AA80-00C04FA37860}"     Dim commandBars As ICommandBars = mxApp.Document.CommandBars   '>>> error here!!!!!!!!     Dim cmdItem As ICommandItem = CommandBars.Find(numUID, False, False)     If Not (cmdItem Is Nothing) Then         cmdItem.Execute()     End If      Message: Exception first-chance type 'System.NullReferenceException' in LUCAS.dll. P.S. ArcGIS 10 SP1 on Windows 7, VS2010.


Get all features in extent not working correctly in PageLayoutControl

I want to get all features in the current extent of my PageLayoutControl's ActiveView. I got it working for a MapControl as described here. With my PageLayoutControl it seems that I don't get the correct extent. When I fill the found features it looks like this: ![](http://i.imgur.com/bkYoD.jpg) Here is how I get the features:               Dictionary<String, IFeatureCursor> featureCursors = new Dictionary<String, IFeatureCursor>();     IMap map = this._pageLayoutControl.ActiveView.FocusMap;          // Get ActiveView from MapFrame     IActiveView tmpActiveView = null;     IGraphicsContainer graphicsContainer = (IGraphicsContainer)_pageLayoutControl.PageLayout;     graphicsContainer.Reset();     IElement element = graphicsContainer.Next();     while (element != null)     {       if (element is IMapFrame)       {         IMapFrame mapFrame = (IMapFrame)element;         tmpActiveView = (IActiveView)mapFrame.Map;         break;       }       element = graphicsContainer.Next();     }     if (tmpActiveView == null)       return featureCursors;          IEnvelope envelope = this._pageLayoutControl.ActiveView.ScreenDisplay.DisplayTransformation.VisibleBounds; // FittedBounds;     // PageLayout has no SpatialReference. So use the View of the MapFrame      IPoint pointMax = tmpActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint((System.Int32)envelope.XMax, (System.Int32)envelope.YMax);     IPoint pointMin = tmpActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint((System.Int32)envelope.XMin, (System.Int32)envelope.YMin);     envelope.XMax = pointMax.X;     envelope.YMax = pointMax.Y;     envelope.XMin = pointMin.X;     envelope.YMin = pointMin.Y;          // Get Features in all layers     for (int iFeatLayer = 0; iFeatLayer < _pageLayoutControl.ActiveView.FocusMap.LayerCount; iFeatLayer++)     {        ILayer thisLayer = _pageLayoutControl.ActiveView.FocusMap.Layer[iFeatLayer];       IGeoFeatureLayer featLayer = thisLayer as IGeoFeatureLayer;       if (featLayer != null)       {         IFeatureClass featureClass = featLayer.FeatureClass;         System.String shapeFieldName = featureClass.ShapeFieldName;              // Create a new spatial filter and use the new envelope as the geometry         ISpatialFilter spatialFilter = new SpatialFilterClass();         spatialFilter.Geometry = envelope;         spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelEnvelopeIntersects;         spatialFilter.set_OutputSpatialReference(shapeFieldName, map.SpatialReference);         spatialFilter.GeometryField = shapeFieldName;              // Do the search         IFeatureCursor featureCursor = featureClass.Search(spatialFilter, false);         featureCursors.Add(thisLayer.Name, featureCursor);       }     }     return featureCursors;      What did I miss? :)


Model builder: select feature based on attribute, iterator?

This is the data I have: shapefile with polygons shapefile with line features What I eventually want: line features attributes joined to the polygons that they fall in. I need to clip each polygon with the lines separately. These are the steps I want to do:   * select polygon from a shapefile based on a name   * use this selected polygon to clip several line features    * then use spatial join to join these clipped lines to the shapefile with all the polygons based on the location   * apply summary statistics to get lines length summed per polygon I can do this for one polygon..the question I have is how can I tell the model builder that has to do this whole process for each polygon. So I guess I have to insert an iterator in front of the select by attribute tool..but I don't really understand how. Also, it would be great to get the output in one summary statistic and not in hundred different ones... is that possible? thanks so much sandra


How to fix for the GDAL clipper tool in QGIS?

I would like to clip a DEM with an admin boundary using qgis, in order to calculate a measure of variation. However, when I use the Raster clipper tools and select mask, I get the error message: "An error has occured while executing Python code: ...". It seems this has been noticed by others: see http://osgeo- org.1803224.n2.nabble.com/Re-qgis2google-and-clipper-plugins-td6604408.html Does this imply that the tool is unavailable for use with Wroclaw 1.7.3? All I am looking for is a measure of variation based on an admin boundary, and was planning to use the ruggedness index. Is there a fix for the clipper tool I am unaware of, or any other simple way to calculate a measure of topological variation? It doesn't have to be ruggedness. Thanks!


What is the convergence threshold for ArcGIS Iso Cluster?

The ArcGIS tool Iso Cluster Unsupervised Classification does not seem to have any documentation on the convergence threshold used in the tool. To compare, Erdas Imagine has all of the necessary parameters displayed. How does ArcGIS determine the convergence threshold for their version of the ISODATA algorithm? More importantly, is there a way to set or override the convergence threshold in ArcGIS? ![enter image description here](http://i.stack.imgur.com/3jnJt.png) ![enter image description here](http://i.stack.imgur.com/ZXzdn.png)


How to import OSM data into Postgres DB using osm2pgsql in Linux?

I'm using the following command to import an osm file into a Postgres DB using `Linux`:               osm2pgsql -v -a -U user -S default.style -d routing myfile.osm      I got the following error: > Setting up table: planet_osm_point Problem reading geometry information for > table planet_osm_point - does it exist? Error occured, cleaning up I guess I have to manually create the schemas into db. Can osm2pgsql be used to automatically create such schemas? Otherwise, how can I create them?


Part of layer disappears when printing ArcGIS 10.0 as pdf

There are a couple of maps i made that I want to save as pdf in ArcGIS 10.0. For three of the maps it worked fine, but there are problems with the other two. The first one has a layer that consists of four topographic maps. Two of the maps are not printed completely. The second map also has a layer of four topographic maps, and a horizontal line is drawn where the upper two overlap the lower two. I have no clue how to prevent this. I am printing with the 'windows printer' printer engine. I've tried both Adobe PDF and PDF creator. An update, what I've tried now:   1. Someone told me to try Repair Geometry, but I think that's impossible because the topographic maps are .tif files    2. MXDDOCTOR did not find any corrupt files, I am trying to make a new mxd in the 'treatment' part to see if it worked anyway, but it is taking ages    3. Making a new .mxd file, not entirely new but based on a different mxd does not work    4. Making the map on a smaller scale (zoomed out) does not work   5. Exporting or printing to pdf at a lower resolution does not work   6. I tried doing the same while turning of the working tifs to test memory, still the same problem.


I have a 6 mile line that I need to make a point every 500 ft on it. Any idea what tool I can use to do this? I have arcmap 10.1 standard.


How to create Point Transects along line?

I would like to create a point shapefile that will contain sampling points along, and perpendicular to either side of a track route that I have as a line feature in ArcGIS 10.1. The points on the track will be every 50m along the line with the perpendicular points 10m either side of that. Is there a tool or script that I can use to generate my points to save me placing over 300 points manually? Any help would be great. * ** _Edit 17:25 07.04.2013_ *** Thank your for the help so far but I am not sure that those methods would achieve what I am trying to. Attached is a image prepared in powerpoint of what I am trying to achieve. ![enter image description here](http://i.stack.imgur.com/5qt9T.jpg) As you can see I would like to place points every 50m along the route of an existing track that is present in real life and has been digitised in to ArcGIS. The points perpendicular to the track points are 10m either side of the point. I did manage to get a rough plan of the locations by using a bit of a long winded route and a free add in tool called ETGeo Wizard. This method involved the following steps: 1\. Generate a 10m buffer around the track route polyline; 2\. Convert the buffer polygon to a polyline; 3\. Split the rounded ends off the polyline (i.e the original rounded edges of the buffer) leaving two lines 10m from the track route polyline; 4\. Use ETGeo Wizard to place points every 50m along the polyline; This method does give me the points but there is a lot of error meaning a lot of manual editing. It is also quiet a time consuming method of generating my points given that I have lots of track sections to place points on. I would therefore like to find a way to generate the points automatically using a tool or script. I hope this helps to explain what I am trying to achieve a little clearer? Thanks for any help


Arcmap: how to select features with attachments?

I have an attachment enabled feature class that has photos attached to points. However while any feature in the layer _might_ have a photo, only 10-15% actually _do_. How can I narrow in on just those? The only methods I've discovered rely on one by one interrogation (identify popup windows or attribute table while editing), which is not at all interesting to me in this context.


How to correct topology on a shared boundary by removing nodes from a feature?

Maybe you can help me solve a problem regarding topology cleanup that I recently came a cross. I have two layers with bunch of polygons (or feature classes as I'm in the ESRI world) that should share a common boundary. (ex. water body polygon and vegetation coverage - the shore line is the common boundary). Usually Integrate in ArcMap would be the tool for the job, but in this case I'm only allowed to modify one of the layers, the other one is the reference layer and it must not be touched. In other words I must snap polygons in one layer to the polygons of the other at the common boundary. Here's and illustration of the problem: ![](http://i.stack.imgur.com/IwvJy.png) The defective border has some extra nodes (marked in blue). If I use Integrate those blue nodes will be introduced to the reference polygon layer regardless of ranks set. So in this case I need a tool that will make the boundary identical by removing nodes from the polygons of the defective layer. As a side note. The rest of the nodes on the shared boundary are snapped together, just the blue ones mess my border. Any advice? I have ArcInfo 10.0 and ET Geowizard available and probably can work with OSGIS soft, but would prefer to avoid converting my layers to shp.


How to use cartodb.js with API key for privacy of data

I would like to use cartodb.js in my web page reproduce a visualization that I created at CartoDB. But I want to keep private my visualization and data at CartoDB (and I am going to secure my web page). Is there a way to use the APIs in cartodb.js with my CartoDB API key somehow to reproduce in my web page the private visualization that I see on my CartoDB site? I've been studying the documentation, examples, and source code for cartodb.js. As far as I can tell, cartodb.js does not really provide for use of my API key, but perhaps I am missing something.


How to show only raster attribute table using GDAL?

I have a binary ArcGRID raster (AIG/Arc/Info Binary Grid) with an attribute table. I would like to get only this attribute table but `gdalinfo` outputs also projection information and bounds and then wanted GDALRasterAttributeTable XML part:               $ gdalinfo us_120fbfm13 -nogcp -nomd -noct filename     Driver: AIG/Arc/Info Binary Grid     ...     Coordinate System is:     PROJCS["unnamed",     ...     Center      ( 1540680.000, 1553400.000) ( 78d42'42.88"W, 35d46' 8.50"N)     Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined       Min=1.000 Max=99.000        NoData Value=255     <GDALRasterAttributeTable>     ...      How to show only raster attribut table using GDAL command line tools `gdalinfo` or perhaps `gdal_translate`? Additional question which might be separate but might be also answered together with this is whether there is a possibility to get the attribute table in format such as CSV and not XML. Edit for @huckfinn: I'm on Linux, so I can actually do something like:               gdalinfo us_120fbfm13 -nogcp -nomd -noct -nofl | grep "<.*>"      But I would rather use some more general and possibly cross-platform solution.


Troublehsooting QGIS Time Manager in OSX

Though it worked with a sample .shp layer with 10 points that I fabricated, the plugin isn't working with the larger data set I am trying to use now (a couple thousand points). It correctly identifies the start date, which leads me to believe that there is no issue with the date data. Then again, every point is visible from the start and all the way through the timeline, which rather defeats the purpose of animation. Thanks for any suggestions on what to do differently / how to fix this


QGIS export DTM with x.000 coordinates

I'm new at QGIS and would like to solve the following problem: I import points and breaklines and interpolate this data. Afterwards the generated DTM is exported to a new file (this works). Now I would like to crop this area to a perimeter which is given as e.g. shape file, already loaded into QGIS. My question is: How can I export the DTM as e.g. XYZ or ESRI GRID with coordinates ending with .000? Until now the result is always not round (e.g. .082 etc.). A simple cut of the coordinates is obviously not correct. There should be rather a new triangulation/interpolation of the data to a grid with straight coordinates. How can this be done? Thanks in advance for the help! Thomas


What is exactly reverse geocoding

I am the developper of gisgraphy (and in few weeks), the new version will be roof top. So i plan to update my reverse geocoding service to house numbers (it was only for streets), I thought it was evident, but it is not (for me). The question seems very simple and wikipedia says > Reverse geocoding is the process of back (reverse) coding of a point > location (latitude, longitude) to a readable address or place name But; imagine I am on a highway (let's say street A) and there is a house in 5 kilometers (house A), an hotel ( hotel A) in 1.5 kilometers on that road, and there is an street intersection (street B) in 2 kilometers where there is a house (house B) in 1 kilometers (so house B is at 3km from where i am). If I reverse geocode my current position, what do I should expect:   * The street A (cause house A is too far and reverse geocoding is only about address, not POI ),   * The hotel A, cause it is the nearest place on the road where I am, and geocoding is not only about address but also about POI)   * The house A cause it is the nearest house on the road I am   * The house B (cause it is the nearest house, even if it is not on my road) What are the usage ? I 'm sure it depends on what you want, but what reverse geocoder usually do ? I already have a street search API by position and a find nearby (POI), should I simply search the nearest 'feature' (street, house, poi, whatever...) or limit geocoding to address only ? every suggestions are welcomed Thanks


How to create a 1:n join and concatenate text attributes?

I have 2 polygon layers A and B. I would like to join the attributes from B into A for all the polygons from B that intersect A and for text attributes, i would like them concatenate. But apparently "Join attributes by location" only works for numerical attributes.


Browser support for ESRI ArcGIS JavaScript API (v2.4)

Can anyone give me information or a good pointer on browser version support in the ESRI ArcGIS JavaScript API v2.4? I can't find much in their documentation beyond changes in support for specific browsers in each API version's "What's New". I have seen that the API uses SVG for some client-side rendering, which must affect cross-browser support. Beyond this I imagine there are some peculiarities for older versions of all major browsers. I will most likely be targeting recent versions of desktop-based browsers in my upcoming project but I would like to know any issues in advance as we are probably going with JavaScript over Silverlight specifically for the wider platform support. Any help on this much appreciated.


Geocoding in GIS desktop and use the shape file in GIS online

I want add 60 addresses in point format to my map in ArcGIS online. So what I did was used Arc GIS desktop (10.2) and geocoded them. then exported them as a shape file, and imported them to the online map. First of all, is this the way I have to do it? I mean can I do it directly from ArcGIS online? The second problem is I wanted to have 60 points. But I end up with fewer points, like 15-20. I found the problem is somewhere during this procedure, Arc GIS desktop decided to round the Xs and Ys values to 6 decimal points. I Checked the geocode results and change the decimal points to 10. Then I checked the shape file and I found in shape file's attribute table, Xs and Ys just have 6 decimal points. I was not able to change the decimal point in attribute table and I tried to add new field and set the decimal points to 10 and then use filed calculator. It did not work! Then I tried to geocode them using batchgeo.com, then I imported them as X and Y coordinates. I made sure Xs and Ys are set to have 10 decimal points. Agian the same problem when I exported it as shape file. Any suggestions? the original file is addresses, including address, city, state and ZIP.


Problems when trying to Undo edit operations in ArcGIS

I'm trying to programatically stop/abort/undo an edit operation inside a ArcSDE environment. My environment is currently Oracle, ArcSDE 9.3.1 and in our custom code (I inherited a large ugly portion of a system) the developers do use StartEditing/StartEditOperation and StopEditing/StopEditOperation workflow, but they ONLY use IWorkspaceEdit interface and not Imultiversion interface. Unfortunately, out database is NOT versioned and all edits done with ArcMap are done by uncheking the option of Undo/Redo - hence, all my undos fails (COM Exception). I'm trying to capture a OnDeleteEvent and inside it, I check for a certain condition, and then I call AbortOperation, but the operation is not aborted. I need to stop the whole edit session and ask to not save to "rollback" my edits. This consistent with ESRI docs. My guess here is, **the delete already happened and commited to the database?** If yes, what is an strategy to not allow this certain edit to happen? There are some other scenarios that I need to cancel the edit operation. I know that IEditEvents2 has a BeforeStopOperation event, but ESRI explicitely tells us not to call AbortOperation inside these events. There are also other problems with this setup: I check for all edits on a stopEditOperation and generate some notifications with it. All edits come to me as empty. THis might have something to do with it? Please, help? Thanks guys! Exemple code (onDeleteEvent):                   void events_OnDelete(IObject obj)         {             ITable table = null;             IDataset dataset = obj.Table as IDataset;                  IFeatureWorkspace workspace = dataset.Workspace as IFeatureWorkspace;             IWorkspaceEdit edit = workspace as IWorkspaceEdit;                  edit.EnableUndoRedo();                  IQueryFilter filter = new QueryFilterClass();                  try             {                 foreach (string s in VariousTables())                 {                     table = workspace.OpenTable(s);                          if (s.Contains("vertex"))                         filter.WhereClause = "clause A";                     else                         filter.WhereClause = "clause B";                          if (table.RowCount(filter) > 0)                     {                         edit.AbortEditOperation(); --> this still deletes the point                         // edit.UndoEditOperation() --> this breaks, as the workspace does not support Undos                         break;                     }                 }             }             catch (Exception ex)             {                 MessageBox.Show("ErroR",ex);             }         }