POST
|
Hi all I'm looking at volunteering for my local SAR organization here in British Columbia, Canada. I've suggested using either QGIS or ArcGIS. I was wondering whether there is a discount rate for ESRI products for SAR organizations given the service they offer and that they run on a volunteer basis? Any advice appreciated. Thanks
... View more
03-27-2014
07:35 PM
|
0
|
1
|
4451
|
POST
|
Solved it with the data loader. I needed to assign the new features to original features in the data loader wizard. All done now! That was easy. Thanks for the help. Sam
... View more
12-05-2013
09:17 PM
|
0
|
0
|
651
|
POST
|
EDIT: Just realized I read to quickly, you do seem to be manipulating numeric values outside of ArcGIS, so they should be able to import. What software are you using to edit the exported data? Can it be that it changes the field type? You might check this by looking at the properties in ArcCatalog. All ESRI products... ArcCatalog and ArcMap. I'm going to try and assign the domains to the fields in the extracted points. Otherwise I may try to export everything as a shapefile, then import into the geodatabase, then assign the domains. Fingers crossed.
... View more
12-05-2013
08:39 PM
|
0
|
0
|
651
|
POST
|
Domains are a property of the geodatabase, not the featureclass. When you append the extracted data back into the original database, have you deleted the orginal features? I ask only because if you have not, you'll end up with double entries. I'm not a big fan of the append tool. Must have had a bad experience at one time or another. Try using the simple data loader. I also have to ask, why not just perform your manipulations on the original features in the original geodatabase? Hi Thanks for the response. Yep, I've selected a bunch of points I want to work on, then removed them from the featureclass, with the intent of working on them and adding them back in. The only issue I've notice so far is that even if I extract the points to the same geodatabase the fields lose their domains, which I had assumed would remain. I tried the data loader as you suggested and got the same result as with the append tool. I noticed when I'm using the loader that it didn't recognise the values in the fields. In one step in the wizard it tells me which fields align with which and it had null values next to all the numeric fields. I'm going to try and assign the domains to the fields and then try the loader again and see if that works. Thanks Sam
... View more
12-05-2013
08:36 PM
|
0
|
0
|
651
|
POST
|
I am having similar issues. I figured it was something to do with using featureclasses which have domains. It was suggested to me to use the data loader, rather than the Append tool. Hope that helps!
... View more
12-05-2013
04:10 PM
|
0
|
0
|
203
|
POST
|
Hi I have a geodatabase feature class that has domains. I have extracted a portion of this feature class and manipulated some of the data within and then appended the data back to the original source. When I append the data the numerical information in the attribute table for the appended portion is lost and replaced by null values. I have tried to export the portion I need to work on as a shape file and also as a feature class into the same geodatabase. I get the same issue in either case. I was wondering whether the issue with the null values is because the domain for the data fields is lost once I export? If I export the original data and the portion as a shapefile and then merge there isn't an issue. However, I need the domains used in the geodatabase. Any help appreciated. Thanks Sam
... View more
12-04-2013
07:23 PM
|
0
|
5
|
862
|
POST
|
How big are the rasters? You should probably try to run the Raster to polygon tool on a small subset to determine whether it's your tool or the size of the rasters. If the tool is still slow on the subset, then it's a problem with the tool. If it process the rasters perfectly you can probably set up a Python script that uses splits the raster up, converts to polygon, and then merges the polygonised raster back together. Let me know if you need a hand with the scripting...
... View more
05-30-2013
08:05 AM
|
2
|
0
|
2976
|
POST
|
I found that often the snapping tips only show at the middle of the screen. Try and rearrange what you're snapping to so it is in the centre of the screen. You can also use the trace tool, then you wouldn't need snapping 🙂
... View more
05-29-2013
07:36 PM
|
0
|
0
|
176
|
POST
|
ARRRRRRRRRRRRGGGGGGGGGGGGHHHHHHHHHHHHH!!!!!! Constantly crashing without warning... ArcGIS for Desktop Basic 10.1 with SP1. Been georeferencing for two days now, every time it crashes can save the map but it freezes the image, so I can't place anymore GCPs. Close the mxd down and then restart, georeferencing information is retained, but the GCPs do not show up... Anyone else having the same problem?
... View more
05-28-2013
12:58 PM
|
0
|
0
|
739
|
POST
|
Try adding in a (Float ...) like this: (Float(Power( [ "%FlowAcc_Flow%" ] * 10 / 21 , 0.4 )) * (Float(Power( Sin( "%Slope_Fill%" ) / 0.09 , 1.4 ) * 1.4) There is a Float tool in Model Builder you can add to the variables as well if needed. I am trying to use the model builder for the RUSLE Model. Well this is how the model looks like: [ATTACH=CONFIG]24064[/ATTACH] So in the raster calculator I have a formula which also involves the rasters generated in the model. This is error which I get .Could anyone tell me what could be going wrong. [ATTACH=CONFIG]24065[/ATTACH] Below is the forumla which I am using in the first raster calculator block: Power( [ "%FlowAcc_Flow%" ] * 10 / 21 , 0.4 ) * Power( Sin( "%Slope_Fill%" ) / 0.09 , 1.4 ) * 1.4 I am just trying to use it in the model and not as a python script. Regards, Senthil
... View more
05-05-2013
07:46 PM
|
0
|
0
|
272
|
POST
|
You can georeference your own image into the map and then digitise features from that...
... View more
05-05-2013
06:25 PM
|
0
|
0
|
300
|
POST
|
Opening the files: 1) Open the .msd you were given. 2) Put all the files you were given in a folder called "Test" on whichever directory you are working from. 3) Double click on any file name in the mxd, the Layer Properties dialogue box will open. 4) Click on the Source tab. 5) You can find the layer's file name here. Write it down. According to your description it will have a .shp or .tif file extension. 6) Close layer properties 7) You said a bunch of the files in the .mxd show up with a red "!" next to them. Click on the red "!" 😎 Navigate to your "Test" folder. 9) If your file had a .shp extension find the file name with .shp in you "Test" folder and double click it. This sets the data source for the rest of the files also. 10) If your file had a .tif extension, find the .tif file and double click it. 11) All you files should now appear in ArcGIS and the red "!" disappear. Georeferencing: If you're concerned about the Georeferencing RMSE try these steps. 1) Right click on the tool bars in ArcGIS and a drop down list of tool bars will appear. 2) Click on Georeferencing, if the tool bar name already has a black check mark next to it, it is already displayed in ArcGIS. 3) A tool bar will pop up or be present on screen in ArcGIS. 4) Click on Help, search for georeferencing and follow the instructions provided. 5) One thing is that the image you're using is already georeferenced, so you will either have to improve it, or delete the georeference information. 6) To delete georeference information, go to the files you were given and take only the .tif or .jpg file out and copy it into a folder called "Test2" in your directory. 7) Now use the Add Data Button in Arc GIS to add the image from the "Test2" folder. 😎 You probably won't see it pop up on screen. 9) If you zoom to the extent of your layers in ArcGIS. Click on the Globe symbol next to the zoom tools. Then go to the Georeferencing tool bar and hit the drop down box, and click on fit to display. 10) From here you have to match features between the image and the shapefiles. Try to pick road intersections, they're usually easily identified on both sets of data. 11) You can follow the help file from here. 12) Go to class... I apologise if you genuinely couldn't make your classes... I used to teach at a university and it annoys me when people can't be bothered to show up for class then expect help from others because they're too lazy to sit in a lecture for an hour. Hopefully you have a good reason not to be in class...
... View more
05-05-2013
05:59 PM
|
0
|
0
|
469
|
POST
|
I would try this for starters:
import arcpy, os
mapDoc = r"X:\GIS_Final\data\basedata\basemap\Maps\ArcGIS\Blockhouse\Blockhouse.mxd"
pdf = r"X:\GIS_Final\data\basedata\basemap\Maps\ArcGIS\Blockhouse\Blockhouse.pdf"
mxd = arcpy.mapping.MapDocument(mapDoc)
arcpy.mapping.ExportToPDF(mxd, pdf)
del mxd
I know I've just given variable names... After this go into the map document properties and copy the file location and paste into the mapDoc variable. I had the 'NoneType' error the other day and spent half an hour staring at it wondering what was wrong and then realised I'd missed a folder in the path.
... View more
05-04-2013
08:31 PM
|
0
|
0
|
1354
|
POST
|
# Update ST_TYPE_CD NULL fields with 999
cur = arcpy.UpdateCursor(db + "\\Civic_Addresses","ST_TYPE_CD IS NULL")
row = cur.next()
I think this section of code should be:
# Update ST_TYPE_CD NULL fields with 999
cur = arcpy.UpdateCursor(db + os.sep + "Civic_Addresses","ST_TYPE_CD IS NULL")
row = cur.next()
Remember to import the os module at the beginning of the script... Hope that works for you.
... View more
05-04-2013
08:12 PM
|
0
|
0
|
313
|
POST
|
EDITED: I managed to figure this out... My code now iterates through feature classes, requests a field name, calculates fields, deletes unwanted fields. And then joins the left over fields to each other with a spatial join. I was stuck on adding the interactive tkinter dialog box in the first loop, and the delete field text at the end of the first loop. I still have some to do on this, but thought I'd post the answers to my original question. Thought I'd put my code up for others: import Tkinter import tkSimpleDialog import arcpy from arcpy import env env.workspace = r'G:\TEST\Python_Test\Test.gdb\env' fcList = arcpy.ListFeatureClasses() for fc in fcList: print fc root = Tkinter.Tk() var = tkSimpleDialog.askstring("Field Name", "Enter Field Name") print var arcpy.AddField_management(fc, var, "TEXT", "", "", "50", "", "NULLABLE", "REQUIRED", "") print "Adding field name " + var + " to " + fc arcpy.CalculateField_management(fc, var, "\"Y\"", "PYTHON", "") print "Calculating field " + var + " to " + fc keep = ['OBJECTID', 'Shape', 'Tower', var, 'Shape_Area', 'Shape_Length'] discard = [] for field in [f.name for f in arcpy.ListFields(fc)if f.type <> 'OBJECTID']: if field not in keep: discard.append(field) arcpy.DeleteField_management(fc, discard) print "Deleted all fields except those specified" # Input variables for spatial join Buffer1 = r'G:\Test\Python_Test\Test.gdb\Buffer1' Buffer2 = r'G:\Test\Python_Test\Test.gdb\Buffer2' sjList = arcpy.ListFeatureClasses() # For loop for spatial join process for sj in sjList: # Spatial join between buffered points and feature arcpy.SpatialJoin_analysis(Buffer1, sj, Buffer2, "JOIN_ONE_TO_ONE", "KEEP_ALL") print "Completed spatial join " + sj # Delete Buffer1 containing no joined features arcpy.Delete_management(Buffer1, "FeatureClass") print "deleted Buffer1 " + sj # Copies Buffer2 containing joined features and outputs as Buffer1 arcpy.Copy_management(Buffer2, Buffer1, "") print "Copied Buffer2 to Buffer1 " + sj # Deletes Buffer2 to allow script to create Buffer2 in next iteration arcpy.Delete_management(Buffer2, "FeatureClass") print "Deleted Buffer2 " + sj
... View more
04-28-2013
08:27 AM
|
0
|
0
|
731
|
Title | Kudos | Posted |
---|---|---|
2 | 05-30-2013 08:05 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|