From the :     The layer that is created by the tool is temporary and will not   persist after the session ends unless the layer is saved to disk or   the map document is saved.   However, it does not state where this temporary location is.   Is it the same as the  that Esri suggests using while geoprocessing?
123231
I was wondering the difference is between  and using an ?   To me, one can use either to do some steps in memory, instead of writing data to a location on disk or a network location, and expedite the process.
118297
I am try to casting idataset to ifeaturelayer i did not get any idea  here my code              ESRI.ArcGIS.ArcMapUI.IMxDocument mxd = ArcMap.Application.Document as                                                    ESRI.ArcGIS.ArcMapUI.IMxDocument;             ESRI.ArcGIS.Carto.IMap map = mxd.FocusMap;             ESRI.ArcGIS.Geodatabase.IWorkspaceFactory wsf = new                          ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactory();             ESRI.ArcGIS.Geodatabase.IWorkspace ws = wsf.OpenFromFile(@"D:\ARC OBJECTS\TemplateData.gdb", ArcMap.Application.hWnd);             ESRI.ArcGIS.Geodatabase.IFeatureWorkspace fws = ws as ESRI.ArcGIS.Geodatabase.IFeatureWorkspace;             ESRI.ArcGIS.Geodatabase.IFeatureDataset fd = fws.OpenFeatureDataset("World");
122081
We are building a spatial application targeted to laypeople which will involve viewing and editing vector geodata (currently just points, but linestrings and polygons in the future) with a raster underlay. We'll deploy both web and mobile (iPhone now, Android and perhaps others later) versions. The server is a custom app we are writing, and there are no ESRI products on the server side.  My question, therefore, is: How do we choose which client-side mapping toolkit to use? I'm aware of the following options, are there others?   Google Maps API or similar (Yahoo, MapQuest, etc.) OpenLayers (does it work on mobile browsers?) ESRI's web/mobile APIs   We are particularly interested in the pros/cons of the ESRI APIs under this scenario. Our company does have some kind of relationship with ESRI, though I know nothing about the details (and our group currently has no involvement with ESRI or ESRI products).
23778
I am very new to mapping and I have loaded a set polygons from a shapefile into ArcGIS Pro. They appear correctly however they have clearly lost (or didn't have in the first place), their longitudinal and latitudinal information as they are currently placed in the middle of the ocean, which I believe is the 0 lat, 0 long position.  I can manually move these polygons but it won't let me save the moves, so when I click 'select', it moves back to the original location. Both of the 'save' and 'discard' buttons are greyed out and cannot be clicked. If I click 'finish' on the move tool then it will snap back to the original location too.  Does anybody have any ideas?
23826
I tried to define my coordinate system on creating the shapefile but when I zoom to layer I don't see my features and ArcGIS crashes. I know it's not in the coordinate system I defined for it but it shows the coordinate under properties but doesn't reflect when I zoom to layer. Here is my python code:  import arcpy  newfcName ="newfc.shp"   outpath = r"C:/FLOOD/IKEJA AND KOSOFE"  # Declaration arcpy.env.overwriteOutput=True  arcpy.env.workspace= outpath  # Create new Shapefile and add FIELDS newfc = arcpy.CreateFeatureclass_management(outpath, newfcName, "Point") # get the coordinate system by describing a feature class dsc = arcpy.Describe("newfc.shp" )  coord_sys = dsc.spatialReference  try:        # run the tool    arcpy.DefineProjection_management(newfcName , coord_sys)     # print messages when the tool runs successfully    print(arcpy.GetMessages(0))  except arcpy.ExecuteError:    print(arcpy.GetMessages(2))  except Exception as ex:    print(ex.args[0])  arcpy.AddField_management(newfc, "X", "STRING", field_length = 50) arcpy.AddField_management(newfc, "Y", "STRING", field_length = 50) arcpy.AddField_management(newfc, "Z", "STRING", field_length = 50) arcpy.AddField_management(newfc, "I", "FLOAT", field_length = 50)  # Reference Cursors cursor=arcpy.da.InsertCursor(newfc, ["X", "Y", "Z", "I"])  # Read File  a = open("C:/FLOOD/IKEJA AND KOSOFE/DEM/532722.txt","r")  inputF = a.readlines()  for line in inputF:     xCoordinate, yCoordinate, zValue, iValue = line.split(" ")      newRow = (str(xCoordinate), str(yCoordinate), str(zValue), float(iValue))      cursor.insertRow(newRow)  a.close()
90053
Every month I have to QA/QC some streets data for an entire county (over 47,000 records). The first step is to compare the two files. Currently, I'm using a tool that was created in house via VBA approx 5 years ago. It works compares the two files and reports back the differences based on a few factors (added records, deleted records, address changes, city changes, segment length/vertices changes). I then export these to individual shapefiles. Additionally, the tool works in ArcGIS 9.3 but will no longer work in ArcGIS 10.1  The tool works great, but it takes approximately an hour to complete.  I've started to work on hopefully improving this tool to speed up the performance. I've looked into a variety of methods including the Compare Feature Tool and Select by Location.   Both of these tools work significantly faster, however, they don't seem to capture everything that I need. The big issue I have with the Compare Feature Tool is that I cannot choose which field to compare on. It defaults to ObjectID when I need to compare by Segment_ID. There isn't an option to select that.   Does anybody have a good solution or ideas on how to achieve a full compare like I've described?    For some reason, ArcGIS isn't recognizing the join that I'm attempting per RyanDalton's answer.   But  Taking the advice of a join I have figured out how to find the added records and deleted records differences in the two files by:   Joining the Previous Month shapefile to the Current Month shapefile via the Segment_ID field Performing a definition query where Segment_ID IS NULL Exporting that to a new shapefile (Added Features)   I then reverse the joins and find the Deleted Features  Still working on a way to find the other differences listed and then string them all together in a model.    I can find all records that have changed by performing a select by location records from one of the datasets that are identical to the other dataset. I then switch the selection and it gives me all the records that are not identical.  I'll put it all in a model and hopefully it works just as well.
56307
Usually my layers tab appears in the area of the red circle, but I did something that changed it. I would like to know how to get it back. Thanks!
27250
I originally had an IMAGINE Land Cover raster file that I opened in ArcMap.   I used the Extract Feature from Raster to extract only the Developed class and saved it (still IMAGINE).   Then I used the Copy Raster to convert the IMAGINE to GeoTIFF, but when I try to view the GeoTiff in Google Earth or Photoshop, it doesn't display anything.   However, in ENVI, it displayed successfully.   What am I doing wrong?
50710
I want to show on the map the features of the saved layers from a GeoServer server, but I don't know how to do this...  Like this, but with the dragbox interaction...  I have this code:  var select = new ol.interaction.Select(); mapa.addInteraction(select); var selectedFeatures = select.getFeatures(); var dragBox = new ol.interaction.DragBox({         condition: ol.events.condition.always,         style: new ol.style.Style({             stroke: new ol.style.Stroke({                 color: [0, 0, 255, 1]             })         })     });      mapa.addInteraction(dragBox);      dragBox.on('boxend', function(e) {         if (capaActiva != null) {             var info = [];             var extent = dragBox.getGeometry().getExtent();             var source = capaActiva.getSource();             console.log(source);             var url = source.getGetFeatureInfoUrl(extent, viewResolution, 'EPSG:3857',{'INFO_FORMAT': 'text/plain'});             console.log(url);          } else {             Ext.MessageBox.show({                 title: 'Error',                 msg: 'Check a layer',                 buttonText: {                                             ok: 'Aceptar',                 }             });         }     });
109234
I am attempting to fully automate the process of georeferencing a load of .png files - i have xml file containing the co-ordinates - but how can i use them?  Does anyone have any advice?
70041
I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all I wanted. I exported and got exactly what I wanted ( a tiff image).   I closed the file in order to try a new experiment. When I went to re-open it I got a dialogue box saying 'Handle Bad Layers. I don't understand what is at issue and what to do.
109310
How can I use the python API to find the most reliable location that an add-on can use to store data like images, assets, etc. automatically?  It's important that this location:   doesn't change for different versions of blender doesn't get deleted on system reboot like some temp folders is available on every OS   One option I've found is to use bpy.utils.resource_path('USER') which ends in the version number (on windows C:\Users\blah\AppData\Roaming\Blender Foundation\Blender\2.78), but then do a  to the folder above it. Is there a better way?
17964
I am looking for a solution to convert either from ESRI shapefile format to LAS or from a common raster format to LAS. I have access to following software:   ArcGIS 10.2 for Desktop (arcinfo with spatial analyst and 3d analyst extensions), Global Mapper, LASTools (unlicensed), QGIS 2.8, Whitebox GAT.   I have the functionality in the LASTools shp2las.exe tool, but as I do not have a licence it can only handle 2 million points before it adds XYZ noise.  Due to the large volume of data I am working with, it is impractical to cut it into thousands of smaller pieces in order to process with tiles under 2 million points.  There was the potential of a workaround using the text2las tool, but outputs from this tool are also unacceptable due to a stepping/contouring effect. Despite efforts to ensure no rounding or truncation of input data occurs during transformation.  Is there a way through open source or free software to successfully convert between these formats?   Or am I looking at buying a licence for FME or LASTools or some other software?
6095
There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error.  My software is running inside ArcMap, so no need to AoInitialize again, corret?      public void Execute()     {         InitializeProduct();         try         {             Geoprocessor gp = new Geoprocessor();             gp.OverwriteOutput = true;              FeatureToPoint featureToPoint = new FeatureToPoint();              string outputPathName = CurrentWorkspace.PathName + "\\teste_centroide";              featureToPoint.in_features = InputFeatureClass;             featureToPoint.out_feature_class = outputPathName;             featureToPoint.point_location = "INSIDE";              IGeoProcessorResult result = (IGeoProcessorResult)gp.Execute(featureToPoint, null);              if (result == null)             {                 for (int i = 0; i &lt;= gp.MessageCount - 1; i++)                 {                     Console.WriteLine(gp.GetMessage(i));                 }             }              IGPUtilities gpUtils = new GPUtilitiesClass();             this.OutputFeatureClass = gpUtils.OpenFeatureClassFromString(outputPathName);         }         catch (Exception ex)         {             MessageBox.Show(ex.Message + "\r\n");         }   This is a code example I'm having here. I generated the DataManagement tools assembly, but I could not find the file to sign it.  This code just gives me an error. is it because of the signing?  I've tried the other way too, using IVariantArray and calling from the tool name, without sucess. Is it just me or...?  Can anyone point me a "nicer" solution? I need to run several process that are already built in ArcToolbox that I really don't want to duplicate.
23703
I have a GeoJson file that I want to convert to ESRI Shapefile using ogr2ogr in FWTools.  I tried using   ogr2ogr -F "ESRI Shapefile" filename.shp geojsonfile.json OGRGeoJSON   I got output      ERROR 6: Can't create fields of type StringList on shapefile layers. ERROR 1: Attempt to write non-polygon (POINT)   geometry to  type shapefile. ERROR 1: Terminating translation   prematurely after failed translation of layer OGRGeoJSON   GeoJSON input we are giving is in standard geojson format.  content of geojson are like  {to share I took only a part from features array }  {"id":1223, "properties":{"name":"3","level":2}, "map_version":11,"type":"FeatureCollection","x_id":1234,"obj_type":"LevelGeometry", "features":[  { "my_area":[131.40093253528894,33.58879853190332,6.515867411008615,3.490549810987222,-0.6237271428108215], "id":1984791, "location":{"type":"Point","coordinates":[131.4009325,33.5887985]}, "properties":{"display_name":"xyz"}, "type":"Feature", "geometry":{"type":"Polygon","coordinates":[[[131.4009508,33.5888314],[131.4008895,33.5887946],[131.4009148,33.5887653],[131.4009761,33.5888020],[131.4009508,33.5888314]]]}, "obj_type":"Geometry" }  ] }
99349
I have created a point layer with ~150 points. I have a DEM beneath it, which is where I have taken the X and Y values from.   Does anybody know how I can retrieve the Z values, without using the info button?  I am using ArcGIS Desktop 10. I have licences for the spatial analyst etc tools.
1526
I am attempting to use this code in a tool that I am working on:  mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] XMIN = df.extent.XMin YMIN = df.extent.YMin XMAX = df.extent.XMax YMAX = df.extent.YMax   I then go on to do other calculations with the extent. The code works perfectly in the Python window, but because Toolbox tools are run in separate processes I am unable to use "CURRENT".  I think I could probably add a derived input variable and pass the coordinates through the validation script, but that doesn't work for what I am doing. I need to be able to do this later on in the script and add an additional temporary feature to the current map:  points = arcpy.CreateFeatureclass_management("in_memory", "NewFeature", "POINT") arcpy.AddField_management(points, "NewField", "TEXT", "", "", 20)   I know all of my code works right, because I can paste the entire .py into the  Python window and then call Main() and run through it, but I need to share it with others in an easier way.   I would prefer the solution be compatible with 10.0 and 10.1 if at all possible, because some of the people I work with do not have 10.1 yet. I will accept a 10.1 only solution if I have to though.  What options do I have to do this?    I still can not get this to work, they have not gotten me Python Add-In Wizard yet so I am unable to test that approach. I have again tried the "Run in process" box checked and unchecked. Neither are working.   Checked gives me this: RuntimeError: CreateObject cannot open map document  Handled that exception: Object: CreateObject cannot open map document  From my testing looks like it is having the same error running in process or not.    I will still be attempting to do this within the Add-In Wizard, when they finally give me it.  The winning answer is I wasn't running it in the foreground.