|
POST
|
We are currently still using ArcGIS 10 for our Desktop and Server. We have suddenly come across the following problem and not sure what has changed that can be causing our published Mosaic Datasets to grey out when zoomed into the individual tiles level. We have made sure that the ArcGIS Server SOC and SOM accounts have full access to the directory wherein which we are publishing our Mosaic Datasets. We have also ensured that we are using UNC paths for the Mosaic Dataset. The Mosaic Dataset draws correctly within ArcCatalog, in that the Mosaic displays correctly when zoomed into the individual tiles. As soon as we publish the Mosaic Dataset, the published service will display the overviews but not the individual tiles. Our only work around at this stage is to store the images within the File Geodatabase. The problem is that we can't keep converting our aerial orthophotos into grids as we are losing the compression that they are currently stored in (ECW and MrSID) and will run out of storage space. Any help or advice will be appreciated. Regards
... View more
08-17-2013
02:47 AM
|
0
|
6
|
5385
|
|
POST
|
Hi Adam Thanks for the following, Don't ask me how I missed that :confused: Regards
... View more
08-14-2013
08:46 PM
|
0
|
0
|
1466
|
|
POST
|
I've installed ArcGIS 10.2 and realised ArcGIS 10.2 still requires a separate installation of Desktop Background Geoprocessing (64 bit) but I've not been able to find a 10.2 installation of "Desktop Background Geoprocessing (64 bit). Please can someone point me to a location from which to download the following? Regards
... View more
08-14-2013
01:32 PM
|
0
|
3
|
4103
|
|
POST
|
I have come up with a solution. I hope this helps anyone else that I trying to generate a means of extacting longsection from 3D Polylines for engineering purposes. I'm certain that there's a bug with ArcGIS when using firstPoint, lastPoint and positionAlongLine together within a for loop as the following works perfectly and is virtually the same as using firtPoint and lastPoint to derive the first and last position along a line. pts = []
with arcpy.da.SearchCursor("Hatsamas_Bloukrans_3D_Albers","SHAPE@") as rows:
for row in rows:
pts.append(row[0].positionAlongLine(0))
i = 100
while i < row[0].length:
pts.append(row[0].positionAlongLine(i))
i += 100
leng = row[0].length
pts.append(row[0].positionAlongLine(leng))
arcpy.CopyFeatures_management(pts, r"in_memory\ptsalongline")
del pts Regards
... View more
08-06-2013
11:15 AM
|
0
|
0
|
2443
|
|
POST
|
Hi Wayne Thanks for getting back to me, your assistance is greatly appreciated. The purpose of the following script is to extract points along a polyline based on a defined user interval i.e. 100m. The polyline in this instance is a proposed pipeline (3D Polyline). I want to extract (generate) a point feature class starting at the begning of the line then thereafter every 100m in this instance ending witht the last vertex of the polyline. The newly generated (in_memory) point feature class represents the longsection of my proposed pipeline. I then extract the elevation for each point feature and export the attribute table for futher processing. What I eventually landup with is a longsection profile of my pipeline based on a user defined interval. In other words the next time round I could extract my longsection every 500m, but I need the first and last point each time. Also I can have multiple features within my feature class representing multiple pipelines that I need to generate longsection for. Please note that the longsection are plotted using a scatter graph within excel. Regards I've attached print screens of my polylines representing my proposed pipelines. Just a note. If I run the firstPoint and lastPoint on its own it works as expected, but as soon as I combined it with positionAlongLine it seems to get confused.
... View more
08-06-2013
10:00 AM
|
0
|
0
|
2443
|
|
POST
|
I've gotten closer to what I'm looking for, but my script is currently creating the firstPoint multiple times until it steps outside of the while loop and then generates the lastPoint once. I'm not sure why suddenly the positionAlongLine is only reading the firstPoint and not the entire geometry of the polyline. Any advice in how to resolve this would be appreciated. >>> pts = []
>>> with arcpy.da.SearchCursor("Hatsamas_Bloukrans_3D_Albers","SHAPE@") as rows:
... for row in rows:
... pts.append(arcpy.PointGeometry(row[0].firstPoint))
... i = 100
... while i < row[0].length:
... pts.append(row[0].positionAlongLine(i))
... i += 100
... pts.append(arcpy.PointGeometry(row[0].lastPoint))
... arcpy.CopyFeatures_management(pts, r"in_memory\ptsalongline")
... del pts Regards
... View more
08-06-2013
12:07 AM
|
0
|
0
|
2443
|
|
POST
|
Hi Wayne Thanks for the following, but unfortunately it only returns the lastPoint and not the firstPoint. Any suggestion why the following isn't working: pts.append(row[0].firstPoint) Regards
... View more
08-05-2013
02:21 PM
|
0
|
0
|
2443
|
|
POST
|
I'm busy writing a script to generate long-sections from a polyline. I've written the following based on an example from an ESRI video. The problem that I have is that the first and last position is not returned. The following works but doesn't return the first and last position along the polyline: >>> pts = []
>>> with arcpy.da.SearchCursor("Hatsamas_Bloukrans_3D_Albers", "SHAPE@")as rows:
... for row in rows:
... i = 100
... while i < row[0].length:
... pts.append(row[0].positionAlongLine(i))
... i += 100
... arcpy.CopyFeatures_management(pts, r"in_memory\ptsalongline") I've tried the following but returns an error: >>> pts = []
>>> with arcpy.da.SearchCursor("Hatsamas_Bloukrans_3D_Albers", "SHAPE@") as rows:
... for row in rows:
... pts.append(row[0].firstPoint)
... i = 100
... while i < row[0].length:
... pts.append(row[0].positionAlongLine(i))
... i += 100
... pts.append(row[0].lastPoint)
... arcpy.CopyFeatures_management(pts, r"in_memory\Ptsalongline") Any help will be appreciated. Regards
... View more
08-03-2013
02:21 PM
|
0
|
6
|
5100
|
|
POST
|
Thanks Christine Appreciate the following, I'll rerun the following section and let you know. Regards
... View more
06-12-2013
08:19 AM
|
0
|
0
|
508
|
|
POST
|
I've developed a model within ModelBuilder that utilizes a large number of tools from various toolboxes as well as python scripts. I'm pretty new to Python as well as Programming. The model that I've developed is calculating the catchment characteristics for very large railway alignments in the excess of 1000 km alignments. If any of the tools within my model fail, it means rerunning the model from scratch. Now most of the errors that I receive is not syntax or incorrect datatypes, it more to do with the particular feature within the Feature Class being processed. I wanted to find out if its possible to execute a tool and if the tool has a problem processing a particular feature within a feature class will through an exception, report the feature that it has a problem with, but at least will move to the next feature within the feature class and continue processing. I can then going through the feature that are causing the tool to through an exception to see why and run these features separately. Any suggestions will be appreciated. Regards
... View more
05-20-2013
01:04 PM
|
0
|
1
|
1096
|
|
POST
|
Hi Katherine I've come across the same as well. I've started to use PythonWin to type out my code as you need to select run before it will execute. Hopefully ESRI will remedy this error as well as allow you to insert a line of code between already typed code. Currently it will take you to the last line of code type and try to execute your code. Regards
... View more
05-20-2013
10:04 AM
|
0
|
0
|
555
|
|
POST
|
I've a very large model where I'm processing 650 watersheds. My model is failing when trying to generate the longest flow paths for the 650 watersheds. I would like to trap the individual watersheds that are causing the longest flow path to fail, report the hydroID and continue the the rest of the watersheds at least. I can always go back to look at the watersheds that throw an exception to see whats causing the the tool to fail. import arcpy, ArcHydroTools
watshed = r'E:\Projects\H109355_2\ArcHydro\Model3\Nigeria03.gdb\Layers\Watershed'
fdr = r'E:\Projects\H109355_2\Archydro\GRID\layers.gdb\Fdr'
ArcHydroTools.LongestFlowpath(watshed,fdr,r'E:\Projects\H109355_2\ArcHyro\Model3\Nigeria03.gdb\Layers\LongestFlowPath') I've tried the following approach, but over write output doesn't work: import arcpy, ArcHydroTools
outpath = arcpy.env.workspace = r'E:\Projects\H109355_2\ArcHydro\Model3\Nigeria03.gdb\Layers'
arcpy.env.overwriteOutput = True
fdr = r'E:\Projects\H109355_2\ArcHydro\GRID\Layers.gdb\Fdr'
watshed = "Watershed"
with arcpy.da.SearchCursor(watshed,("Name",)) as scur:
for row in scur:
cuindex = row[0]
sqlexp = """{0} = '{1}'""".format(arcpy.AddFieldDelimiters(watshed,"Name"),cuindex)
watshedind = arcpy.FeatureClassToFeatureClass_conversion(watshed,outpath,"watshed",sqlexp)
try:
longflowpath1 = ArcHydroTools.LongestFlowPath(watshedind,fdr,"in_memory\longestflowpath")
except:
arcpy.AddMessage
print cuindex Any help will be appreciated. Regards
... View more
05-20-2013
09:38 AM
|
0
|
2
|
2879
|
|
POST
|
I'm looking for some assistance in error trapping. I have 650 watersheds that I need to calculate the Longest Flow Path for. I have incorporated the tool into a much larger model and currently its failing at Longest Flow Path. I would like to be able run the current tools and for any exception thrown by the tool print the name of the current watershed being processed and continue with the rest. At least then I can go back to see the watersheds that have thrown an exception to see why. Currently I have to manually look for which watershed is causing the error and rerun the tool from scratch. import arcpy, ArcHydroTools
watshed = r'E:\Projects\H109355_2\ArcHydro\Model3\Nigeria03.gdb\Layers\Watershed'
fdr = r'E:\Projects\H109355_2\Archydro\GRID\layers.gdb\Fdr'
ArcHydroTools.LongestFlowpath(watshed,fdr,r'E:\Projects\H109355_2\ArcHyro\Model3\Nigeria03.gdb\Layers\LongestFlowPath') I've tried the following approach, but overwriteoutput isn't working: import arcpy, ArcHydroTools
outpath = arcpy.env.workspace = r'E:\Projects\H109355_2\ArcHydro\Model3\Nigeria03.gdb\Layers'
arcpy.env.overwriteOutput = True
fdr = r'E:\Projects\H109355_2\ArcHydro\GRID\Layers.gdb\Fdr'
watshed = "Watershed"
with arcpy.da.SearchCursor(watshed,("Name",)) as scur:
for row in scur:
cuindex = row[0]
sqlexp = """{0} = '{1}'""".format(arcpy.AddFieldDelimiters(watshed,"Name"),cuindex)
watshedind = arcpy.FeatureClassToFeatureClass_conversion(watshed,outpath,"watshed",sqlexp)
try:
longflowpath1 = ArcHydroTools.LongestFlowPath(watshedind,fdr,"in_memory\longestflowpath")
except:
arcpy.AddMessage
print cuindex Any help will be appreciated. Regards
... View more
05-20-2013
09:31 AM
|
0
|
1
|
740
|
|
POST
|
I've never had to connect to an enterprise database (SQL Server 2008) before and please note the database that I'm trying to connect to is not a spatial database. I want to connect to the following database to retrieve records that I can generate spatial data from. The records are of Police incidents that contain coordinates of the location of each incident and the particulars of the incident. I want to use the following information to start analyzing crime. I've been provided with the IP Address of the SQL Server (2008) as well as a User Name and Password . When I try to create a database connection from within ArcCatalog I receive the following error message: I've attached a print screen of the database connection parameters that I'm entering as well as the error message. I have asked the Database Administrator to change the compatibility of the particular database that I'm trying to connect to (IMSWarehouse) to level 90 (SQL Server 2005), but I still receive the same error. Any advice in how I can create a direct connection to the following database will be appreciated. Regards NB: I'm currently running ArcGIS 10.1 with SP1
... View more
05-16-2013
03:58 AM
|
0
|
2
|
2683
|
|
POST
|
I wanted to find out from the rest of the community if they have come across the following. I'm currently testing Arc Hydro 64 bit for ArcGIS 10.1 (version 10.1.3143) and have come across a bug that was around in ArcGIS 10, not sure of the version of Arc Hydro. I run most of my Terrain Preprocessing steps from the Arc Hydro Toolboxes and not from within ArcMap. I'm currently developing a Python Module that will perform all my Terrain Preprocessing steps for me. The bug is this, if you run AdjointCatchment from the ArcHydro Toolboxes it produces an empty feature class although it says it has completed successfully. Only if you run AdjointCatchment from the Arc Hydro Toolbar within ArcMap does it successfully produce a feature class that is populated. Regards
... View more
05-15-2013
05:08 AM
|
0
|
2
|
4575
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 01-16-2012 02:34 AM | |
| 1 | 05-07-2016 03:04 AM | |
| 1 | 04-10-2016 01:09 AM | |
| 1 | 03-13-2017 12:27 PM | |
| 1 | 02-17-2016 02:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-04-2021
12:50 PM
|