|
POST
|
I’m looking forward to some solid boredom. But between now and the end of the year I’m scrambling to keep the latest greatest technology from hemorrhaging too much on the bleeding edge.
... View more
09-08-2021
06:32 PM
|
0
|
0
|
3154
|
|
POST
|
I have ArcGIS Pro 2.8.2 installed, and when I open a Python command window in my cloned env, and use conda install it installs okay and then imports okay. It's not part of the ArcGIS Pro install apparently. My spyder console: Visit: https://anaconda.org/anaconda/pyodbc
... View more
09-08-2021
03:57 PM
|
0
|
0
|
1711
|
|
POST
|
Correct. I don't see the features; I've tried points lines and polygons. @DanPatterson here is what it looks like:
... View more
09-08-2021
03:31 PM
|
0
|
6
|
3169
|
|
POST
|
According to the on line help, it shouldn't be a problem: If the spatial reference of the input feature class is different from that of the locator, the locator will transform the coordinates on the fly and try to find the match. The output feature class will be saved in the same spatial reference as the input feature class.... Emphasis on shouldn't be a problem.
... View more
09-08-2021
02:56 PM
|
1
|
1
|
2515
|
|
POST
|
As the subject line suggests: when I add a feature service layer from an arcgis server 10.7.1 to Pro 2.8.2 the features will not display. They show up in the TOC and the attribute tables are fine. A colleague using a Pro 2.7.x install gets them to display just fine, as I did at that version. Has anyone else experienced this?
... View more
09-08-2021
02:48 PM
|
0
|
8
|
3177
|
|
POST
|
Just an extra $00.02... If you simply use a continue statement in the except portion of you try/except block, you'll never know there was a problem. Toss in a print() statement or write to a log file that something went south is what I suggest doing.
... View more
09-08-2021
02:24 PM
|
0
|
0
|
1688
|
|
POST
|
file = open("K:\AMANDA\Merlin226Data\MCPA226Data1.csv","r")
replace with:
file = open(r"K:\AMANDA\Merlin226Data\MCPA226Data1.csv","r") Use r to specify 'raw' text to the python interpreter. Otherwise you have to escape those slashes in your path like this: file = open("K:\\AMANDA\\Merlin226Data\\MCPA226Data1.csv","r") I'm lazy and forgetful so when it comes to paths I always use r"C:\blah\blah\blah" so I don't have to remember which slash to use. Also, you'll notice I'm using a code window to past my python into. Expand the menu bar by clicking on the three dots; click on the </> symbol and choose python from the drop down list. Paste your code there. It makes it much easier for us to read and/or trouble shoot...
... View more
09-08-2021
02:13 PM
|
1
|
10
|
4117
|
|
POST
|
I don't have anything written off hand, but if I get a chance I'll see if I can scrape something together. But that code in the sample is pretty straight forward. Here is some translation for you: # Opening a file
file = open("gfg.txt","r") # this opens gfg.txt for read only
Counter = 0 # sets the Counter variable to 0 (zeror)
# Reading from file
Content = file.read() # sets another variable called Contente and reads
# everything from the read only file you just
#opened
CoList = Content.split("\n") #sets yet another variable called CoList; when
# the file is open and read, it's all in one
#line. This splits each record at the new line
for i in CoList:
if i:
Counter += 1
# this for loop just plows through all the records and each time there is a
# new record, the counter variable increases by one. At the end of the for
# loop, Counter is equal to the number of records. You can check this value
# in an If/Then block against some value you set:
if Counter < 1000:
exit
... View more
09-08-2021
01:33 PM
|
0
|
4
|
3728
|
|
POST
|
See if this helps you out: https://www.geeksforgeeks.org/count-number-of-lines-in-a-text-file-in-python/
... View more
09-08-2021
01:15 PM
|
0
|
3
|
3742
|
|
POST
|
What determines Sometimes this batch script doesn't work properly and the file doesn't have complete data As @MichaelVolz suggests, if you can first check that file for completeness right at the beginning, you could exit before anything else is done.
... View more
09-08-2021
12:59 PM
|
0
|
0
|
3746
|
|
POST
|
Are you at 2.8.0? If so, that release had a bunch of problems with adding packages and clones. Upgrade tp 2.8.2. I used the conda install command on my 2.8.2 install. I had installed 2.8 but backed it out when I ran into the problems.
... View more
09-07-2021
03:02 PM
|
0
|
0
|
5455
|
|
POST
|
Open a python command prompt window in your cloned environment and do it with a conda command: conda install spyder=5.0.4
... View more
09-07-2021
01:46 PM
|
0
|
1
|
5460
|
|
POST
|
Another argument for branch versioning: no compressing needed!!
... View more
09-07-2021
09:44 AM
|
0
|
0
|
4610
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-11-2018 07:12 AM | |
| 1 | 05-17-2021 11:18 AM | |
| 1 | 06-29-2021 11:42 AM | |
| 1 | 07-05-2012 07:49 AM | |
| 1 | 09-03-2016 06:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-19-2026
11:56 AM
|