POST
|
Ok, thanks Melita. I'll ask the creators of the data if they reprojected the image.
... View more
10-20-2017
06:28 PM
|
0
|
0
|
872
|
POST
|
If I understand you correctly, your suggestion might help diagnose the problem if I had projected the raster image from its original coordinate system. I haven't performed any projections on the image, so it's either in its original coordinate system, or it was projected by someone else before I received the image. In attempting your solution, I noticed something interesting. I converted the image to polygon (raster to polygon, conversion toolbox), and the resulting polygon has the extent of the image as it is being displayed, rather than the extent shown in the image's source properties. Not sure if that sheds any light on the problem.
... View more
10-20-2017
04:28 PM
|
0
|
2
|
872
|
POST
|
Thanks for the reply, Dan. I created that point by plugging the bottom-left coordinates into the "Go to XY" tool ("Add labeled point"), so I assume its coordinate system would be the coordinate system of the data frame, which is polar stereographic. The tool creates graphic elements, not point features, so it doesn't have a table. In the properties of the graphic element, the position is listed as X: 1,033,372.4939 m, Y: -526,158.4686 m.
... View more
10-20-2017
03:53 PM
|
0
|
4
|
868
|
POST
|
I'm trying to figure out why my raster image does not match its spatial extent. For example, the bottom-left corner of the image is supposed to be at (1033596, -526063) (see attachment "projection info"), but this point (green dot) does not line up with the bottom-left corner of the raster (see attachment "raster"). I've set the coordinate system of the data frame to that of the image (polar stereographic). Any help would be much appreciated.
... View more
10-20-2017
02:54 PM
|
0
|
6
|
1959
|
POST
|
Thanks again Curtis. I don't know how to check if the canopy path is not in the system PATH. I named the .pth files (both zzarcpy.pth in the Canopy site-packages folder, and zzcanopy.pth in the Python27 site-packages folder) accordingly so they would be loaded last. No luck I've also tried installing and running the 32-bit version of Canopy -- no luck there either. Would you recommend I try using Anaconda? If it's easier to get arcpy to load in Anaconda, I will gladly give that a try.
... View more
11-27-2015
02:28 PM
|
0
|
3
|
950
|
POST
|
Curtis, thanks for your help with this. I'm still experiencing the same error as others in this thread (ImportError: DLL load failed: %1 is not a valid Win32 application) after adding the arcpy.pth files to the Canopy site packages directory as instructed above. I dumped out the sys.path (copied below), and as you can see, there are Canopy paths both before and after the ArcGIS paths. Do you know how to get the Canopy paths to load after the ArcGIS paths, as you suggested? 0 C:\Users\scott.stephenson\Dropbox\Python\scripts\Emissions
1
2 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\Scripts\python27.zip
3 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\DLLs
4 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib
5 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\plat-win
6 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\lib-tk
7 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64
8 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User
9 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\lib\site-packages
10 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\lib\site-packages\PIL
11 C:\Program Files (x86)\ArcGIS\Desktop10.2\bin
12 C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy
13 C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts
14 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\lib\site-packages\win32
15 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\lib\site-packages\win32\lib
16 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\User\lib\site-packages\Pythonwin
17 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata
18 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages
19 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages\win32
20 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages\win32\lib
21 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages\Pythonwin
22 C:\Users\scott.stephenson\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages\IPython\extensions
23 C:\Users\scott.stephenson\.ipython
... View more
11-23-2015
10:09 AM
|
0
|
5
|
950
|
POST
|
Chris and Melinda -- thanks again! Good things to keep in mind when creating network datasets in the future.
... View more
08-07-2015
12:14 AM
|
0
|
0
|
3173
|
POST
|
By the way, Melinda, how were you able to tell that my network was not well-connected at the junctions? I'd like to know how to diagnose similar problems in the future.
... View more
08-06-2015
07:50 AM
|
0
|
3
|
3172
|
POST
|
I'm creating lines from point geometry, similar to the example in this thread: arcgis desktop - How to convert arcpy.InsertCursor to arcpy.da.InsertCursor in Python code? - Geographic Information Sys… I did a little more digging and found that the Snap tool works well for my purposes, and seems to be more efficient than the Integrate tool: Snap—Help | ArcGIS for Desktop Unfortunately, it would be too time-consuming to delete features in the geodatabase feature class and add the new features back to the feature class, so I will be stuck with shapefiles for the time being. Thanks again for your help!
... View more
08-06-2015
04:41 AM
|
0
|
0
|
3172
|
POST
|
Melinda, thank you very much for your reply. Integrating the network with the junctions seemed to do the job. If I may ask a couple of follow-up questions: 1. I created the network grid programmatically in python by building segments individually. Is there a way to apply snapping settings with arcpy to prevent this from happening in the future? 2. I originally wanted to do this in a file geodatabase. However, my workflow requires that I periodically overwrite the feature class on which the network is based and re-build the network. I have a script in python that does this; however, when the feature class is in a geodatabase, it cannot be overwritten as long as it is participating in the network dataset. Shapefiles do not have this restriction, i.e. I can overwrite a shapefile that is participating in a network database and re-build the network without any problems. Do you know if there is a way to overwrite feature classes in a geodatabase that are participating in a network dataset? If so, I will certainly use that instead. Thank you again for your help. Scott
... View more
08-05-2015
12:00 PM
|
0
|
6
|
3172
|
POST
|
Hello, My problem is that the Solve tool in Network Analyst fails to find a route between stops in my network dataset. The stops are locating correctly (see attached screenshot "located points"), but the Solver returns an error "Warning: No route from location X to location Y. Error: No solution found" (see attached screenshot "error message"). This happens even when I dynamically add stops using the "Create Network Location Tool" for testing. The network is a simple grid with adjacent and diagonal connections at regular intervals. I've attached the shapefile on which the network is based (tempgrid.shp). Any help would be greatly appreciated. The details of my network dataset are below: Name: tempgrid_ND Type: Shapefile-Based Network Dataset Sources: Edge Sources: tempgrid Connectivity: Group 1: Edge Connectivity: tempgrid (End Point) Elevation Model: None Attributes: Length: Usage Type: Cost Data Type: Double Units Type: Unknown Use by Default: True Source Attribute Evaluators: tempgrid (From-To): Field Language: VBScript Expression: [EdgeCost] tempgrid (To-From): Field Language: VBScript Expression: [EdgeCost] Default Attribute Evaluators: Default Edges: Constant = 0 Default Junctions: Constant = 0 Directions: Directions Ready: No -Length Attribute Required
... View more
08-05-2015
02:28 AM
|
0
|
8
|
10981
|
POST
|
Hello, I have a regular 20km x 20km vector mesh grid that I wish to use as the basis for a network dataset. Each line in the grid has a cost value representing travel time. I created this grid in a Lambert Azimuthal Equal-Area projection and each line segment is exactly 20km long when viewed in this projection. As the basis for a network dataset, I hope to use the grid to calculate shortest routes between two points on the grid. However, I've been told that equal-area is a bad choice for distance calculations, and I should use an equidistant projection instead. Is the solution as simple as projecting my equal-area grid to an equidistant projection and recalculating my routes? Or do I need to create a new grid from scratch with an equidistant projection? If I need to create a new grid, is there a tool for doing so? (I converted the equal-area grid from a previous dataset that was in equal-area). Many thanks for any help. Scott
... View more
12-11-2012
08:28 PM
|
0
|
1
|
1896
|
POST
|
Hello all, I am trying to convert a raster to a vector line grid for use in building a network dataset. The standard "raster to polyline" tool produces a grid with lines along the edges of each raster cell, but I also need diagonal connections across each cell in order for the network processing to work correctly. One possible solution I considered, if it is not possible to directly convert a raster to a grid with these properties, is to create a "template" line grid, convert the raster to a polygon, and spatial-join the grid to the polygon so that each line in the grid picks up the correct attributes from the raster. Unfortunately I haven't found a way to create a "template" grid with diagonal connections. I am aware that I can use cost path analysis to perform route-finding functions in the raster domain, but for this particular function I need to work within the vector domain. Thank you very much for your help. Scott
... View more
11-26-2012
06:45 AM
|
0
|
1
|
877
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|