|
POST
|
I think that the tagging idea, like Jim hinted at, would be difficult to implement. For example: 1) Would a newbie forum user even know if/how/where to tag their post? 2) Would placement of tags be enforced somehow? 3) How would tag spelling and syntax be enforced (Python vs. Pie-thon etc.) Many of us that contribute to the forum have a great deal of knowledge in specialty areas, and I personally feel that having more narrowly focused forum topics like: 1) Scripting 2) ModelBuilder 3) Geoprocessing Tools & Workflow would allow both posters and contributors alike to more efficiently concentrate their time/energy to find the best solutions to problems in the shortest amount of time.
... View more
08-12-2010
04:43 PM
|
0
|
0
|
887
|
|
POST
|
I've always used the text contained in the .prj file. That way you don't have to rely on having a valid path to the system-stored .prj files, that, for 64 bit OS, are stored in a different directory that a 32 bit OS! sr = 'PROJCS["NAD_1983_HARN_StatePlane_Washington_South_FIPS_4602_Feet",GEOGCS["GCS_North_American_1983_HARN",DATUM["D_North_American_1983_HARN",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",1640416.666666667],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-120.5],PARAMETER["Standard_Parallel_1",45.83333333333334],PARAMETER["Standard_Parallel_2",47.33333333333334],PARAMETER["Latitude_Of_Origin",45.33333333333334],UNIT["Foot_US",0.3048006096012192]]'
... View more
08-11-2010
02:14 PM
|
0
|
0
|
1844
|
|
POST
|
I think Michael's original question was that if he has a script like so: import sys x = sys.argv[1] y = sys.argv[2] print x + y How can the script be executed in the ArcGIS Python Window so that a user can specify the arguments for x and y? There doesn't seem to be a way for the python window to accept user input using the standard sys.argv[] method (like via Pythonwin) Correct me if I am wrong, but it seems like the Python window is basically just an interactive window (not a full blown IDE), and not really geared for running a full script in (just one line at a time).
... View more
08-11-2010
12:39 PM
|
0
|
0
|
1532
|
|
POST
|
But through what dialog in the Python window can a users specify values for sys.argv[whataver]? >>> def func(a,b): ... print str(a) + " - " + str(b) ... >>> func(1,2) 1 - 2 >>> import sys >>> func(sys.argv[1],sys.argv[2]) Runtime error <type 'exceptions.IndexError'>: list index out of range
... View more
08-11-2010
11:51 AM
|
0
|
0
|
3394
|
|
POST
|
But how do you specify values for sys.argv[whatever] via the Python window in ArcMap? It seems as if you can't...
... View more
08-11-2010
11:44 AM
|
0
|
0
|
3394
|
|
POST
|
I haven't messed with it much, but I don't think there is a way of passing arguments to a script when you execute it via the python window! If I am right, ESRI must have overlooked this one. I think your options would then be to: 1. Hard code the arguments in the script, and run it via the python window. 2. If your arguments are simple, like a single number or something, use the input() method. Example: test = input("Provide a number") 3. Run the script in Pythonwin, wing, etc. where you can specify the parameters. 4. Build a toolbox and use arcpy.getparameterastext() in you code to accept the arguments from the toolbox.
... View more
08-11-2010
09:09 AM
|
0
|
0
|
3394
|
|
POST
|
Not sure what inQuest is, but would it be possible to just import the raw DD coordinates (in .dbf format)straight into ArcGIS using th AddXYeventLayer tool, and then reprojecting using the ESRI prj tools?
... View more
08-11-2010
08:47 AM
|
0
|
0
|
2741
|
|
POST
|
Make sure you are specifying a negative longitude value if your coordinates are west (left) of the prime meridian. For example, using decimal degrees, Washington State (Pacific Coast) in the U.S. is located at about -120.0 longitude and 47.0 latitude.
... View more
08-11-2010
08:23 AM
|
0
|
0
|
2741
|
|
POST
|
BTW: I think Jim deserves a Forum MVP medal next to his name - almost 400 posts! Thanks for your all hard work with the new system:)
... View more
08-10-2010
09:56 PM
|
0
|
0
|
1321
|
|
POST
|
One argument for splitting the existing Geoprocessing forum (or at least reorganizing it) is that it currently represents nearly 50% of all the forum threads/posts on the Functions topic. If you were a lumper, it could be argued that many of the other functions such as Geocoding, Map Automation, Interoperability, Imagery/Raster data, etc. should also be included as aspects of Geoprocessing. Doing so, however, would raise the "market share" of the Geoprocessing posts to roughly 65-70% of all the forum posts! Personally, I am a splitter rather than a lumper. My suggestion is to keep the Geoprocessing forum as is and create a new forum simply called "Scripting". Keeping with the spirit of v10 (arcpy scripting being a major aspect), this potential Scripting forum would be the go-to place for posts regarding geoprocessing, mapping, spatial analyst, and geostatistical scripting. Scripting (that is automating GIS "work" using a relatively high level computer language such as AML, Avenue, Python, etc.) is a central component of any reputable GIS. I for one am extremely excited that ESRI is putting a renewed emphasis on scripting in v10 (arcpy.mapping). Doing so is truly helping to rekindle the GIS Analyst caste that was, I think, somewhat lost when ESRI abandoned their old scripting languages like AML and Avenue and jumped head first into using ArcObjects and "real" programming languages as their default GIS automation technique. Scripting deserves it's own forum.
... View more
08-10-2010
09:50 PM
|
0
|
0
|
1321
|
|
POST
|
Jason: So is getattr() and setattr() preferable to the esri cursor methods of getvalue() and setvalue(). That is to say, are they faster or for some other reason better? Regardless, seems pretty cool!
... View more
08-10-2010
09:56 AM
|
0
|
0
|
824
|
|
POST
|
Just an FYI but I gave up on ModelBuilder a long time ago because of constant stuff like this. But... Maybe a quick work around would be to have a condition in the Model that if the specified output exists, then delete it 1st, then run the guts of the Model?
... View more
08-10-2010
08:55 AM
|
0
|
0
|
1839
|
|
POST
|
ArcMap and ArcCatalog seem to cling to locks on FCs (especially in PGDB and sometimes even FGDB). So if you had run your model, and had the result FC added to ArcMap, and then rerun your model (using the same output fc path) I bet that it is having trouble deleting it, since it had been added to the active session of ArcMap at one point. Try exiting ArcMap completely, restart it, and then rerun the Model. Does it work then?
... View more
08-10-2010
08:29 AM
|
0
|
0
|
1839
|
|
POST
|
Hi, I noticed that the ArcGIS "Functions" forum topics have the following breakdown as of 08/09/2010: (apologies for the poor formatting...) FORUM----------------------------THREADS%-------POSTS% ------------------------------------------------------------------- CAD Data--------------------------1.00%------------0.64% Cartography-----------------------4.44%------------4.36% Data Models-----------------------3.08%------------2.14% Enterprise GIS--------------------0.79%------------0.42% Geocoding-------------------------0.36%------------0.16% Geodatabases/ArcSDE------------27.22%----------27.94% Geoprocessing--------------------45.27%-----------48.01% Imagery/Raster Data-------------12.61%-----------12.11% Interoperability and Standards--1.29%-------------0.73% Map Automation------------------3.15%-------------3.18% Map Templates--------------------0.79%-------------0.31% Nautical Mapping------------------0.00%-------------0.00% (Nautical Mapping?) ---------------------------------------------------------------- TOTAL------------------------------100%--------------100% Based on this summary, it is quite easy to see that the Geoprocessing forum topic has by far the most traffic in terms of thread topics and "chatter" about those topics. I would like to formally request that esri split the existing Geoprocessing forum topic into at least three subtopics: 1. Geoprocessing (General) 2. ModelBuilder 3. Scripting (e.g. Python) - Personally I would put 'Map Automation via Python scripting' in here as well since it is so related... Another simpler option would be to just create a new forum topic called "Scripting" 🙂 As a dedicated contributor to the poorly organized existing Geoprocessing forum, I find it hard to continue my contributions when there is an ever-increasing volume of seemingly non-relevant thread posts and an ever increasing level of disorganization within (in it's current state) an EXTREEMLY broad topic that obviously needs to be split into at least several sub-topics. in it's current incarnation, it includes nearly half of all the posts in the entire ArcGIS "Functions" category. Seems a bit out of whack to me... Also, I have to say it: I am baffled that there is an apparently new forum topic called "Nautical Mapping" (0 posts so far), and NOT a dedicated ModelBuilder or Scripting forum. Cmon... Nautical Mapping? :confused: What the?!?! Please esri - I am not alone in my frustrations here...
... View more
08-09-2010
03:30 PM
|
0
|
81
|
8022
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-29-2024 08:23 AM | |
| 1 | 08-29-2024 08:21 AM | |
| 1 | 02-13-2012 09:06 AM | |
| 2 | 10-05-2010 07:50 PM | |
| 1 | 02-08-2012 03:09 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-30-2024
12:25 AM
|