|
POST
|
What is the format of the raster data? tiff? file geodb? esri grid? Make sure that there are no funny characters (esp spaces) in the paths to the data, and keep the paths fairly short.
... View more
08-25-2015
02:00 AM
|
1
|
0
|
2966
|
|
POST
|
Rebecca. thanks for pointing this out. However, I find the online help for 10.3 absolutely hopeless. A lot of links to things but no actual directory structure of help. Got to search for everything, which is the modern trend I suppose.....
... View more
08-20-2015
01:36 AM
|
0
|
2
|
1454
|
|
POST
|
Well, FinaloutLocation = "E:\\GIS\\Data\\Final", is just that, a file location, not the name of a feature class in a gdb or a shapefile name. Why are you defining input feature names then do nothing with them. And please search for a read how to post code here.
... View more
08-20-2015
01:19 AM
|
0
|
1
|
1172
|
|
POST
|
Your input "climate.shp" is a shapefile not a feature class (a dataset inside a geodatabase). I would recommend that you actually get all of your data into geodatabases first. Use arcpy.FeatureClassToFeatureClass_conversion or arcpy.CopyFeatures_management to copy the input to the output and disable Z & M geometries using the flags available in environment settings: See here : ArcGIS Help (10.2, 10.2.1, and 10.2.2) ArcGIS Help (10.2, 10.2.1, and 10.2.2) So your code might look like this : import arcpy
from arcpy import env
env.workspace = "c:/Data/AGeodatabase.gdb"
inFeature = "climate"
outFeature = "climate2"
env.outputZFlag = "Disabled"
env.outputMFlag = "Disabled"
arcpy.FeatureClassToFeatureClass_conversion(inFeature, outFeature)
... View more
08-20-2015
01:11 AM
|
0
|
5
|
3685
|
|
POST
|
What I did in the past was to make sure that the top & bottom coordinates had a very small random offset from each other.
... View more
08-20-2015
12:47 AM
|
0
|
0
|
856
|
|
POST
|
And quite what is the question here? Describe objects of raster files and the raster bands in those files have various properties. See here : ArcGIS Help (10.2, 10.2.1, and 10.2.2) ArcGIS Help (10.2, 10.2.1, and 10.2.2) As you can see the cell size is a property of the band. An easier way is to create a raster object from the raster file. Then access the cell size property from the object. ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
08-19-2015
05:24 AM
|
0
|
4
|
1454
|
|
POST
|
100+ views and no comments? Come on people.... Esri, where are you?
... View more
08-17-2015
06:37 AM
|
0
|
0
|
1465
|
|
POST
|
You will need to project - UTM metres to GCS (geographic degrees) and transform the datum from ED50 to WGS84. Datum transformations : ArcGIS Help (10.2, 10.2.1, and 10.2.2) You can do this in 1 step in the project tool or export from the data frame in ArcMap.
... View more
08-17-2015
06:33 AM
|
1
|
1
|
2620
|
|
POST
|
First a bit of background. I have a mxd which uses XY scatter plots for analytical data attached to samples. Each scatter plot is set to plot only selected data. The idea is, select the samples (points) on the map, the graphs update. Cool so far. In 10.2, if you selected some points where there was no analytical data, a little message would appear at the bottom of the relavent graph saying "Nothing selected". Fine at least you know to ignore that plot. Now at 10.3, this behavior has changed. Now you get no message. It just plot all the data... Arrrggg. See attached pics of the situation as is now. These are dummy random points and the XY scatter plot is simply plotting the XY coord into the graph. Here, with nothing selected, the graph plots all of the data. Had some correspondence with esri South Africa support, emailed my example (mocked up) dataset, and they sent it to esri Redlands. All well and good. After the usual to-ing and fro-ing, an analyst has responded thus : I am writing in reference to the incident #01666933. This change in behavior is effective from ArcMap 10.3 onwards and I believe it is expected behavior. A documentation enhancement has already been logged for this and I have gone ahead and attached it to the case. The details are below: ENH-000086760 : Display of selected features for graphs has been changed in ArcMap 10.3 when the "Show only selected features/records on the graph" option within the general properties is set. For updates on this issue, please see the ESRI Customer Care Portal by going to - https://customers.esri.com I understand if this causes inconvenience to the user. If the user would like to have the pop up of "There is no selection" at the bottom of the graph when no records are selected, he may visit the Ideas Site and post the idea there. Link: http://ideas.arcgis.com So I now have to post an IDEA to fix something that didn't need fixing....... So, the question is : Should the behavior stay as it was, (1) issue a warning when nothing is selected, or (2), plot all the data when nothing is selected. I tried to make a poll out of this post but the interface got to me, couldn't do it. Could someone help please. Could I have some opinions on this issue please. Thanks
... View more
08-10-2015
07:49 AM
|
0
|
1
|
3547
|
|
POST
|
Would something like this help... import sys, os
rasters = ['LC81360432015069LGN00_toa_band1.tif',
'LC81360432015069LGN00_toa_band2.tif',
'LC81360432015069LGN00_toa_band3.tif',
'LC81360432015069LGN00_toa_band4.tif',
'LC81360432015069LGN00_toa_band5.tif',
'LC81360432015069LGN00_toa_band6.tif',
'LC81360432015069LGN00_toa_band7.tif',
'LC81360432015069LGN00_toa_band8.tif',
'LC81360432015069LGN00_toa_band9.tif',
'LC81360432015069LGN00_toa_band10.tif',
'LC81360432015069LGN00_toa_band11.tif',
'LC81360432015069LGN00_toa_band12.tif']
bandsrequired = [2, 3, 4, 5, 6, 7]
for rastif in rasters:
# get rid of the .tif part
ras = rastif.split(".")[0]
# get the last bit band??
band = ras.split("_")[2]
bandNum = int(band.lstrip("band"))
if bandNum in bandsrequired:
# do something here
print ras
... View more
08-05-2015
11:54 PM
|
0
|
0
|
3274
|
|
POST
|
I havn't looked in any detail (or at all really...) at your model, but there are many opportunities to improve processing rates by using python / arcpy. Anywhere between X10 & X100 is achievable. Use in memory workspaces, da cursors, python dictionaries to manipulate data, run from a python ide etc etc. It all depends on what your purpose is. If I just want to do some quick manipulation which I might want to run a couple of times to get the workflow right, then model builder is the way. For something more speedy and controllable, being able to get exactly what I want then I write python code.
... View more
08-04-2015
04:42 AM
|
3
|
1
|
2674
|
|
POST
|
Obviously, excel tables can be imported into Arc and locations built from them. Be aware of some of the issues with excel headers / content and so on. But it all depends on what your data looks like and what are you trying to achieve. If you have a start point, and an end point and a time for the journey between the them, do you have a network routable dataset to analyse this with? What other data do you have. Excel is commonly single records ie a point. If there are multiple records per journey, then you need to look at a points to lines tool.
... View more
07-22-2015
09:26 AM
|
1
|
0
|
1373
|
|
POST
|
Not sure if this will help in your context but with python you could use the split & join methods... pth = "c:/aaaa/bbbb/cccc/Project_X/SubFolderY/Some.mxd"
>>> mxdId = pth.split("/")
>>> mxdId
['c:', 'aaaa', 'bbbb', 'cccc', 'Project_X', 'SubFolderY', 'Some.mxd']
>>> mxdId[-3:]
['Project_X', 'SubFolderY', 'Some.mxd']
>>> mxdIdSub = "/".join(mxdId[-3:])
>>> mxdIdSub
'Project_X/SubFolderY/Some.mxd'
>>> You would have to provide some other logic to identify where you need only the last 2 parts (no sub folder).
... View more
07-22-2015
12:05 AM
|
0
|
1
|
2408
|
|
POST
|
Why not just use the Feature Compare tool in Data Management/Data Comparison
... View more
07-21-2015
11:57 PM
|
1
|
0
|
4403
|
|
POST
|
Apart rom zooming in to something reasonable given your pixel size, it also helps to play with the raster stretch options in the symbolgy tab. Mine always defaults to percent clip, here changed to standard dev.
... View more
06-22-2015
07:09 AM
|
1
|
0
|
3562
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|