POST
|
Hello, I would like my Workflow Manager Admin users to be able to load a fishnet feature class/service into Workflow Manager, and for Workflow Manager to create an unassigned job for every polygon in that feature class/service. I can't think of a simple way to do this. Any ideas? Thanks!
... View more
02-19-2018
08:48 AM
|
0
|
2
|
732
|
POST
|
Hello, I am trying to load up a tile package into ArcGIS Online and convert that into a Map Service to be used a basemap. In Desktop, the projection system is WGS_1984_Antarctic_Polar_Stereographic, when I then create a tile package, and load those tiles into ArcGIS Online, the resulting Map Service appears to be in Web Mercator, even when I use it as a basemap. Is this expected? When transforming from a tile package to a map service, does arcgis online reproject the service to Web Mercator? Thanks
... View more
03-18-2013
03:50 AM
|
0
|
0
|
2138
|
POST
|
Thanks! It worked! I imported the model into sketchup, then I followed the guidelines on this video http://www.youtube.com/watch?v=zYUvox8rSY8 and I exported it to a new .dae file with the triangulate faces option checked! Thanks!
... View more
10-12-2012
02:33 AM
|
0
|
0
|
518
|
POST
|
Hi! The file is this one: http://sketchup.google.com/3dwarehouse/details?mid=ca04d433b2a6201d8e2dd5feea45e0e2 Ok, that is encouraging, do you know how i could "get into" the collida file and change the 0 to a 1? is it easy? I hope so!
... View more
10-05-2012
06:08 AM
|
0
|
0
|
518
|
POST
|
Some more detail.. I checked, and some of the models I was trying to import had a very complex rating on Trimble.. that made me think that perhaps, CityEngine was unable to cope with complex models. So I tried to load up a model which was classified as "simple" on Trimble, but again, that did not work. It only displays as transparent...
... View more
10-02-2012
07:59 AM
|
0
|
0
|
518
|
POST
|
Hello, I am having some problems importing .dae files into city engine. I am downloading 3D buildings in London from the Trimble 3D warehouse.. some of the models display fine, but others can only be displayed if I switch the transparency on. If I turn the transparency off, then they are invisible. I checked one of the models which doesn't display correctly in SketchUp, and it displays perfectly. Why does it not display in CityEngine, and is there anything I can do to get around this issue? Thank you.
... View more
10-01-2012
05:20 AM
|
0
|
5
|
3423
|
POST
|
Stuart, merry christmas and happy new year! The problem i am facing is this: the .png files i have come with no other information. They are usually opened in a programme called "Klic", along with other data in .pdf format which the client needs. The client now wants these klic files (the .png files) to be imported into ArcMap where they need to be georeferenced. The only data i have for the .png files are in .xml files (i dont really grasp what these are to be honest!) But apparently they have co-ordinates in them, so I dont really have any concept of how long the pipelines are!! I had initially tried a rastertopolyline conversion - but with some of the files that didnt work, even manually! I think it is due to the fact that some .png files are funny shapes, or that they are counting the background as a part of the shape! How do i create a world file and attach it to the raster? I feel so guilty for taking up so much of your time!! If you ever have a problem i can help you with (probably not) i would do the same!!! Thank you!!!!
... View more
01-04-2011
09:12 PM
|
0
|
0
|
592
|
POST
|
wow!! I am not back in the office until the new year now - so i will look into all of this then and get back to you!! thank you sooo much for your help you have saved my life!!!:)
... View more
12-16-2010
04:59 AM
|
0
|
0
|
592
|
POST
|
Thank you! I have made some of the changes you suggested to make it look nice, and i am going to look into the feature class to shapefile conversion, and adding in the name change function into the script itself! I dont think overwrite is actually doing anything in the script because it still gives an error if i dont delete the shapefile.gdb, so i will remove it! I need the buffer to be by 5 meters either side (the .png files are pipelines, cables etc underground and need to be avoided by 5 meters either side for soil investigations!). Should i change the "5" to "5 meters", if this means 5 pixels - i assume thats not the same as 5 meters!
... View more
12-15-2010
01:37 AM
|
0
|
0
|
592
|
POST
|
Brilliant news! The script works now, the problem was that i was viewing the files in arc catalog, and outside of arccatalog there were other .aux and .xml files which were causing the error i think!! Here is the new improved script #--------------------- IMPORT --------------------------------------------------
import sys, string, os, arcgisscripting
gp = arcgisscripting.create(9.3)
# Load required toolboxes...
##gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx")
##gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")
#--------------------- INPUT ---------------------------------------------------
gp.workspace = "D:/J040083"
gp.CreateFileGDB ("D:/J040083", "ShapeFiles.gdb")
folder = "D:/J040083/IMAGEFILES"
#--------------------- SCRIPT --------------------------------------------------
gp.OverWriteOutput = 1 # overwrite existing files (1 = True, 0 = False)
for root, dirs, filenames in os.walk(folder): # returms root, dirs, and files
for filename in filenames:
filename_split = os.path.splitext(filename) # filename and extensionname (extension in [1])
filename_zero = filename_split[0]
extension = str.upper(filename_split[1])
try:
first_2_letters = str.upper(filename_zero[0] + filename_zero[1])
except:
first_2_letters = "XX"
if first_2_letters == "LG" and extension == ".PNG":
Output_polygon_features = "D:/J040083/ShapeFiles.gdb/" + "SH_" + filename_zero
print (Output_polygon_features)
# Process: Raster to Polygon...
INPUT_RASTER = os.path.join(root + "/" + filename_zero + ".png")
print (INPUT_RASTER)
gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features)
Distance__value_or_field_ = "5"
Raster_Buffer_shp = "D:/J040083/ShapeFiles.gdb/" + "SB_" + filename_zero
print (Raster_Buffer_shp)
# Process: Buffer...
gp.Buffer_analysis(Output_polygon_features, Raster_Buffer_shp, Distance__value_or_field_, "FULL", "ROUND", "NONE") and i did have a problem with the files with + in them, so i made a script to replace any +s with _s! Thank you soooo much for your help!
... View more
12-13-2010
11:22 PM
|
0
|
0
|
592
|
POST
|
Hello!! I checked all the filenames etc and they are all the same!:( Ive saved some print screen of the contents of the files and the error message i am getting and here is the code! Thank you again for being so helpful! # ---------------------------------------------------------------------------
# RASTER2POLYGON.py
# Created on: Wed Dec 01 2010 12:20:48 PM
# (generated by ArcGIS/ModelBuilder)
# Usage: RASTER2POLYGON <INPUT_RASTER> <Output_polygon_features> <Raster_Buffer_shp>
# ---------------------------------------------------------------------------
# Import system modules
import sys, string, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create(9.3)
# Load required toolboxes...
#gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx")
#gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")
# Script arguments...
gp.workspace = "D:/J040083"
gp.CreateFileGDB ("D:/J040083", "ShapeFiles.gdb")
folder = "D:/J040083/IMAGEFILES"
for root, dirs, filenames in os.walk(folder): # returms root, dirs, and files
for filename in filenames:
filename_split = os.path.splitext(filename) # filename and extensionname (extension in [1])
filename_zero = filename_split[0]
try:
first_2_letters = filename_zero[0] + filename_zero[1]
except:
first_2_letters = "XX"
if first_2_letters == "LG":
Output_polygon_features = "D:/J040083/ShapeFiles.gdb/" + "SH_" + filename_zero
# Process: Raster to Polygon...
INPUT_RASTER = os.path.join(root + "/" + filename_zero + ".png")
gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features)
Distance__value_or_field_ = "5"
Raster_Buffer_shp = "D:/J040083/ShapeFiles.gdb/" + "SB_" + filename_zero
# Process: Buffer...
gp.Buffer_analysis(Output_polygon_features, Raster_Buffer_shp, Distance__value_or_field_, "FULL", "ROUND", "NONE")
... View more
12-13-2010
03:38 AM
|
0
|
0
|
874
|
POST
|
Thank you! Im not in the office again until monday so i will test it all then! Thank you again for your help!!! 😄 I will let you know what happens - im sure it is something with pathnames and where im saving everything! Screen shots to come!
... View more
12-10-2010
08:42 AM
|
0
|
0
|
874
|
POST
|
success!!! I have successfully made a shapefile and a buffer!! But there is a problem in that at line 47 gp.Buffer_analysis(Output_polygon_features, Raster_Buffer_shp, Distance__value_or_field_, "FULL", "ROUND", "NONE") I get an error saying the the file i am trying to create already exists. This makes me think that something has gone wrong where the script doesnt know what it already has modified so it tried to make the same shapefile and buffer again but it cant because they already exist!!
... View more
12-09-2010
09:13 PM
|
0
|
0
|
874
|
POST
|
Thank you so much for your help! When i first ran it i got a different error but i removed the "-" from the workspace file name and that error was no longer an issue! ..however.. Now i get a new error which states: "error 00860 input raster is not the type of composite geodataset, or does not exist" But then i ran raster to polygon manually for the first LG file in the image files folder - which i assume would be the first one the script would process, and it worked perfectly!! The script gets as far as greating the geodatabase but that is it (error on line 40! gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features)) Im so sorry to take up so much of your time! Thank you so much for debugging my script!!!!
... View more
12-08-2010
09:38 PM
|
0
|
0
|
874
|
POST
|
Hello! I am have already posted this in the general forum but i managed to solve that issue and now i have a new one! I keep getting an error 99999 error message at line 37! ( gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features, "SIMPLIFY", "VALUE") ) I am trying to make a script which selects every .png file in a folder beginning with the letters "LG". I then want the scipt create a shapefile, replacing the "LG" with "SH", and then i want the script to buffer that shapefile and rename the buffer with the first 2 letters being "SB"! Can anyone see why this isnt working? I am very, very new to this and have been staring at this script pulling out my hair for days!! 😮 Here is the script: # ---------------------------------------------------------------------------
# RASTER2POLYGON.py
# Created on: Wed Dec 01 2010 12:20:48 PM
# (generated by ArcGIS/ModelBuilder)
# Usage: RASTER2POLYGON <INPUT_RASTER> <Output_polygon_features> <Raster_Buffer_shp>
# ---------------------------------------------------------------------------
# Import system modules
import sys, string, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()
# Load required toolboxes...
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx")
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")
# Script arguments...
folder = "D:\\J04-0083\\IMAGEFILES"
for root, dirs, filenames in os.walk(folder): # returms root, dirs, and files
for filename in filenames:
filename_split = os.path.splitext(filename) # filename and extensionname (extension in [1])
filename_zero = filename_split[0]
try:
first_2_letters = filename_zero[0] + filename_zero[1]
except:
first_2_letters = "XX"
if first_2_letters == "LG":
Output_polygon_features = "D:\\J04-0083\\ShapeFiles.gdb\\" + "SH_" + filename + ".shp"
# Process: Raster to Polygon...
INPUT_RASTER = os.path.join(root + "\\" + filename_zero + ".png")
gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features, "SIMPLIFY", "VALUE")
Distance__value_or_field_ = "5 Meters"
Raster_Buffer_shp = "SB_" + filename + ".shp"
# Process: Buffer...
gp.Buffer_analysis(Output_polygon_features, Raster_Buffer_shp, Distance__value_or_field_, "FULL", "ROUND", "NONE", "")
... View more
12-07-2010
02:20 AM
|
0
|
18
|
2464
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|