|
POST
|
Thanks for the response, Richard. This seems to be exactly what I need. Another question going forward from this point, though... How do I get this X and Y value into say decimal degrees, or possibly even degrees, minutes, seconds? The value that is returned for this looks like this: Lat: -10882136.0839 Long: 3537254.8606 I tried to enter this into Google Earth just to verify that they lead to the same spot, but it doesn't even recognize the values. Does this have something to do with the coordinate system that is used? The above values were returned on a feature class in Web Mercator (Auxiliary Sphere). *EDIT* I tested on a dummy point feature class in NAD 83 and got values that look like this: Lat: -115.531531 Long: 38.591616 However, these aren't recognized by Google Earth either. If you can provide any clarification as to what these values actually are, and how to get them into a more recognizable format, I'd really appreciate it. Thanks!
... View more
11-05-2014
08:00 AM
|
0
|
3
|
2433
|
|
POST
|
I am running ArcMap 10.2 on Windows 7. I have a point feature class that has a designated field for X and Y coordinate values. I am looking to automate the generation of these values within a model that I already use for multiple processes. I have tried many different attempts with Python code within the Calculate Field tool in Model Builder with no success. Here are the options that I have tried thus far: (the formatting is awkward and I couldn't figure out how to fix it. The code is there, though. 1 - !shape.extent.XMax! (I think this is the wrong direction since our target layer is of point type) 2 - '========================= 'point_Get_X.cal 'Author: Ianko Tchoukanski 'http://www.ian-ko.com '========================= On Error Resume Next Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pPoint As IPoint Dim dX As Double Dim bSrefFromMap As Boolean '======================= 'Adjust the parameter below 'True ==> the coordinates will be calculated in the projection of the Map 'False ==> the coordinates will be calculated in the projection of the data bSrefFromMap = True '======================= If (Not IsNull([Shape])) Then Set pPoint = [Shape] If (bSrefFromMap) Then Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap pPoint.Project pMap.SpatialReference End If dX = pPoint.X else dX = 0 End If 3 - !shape.firstpoint.X! 4 – Dim dblX As Double Dim pPoint As IPoint Set pPoint = [Shape] dblX = pPoint.X
... View more
11-03-2014
02:19 PM
|
0
|
5
|
6025
|
|
POST
|
I am running ArcMap 10.2 from a Windows 7 machine. I have a feature class that has a layer file applied for symbology. We always export our maps into KMZ format for others without ArcGIS licenses, but we typically like a slightly different symbology for the KMZ. I created a model that runs the Apply Symbology From Layer tool, then the Map to KML tool, and then the Apply Symbology From Layer tool once again to revert back to the desired symbology for ArcMap. Ideally, this would symbolize based on KMZ specifications, export to KMZ, and then symbolize back to the original, but it doesn't work. Each piece works independently, but not when I add them all into the same model. I have attached an image below showing how the model is set up. When I run the first symbology change by itself, I do notice that it takes a couple seconds before it applies in the map document, so I wonder if the model just runs too fast to accept the changes before it continues on and spits out the KMZ and reapplies the original symbology. I know this is a small model, with little user effort to do manually, but it is a small piece of a much larger model, so I would really like to get it to work properly. Thanks in advance!
... View more
10-29-2014
08:03 AM
|
0
|
0
|
2800
|
|
POST
|
Is there a way to maintain group layers when publishing a service to your online organization? In our MXD's, we like to add group layers to query out specific data in each grouping, however, we have been unable to find a way to maintain this look/feel whenever the service is published. Any information or tips/tricks are welcomed and appreciated. Thanks!
... View more
09-26-2014
09:53 AM
|
0
|
7
|
5776
|
|
POST
|
The company that I work for has recently acquired licenses for ArcGIS for Desktop, as well as ArcGIS Server. Ultimately we would like to establish an SDE SQL database as a central repository for our data. We currently have a team of two GIS Specialists that will be creating and managing the data, however, neither one of us have experience with using ArcGIS Server. Is there any general information that you can give that will help prepare us or help us understand how it works? Do SQL databases function in the same way as the typical file and personal geodatabases? We both dabbled with using the Publisher extension and reading the subsequent files in ArcReader, which was very nice since we could distribute that readable file to anyone else and they would have full navigation and access to the attribute tables. How does using ArcGIS Server compare to the usage of the Publisher extension? We have no need for company wide edits to the GIS data, as the only people that will be creating/editing are myself and our other GIS Specialist. The only thing that we need is for company-wide access for viewing the data, which publisher seems to have accomplished quite well. Initially we submitted a proposal to the high-ups in our company to purchase ArcGIS for Desktop licenses, as well as Publisher extension licenses for our GIS team, but our IT department suggested that we go ahead and go forth with the purchase of Server to help stay ahead of our growth, instead of catching up to ourselves and having to upgrade again in a few years. My understanding of ArcGIS Server is very limited, even through various online searches on the product, so can anyone help explain to me why it is needed over the alternative of desktop and publisher licenses?
... View more
08-22-2014
02:35 PM
|
0
|
0
|
2481
|
|
POST
|
I am using ArcMap Standard 10.2.2 on a windows 7 machine. My computer specs are as follows: HP Z420 Workstation Intel(R) Xeon(R) CPU E5-1603 0 @ 2.8GHz NVIDIA NVS 310 512mb graphics card 32 GB of Ram 64-bit system I originally designed a standard database and workflow for our GIS needs at my company, and we decided to move forward with license purchases. While designing I was using ArcGIS 10.2.1 trial version of Desktop, but now we have 10.2.2 Standard Edition. We also purchased ArcGIS Server as well. I tried to open up an old map that I used while designing and the basemaps are completely unusable. I tried to open a blank map and pull in a basemap with no data at all, and again, still unusable. I ran multiple speedtest.net tests, and our connection reported the following average values: Ping: 5-15 Download: 12mb - 18mb Upload: 12mb - 16 mb I have had experience with slower redraw speeds before and I have altered some settings to troubleshoot. They are as follows: Hardware Acceleration: I have tried with this on and off, with no difference either way. I should benefit from this due to the graphics card, though... Projection: I have ensured that the projection matches the basemap both when there is and isn't data in the map...no improvement. Cache folder: I have a custom folder located on my C: and ArcMap is directed to that folder for map caching, which I have read shows improvement over the default My Documents option. AntiVirus: I have tried with our Symantec AntiVirus both on and off with no difference. Firewall: I have tried with Windows Firewall both on and off with no difference. If I simply load in the Aerial Imagery basemap or the Streets basemap, it can take anywhere from 30 seconds to 3-4 minutes to reload. Obviously, this is entirely unacceptable for us to do our work. Anyone know what the potential problem or fixes could be? Thanks in advance!
... View more
08-21-2014
08:50 AM
|
0
|
0
|
4709
|
|
POST
|
Thanks to both of you guys, I am looking into each option now to see if either will better suit what I need. Coy Potts
... View more
07-08-2014
02:04 PM
|
0
|
2
|
2666
|
|
POST
|
Is it possible to create a script that would zoom to pre-designated bookmarks in the layout view and export a PDF of each bookmark? I work on projects that have many different areas of data. Once I'm done editing, I go to layout view, zoom to bookmarks, and print a PDF of each one. It would be really nice if I could set up a script that would allow me to just click a button on a toolbar and it exports a PDF for me. I am guessing that I would need to have a prompt for save folder location and PDF save name, but other than that the rest could be automatically set up. Initially I just want to know if this is possible. I know the code could be quite extensive, so I'm not asking anyone to write it for me. I've done some research on it and I can't find a lot about it. If it's possible, could someone guide me to a good resource for research on the topic, please? Thanks, Coy Potts
... View more
07-08-2014
09:59 AM
|
0
|
5
|
5657
|
|
POST
|
That was helpful. Thanks again, Thanos! I think this code is getting me closer to what I need, but I am still getting syntax errors. Since I'm using example code blocks to copy/paste, I feel like I may be putting more into this than needed. The user will have an open ArcMap document that will have one or two feature classes in it. The feature classes won't always have the same name, so I would like for the input features/table to be requested, and not just signified within the code. Secondly, do I need to have the lines that get the input and output workspace if I am running straight from the document that I am wanting the information written to? Here is the code that I have gotten so far: import arcpy
# Set the input workspace
arcpy.env.workspace = arcpy.GetParameterAsText(0)
# Set the output workspace
outWorkspace = arcpy.GetParameterAsText(1)
try:
# Get a list of the featureclasses in the input folder
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
# Validate the new feature class name for the output workspace.
featureClassName = arcpy.ValidateTableName(fc, outWorkspace)
outFeatureClass = os.path.join(outWorkspace, featureClassName)
# Set local variables
inTable = arcpy.GetParameterAsText(2)
fieldName1 = "symbol"
expression = "Reclass(string(!MTFCC!))"
codeblock = """def Reclass(symbol):
if MTFCC == "H3010":
return "River"
elif MTFCC == "H1100":
return "Creek""""
# Add fields
arcpy.AddField_management(inTable, fieldName1, "STRING")
# Calculate symbol values
arcpy.CalculateField_management(inTable, fieldName1, expression, "PYTHON_9.3", codeblock)
except:
arcpy.AddMessage(arcpy.GetMessages(2))
print arcpy.GetMessages(2)
... View more
10-25-2013
08:49 AM
|
0
|
0
|
770
|
|
POST
|
Okay, thanks for that input, Thanos. I have decided that an actual script within a toolbox is the route that I am going to go. I have this worked out so far: import arcpy
# Set the input workspace
#
arcpy.env.workspace = arcpy.GetParameterAsText(0)
# Set the output workspace
#
outWorkspace = arcpy.GetParameterAsText(1)
try:
# Get a list of the featureclasses in the input folder
#
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
# Validate the new feature class name for the output workspace.
#
featureClassName = arcpy.ValidateTableName(fc, outWorkspace)
outFeatureClass = os.path.join(outWorkspace, featureClassName)
def Reclass(symbol):
if MTFCC == "H3010":
return "River"
elif MTFCC == "H1100":
return "Creek"
except:
arcpy.AddMessage(arcpy.GetMessages(2))
print arcpy.GetMessages(2) Basically I am to the point where I tell it what to do and I'm not really sure how to do so.
... View more
10-24-2013
01:42 PM
|
0
|
0
|
770
|
|
POST
|
Hello, I am very new to Python scripting and I am trying to write one that will take values (they are always consistent), and based on their value enter a string into another field. I am working with data that is always coded the same (referenced below as field1, and I want to take those codes and automate a way to populate a different field based on those codes. I have been trying to play with this, but it hasn't worked so far: Expression: Reclass(!FIELD1!) Code block: def Reclass(FIELD1): if (FIELD1 == "H3010"): return "River" Ideally this is supposed to end up being an expression that the user can just load into the field calculator and it will grab the values from FIELD1 and place the desired values into FIELD2.
... View more
10-24-2013
11:58 AM
|
0
|
4
|
910
|
|
POST
|
I will give that a shot, thanks for the input! I'll give some details to the problem that I was having and maybe you can answer where it would still arise if all three were combined into a single script. I had to separate model 1 and model 2 at one point because the output contour feature class (created within the model) that was used as the input in a polyline to raster tool would throw an error that says "Cannot retrieve the feature class extent" before the model was even allowed to run. If I cut the two models at that point, run model 1 which ends at the contour creation, and then run model 2 starting with the contours as the input, it runs fine. I can see how it would say it couldn't retrieve the extent since the contours aren't technically created yet, but I find it weird that ArcMap won't allow the model to even begin to run at all. The second break ends in the creation of a Minus raster, and begins with the Reclassify tool. For some reason if I put these two steps together, it won't work...but if I run model 2 up to the Minus raster creation, and then start model 3, it works just fine. I'm not sure if that will all make sense without seeing what I'm working with, but maybe it will. Thanks again for the input! C Potts
... View more
10-23-2013
08:57 AM
|
0
|
0
|
467
|
|
POST
|
Hello, Due to various errors that I have been unable to surpass, I have to run a model in three separate parts. Each part can be ran successfully immediately after the previous has finished, however, I am unable to get them to work if I combine all of the processes into one model. Not sure why, but that is how it is so far. I am here to inquire about the possibility of connecting multiple models. Is there a way to call upon another model to run as soon as one has finished? Can you combine them into one? I haven't been able to find much help through online searches thus far. Thanks for any assistance. C. Potts
... View more
10-22-2013
08:35 PM
|
0
|
3
|
2473
|
|
POST
|
I didn't read each and every comment above, so if I overlap anything that has already been said, I apologize. I have this very same problem, but only when using File Geodatabases. If I use a Personal Geodatabase, I don't have any problems with read-only errors. When using the File Geodatabase, I can be in the middle of editing, but every once in a while when I hit "save edits" it'll throw this error at me. I'll have saved a few times prior, but eventually I'll get this error. Maybe this could shine some light on an issue that someone might spot. Again, sorry if this overlaps anything already covered.
... View more
10-22-2013
10:45 AM
|
0
|
0
|
1434
|
|
POST
|
I am trying to set a different workspace for raster datasets and for polyline feature classes. Basically, I want the rasters to be saved outside of the geodatabase and the polylines to be saved inside the geodatabase within a feature dataset. I tried to create a variable that was a model parameter so that I could input the particular folder I want to save the rasters and polylines in each time I run the tool. Model builder won't allow me to set the variable as the scratch or current workspace. I've tried to set it as either of the two and both at the same time. When I save the model and then go to close it, it gives me a message saying that changes were made and asking if I would like to save. No matter which option I choose the settings never remain and when I reopen the model to check it, the line connecting the workspace variable to the process is now called a precondition... Any help? 🙂
... View more
07-26-2012
07:26 AM
|
0
|
1
|
897
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2015 11:55 AM | |
| 1 | 02-04-2015 02:30 PM | |
| 2 | 03-23-2015 11:22 AM | |
| 7 | 03-23-2015 10:09 AM | |
| 3 | 03-23-2016 12:54 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-06-2025
09:05 PM
|