POST
|
Thanks for replying Rick. I've actually got the geo-schematics working quite well now. Iwondered whether you could help me any further - I haven't quite got to custom queries yet but will read up in the help. Thanks Claire
... View more
05-07-2013
02:27 AM
|
0
|
0
|
324
|
POST
|
OK - things are moving forward - Hurrrah, I have managed to produce a schematic. Now - I have some track quality data that is plotted using linear referencing techniques to the rail line in a seperate layer. How do I get this to show on my schematic? Thnks Claire
... View more
05-04-2013
05:41 AM
|
0
|
0
|
324
|
POST
|
I am running ArcGIS 10 and am trying to produce a schematic of a railway section using geographic data. I have run through the quick start tutorials but I seem to produce zilch when I try to create a diagram. I have even tried to produce a schematic from a few digitised lines that I know are topologically correct but still nothing. Am I missing something? Is there some magic setting that I haven't pushed? Joking aside any help would be greatly appreciated as I have some members of staff manually creating schematics and it is taking along time. Many Thanks Claire PS - I have uploaded a pic of my basic network to see if anyone can see anything obvious.
... View more
05-04-2013
03:54 AM
|
0
|
4
|
491
|
POST
|
Hi Phil thanks for your reply - this still isn't working - the output is a fraction of the size it should be (See attached) - it even does this when I use the tool in ArcMap but I do get a larger area. Help would be much appreciated as I have to get this piece of work delivered tomorrow. thanks Claire
... View more
07-18-2012
01:27 PM
|
0
|
0
|
1561
|
POST
|
I have a number of raster datasets in a folder that I want to sum/add together. I'm having trouble doing this - I've created a raster list but the output doesn't seem to be adding them together. Can someone help please. import arcpy, os
from arcpy import env
from arcpy.sa import *
arcpy.CheckOutExtension("Spatial")
arcpy.env.overwriteOutput = True
env.workspace = r"C:\Users\Documents\GIS\Site Selection Example\Output Datasets\Cons_Raster"
rasterList = arcpy.ListRasters("*")
for raster in rasterList:
print raster
# Execute CellStatistics
outCellStatistics = CellStatistics(raster, "SUM", "NODATA")
# Save the output
outCellStatistics.save("C:/data/sumRast.tif") thanks Claire
... View more
07-18-2012
06:58 AM
|
0
|
7
|
4270
|
POST
|
i hope someone can help - I have an number of mxd's in a folder each with the same layers in but a different spatial extent. I'd like to write a script that applies the definition query to the layer in each of these MXD's - can someone help?
... View more
04-16-2012
03:44 AM
|
0
|
3
|
1108
|
POST
|
Tried a Union but it was a mess!!! I might try your suggestion of merging the environmental datasets then intersecting probably the best solution. I'm wondering whether try write a script that iterates through the layers in the TOC performing the spatial join - then merge together and dissolve on parish ID - might work. then again, it might be less time consuming to go with the first suggestion!!! Thanks Claire
... View more
04-04-2012
10:35 AM
|
0
|
0
|
256
|
POST
|
I feel a bit embarrassed at asking this question and hope that i am not missing a really easy command to do this!! I have some parish boundaries and also some environmental datasets - I'd like to perform a spatial join to identify whether the parish falls in one of the environmental datasets. I don't really want to perform 10 spatial joins (the number of environmental datasets I have) is there another way? thanks Claire
... View more
04-04-2012
07:27 AM
|
0
|
2
|
1122
|
POST
|
Hi I'm fairly new to Python, so please bear with me. I need to create a link to a SQLServer database using OLEDB and i haven't got a clue where to start. Can someone help please? 😞 Many thanks Claire
... View more
03-27-2012
07:23 AM
|
0
|
3
|
5308
|
POST
|
I hope someone can help me with this - I have an mxd of datasets with broken thinks (person who created it - not me - didn't tick relative paths - DOH!). Anyway the datasets aren't all in the same folder but follow this pattern; e.g. c:\data\GIS\SSSI\SSSI.shp c:\data\GIS\SPA\SPA.shp so what I need to do it rey and isolate \data\gis\...... and replace with the c: with f: and I'm not sure how to do this. Many Thanks Claire
... View more
02-01-2012
09:48 AM
|
0
|
0
|
276
|
POST
|
Hi thanks for your reply but this still isn't working. I've changed the script a little bit so it prints the file names before commencing the conversion(or not!!), to ascertain that its creating the list, which incidentally it is. import arcpy
from arcpy import env
import os
env.workspace = "C:\\Data\\asc"
listFiles = arcpy.ListFiles("*.asc")
for file in listFiles:
outfile = file[:6]
infile = file
dtype = "Float"
print file
print outfile
arcpy.ASCIIToRaster_conversion(infile, outfile, dtype) I'm desperate for some advice on this as I have some files to convert for a client tomorrow 😞 thanks Claire
... View more
10-25-2011
01:50 AM
|
0
|
0
|
669
|
POST
|
Ok if you hard code the paths and run the script on a single file it works. So, I'm wondering whether its ListRasters or the For loop - can't remeber having this problem before!! EXTRA NOTE***** - Is there any other way I can get a list or loop through files in a folder?
... View more
10-24-2011
11:59 AM
|
0
|
0
|
669
|
POST
|
dtm is in the file name so have used rstrip("dtm.asc") to strip dtm and asc from the filename so it doesn't exceed 13 characters - so not sure this is the answer as its the input file it can't find! ***Extra note - just ran your suggestion and same issue - for some reason it is saying the input file doesn't exist which is bizarre when it has got the name from the rasterlist which has just cycled through that folder!!! ERROR 000865: Input ASCII raster file: sx0051dtm.asc does not exist
... View more
10-24-2011
10:56 AM
|
0
|
0
|
669
|
POST
|
Hope someone can help - I've written this script several times in the past but unfortunately my laptop is being serviced and I forgot to backup my python scripts directory - ~DOH 😮 Anyway, this should be really simple - I'm looping through some ascii files in a directory and converting them to a raster. However, Python returns the error - Failed to execute (ASCIIToRaster). I know the ascii file is there as I have manually converted in toolbox and its fine. I've posted the code below. # Import arcpy module import arcpy from arcpy import env # Local variables: env.workspace = "C:/Data/asc" outputraster = raster.rstrip("dtm.asc") datatype = "FLOAT" #Get a list of ascii files rasterList = arcpy.ListRasters() for raster in rasterList: arcpy.ASCIIToRaster_conversion(raster,outputraster,datatype)
... View more
10-24-2011
10:16 AM
|
0
|
11
|
2092
|
POST
|
No Worries - I've managed to do this now!! I am so pleased - it just shows how in a couple of hours a complete novice can build a mapping webpage using the samples ESRI provided!! :cool:
... View more
10-06-2011
08:01 AM
|
0
|
0
|
138
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|