|
POST
|
Stephen, Thanks for the reply. Where would I download the source code from?
... View more
06-12-2018
08:03 AM
|
0
|
1
|
1646
|
|
POST
|
In this webapp the input data displays in order that a user adds it. Is there a way to alphabetize it? I heard you can do this with the unique ID, but I'm struggling to see how. Here's how the data is displayed as of now:
... View more
06-12-2018
07:41 AM
|
0
|
3
|
1781
|
|
POST
|
I updated from ArcMap 10.4 to 10.5 and now Pythonwin is not opening. Here is the full error message: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "pywin\framework\startup.py", line 49, in <module>
__import__(moduleName)
File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", line 3, in <module>
import win32con
ImportError: No module named win32con
It's looks as though it is because it's still rooted in the ArcGIS 10.4 folder. What is the best way to fix this?
... View more
03-20-2018
06:36 AM
|
0
|
8
|
15409
|
|
POST
|
Thanks for the help. I'll have to come back to this because i've been put on another project that should come first.
... View more
03-07-2018
06:22 AM
|
0
|
0
|
2318
|
|
POST
|
https://community.esri.com/message/755067-arcpyfeatureclasstofeatureclassconversion
... View more
03-05-2018
01:37 PM
|
0
|
0
|
4751
|
|
POST
|
I'm wondering how to have a single parameter in the arcpy.FeatureClassToFeatureClass_conversion() function instead of repeating the block of code for two variables (Address_Points and Street), basically. From what I understand, the way this script is set up now, the outer loop prints once for each variable. Then it prints once for each variable again in the inner loop. It runs as I expect, namely with no errors and saves the two feature classes as shapefiles in the Test folder. import arcpy
arcpy.env.overwriteOutput = True
# variables
infeatures = [r'fullpath\gisedit.DBO.Street',
r'fullpath\gisedit.DBO.Address_Points']
outpath = r'fullpath\GISstaff\Jared\Test'
outfeatures = ['WillCounty_Streets', 'WillCounty_AddressPoints']
# loop and print feature classes
for infs in infeatures:
print infs
for otfs in outfeatures:
print otfs
arcpy.FeatureClassToFeatureClass_conversion(infs,outpath,otfs) Result: >>> fullpath\gisedit.DBO.Street
WillCounty_Streets
WillCounty_AddressPoints
fullpath\gisedit.DBO.Address_Points
WillCounty_Streets
WillCounty_AddressPoints How do I get the print out to look like this? WillCounty_Streets
WillCounty_AddressPoints
... View more
03-05-2018
01:36 PM
|
0
|
5
|
3594
|
|
POST
|
Joe, Same result. I put the question to stack exchange, where they often like to do a lot of nagging rather than helping. From what they were saying, though, I guess it's repeating because the outer loop loops once for each variable and then loops for each variable again for the inner loop. So, I guess that sort of draws out my main problem--I'm wondering how to use a list as a means to have one variable in the arcpy.FeatureClassToFeatureClass_conversion() function instead of repeating the block of code for each variable, basically. This wasn't ,my original question, so maybe I should post an additional one.
... View more
03-05-2018
01:01 PM
|
0
|
2
|
4751
|
|
POST
|
When I run it in regular mode both print statements are printed twice. I've attempted to use break after the for statements, but then it only runs the loop enough to print one of the two variables. I also tried to exit the loop with continue and pass, which didn't do anything.
... View more
03-05-2018
09:22 AM
|
0
|
4
|
4751
|
|
POST
|
That worked great, thanks. I adapted it to save two files as you can see in the variables, and it works fine. However, after running the debugger on it I noticed it's looping through the whole thing numerous times and taking longer than it should to complete. Maybe you can spot why that is? import arcpy
arcpy.env.overwriteOutput = True
# full path to connection file:
infeatures = ([r'Database Connections\Jared to Plainfield.sde\gisedit.DBO.MGU_Will\gisedit.DBO.Street',
r'Database Connections\Jared to Plainfield.sde\gisedit.DBO.MGU_Will\gisedit.DBO.Address_Points'])
outpath = r'\\gisfile\GISstaff\Jared\Test'
outfeatures = ['WillCounty_Streets', 'WillCounty_AddressPoints']
for infs in infeatures:
print infs
for otfs in outfeatures:
arcpy.FeatureClassToFeatureClass_conversion(infs,outpath,otfs)
print otfs
... View more
03-05-2018
08:15 AM
|
0
|
6
|
4751
|
|
POST
|
Is there a way using arcpy to grab feature classes directly from an SDE and copy to a folder? I have a real chunky way to do it, namely using these functions: arcpy.mapping.ListDataFrames()
arcpy.mapping.ListLayers()
arcpy.mapping.AddLayer()
arcpy.FeatureClassToFeatureClass_conversion()
The script overall adds features from an SDE to an mxd then saves them as shapefiles in a folder. How can I avoid using the mxd as a sort of springboard?
... View more
03-02-2018
02:36 PM
|
0
|
9
|
5227
|
|
POST
|
Found out Open Data supports the following file types: map services feature services image services CSVs PDFs & Word docs
... View more
03-01-2018
07:49 AM
|
1
|
0
|
1134
|
|
POST
|
Are the Data Categories restricted to a certain data type when using the Tag Query? I've added the tag Transportation to a few feature services in AGOL. I then added the same tag here in the Tag Query box. But, after clicking on this Data Category link in the website for testing I only get one result. I was expecting all the feature services to be there. I'm not sure what's going on.
... View more
02-28-2018
01:21 PM
|
0
|
1
|
1327
|
|
POST
|
I have the same problem, basically. I gave a few feature services the same tag in AGOL. Then in our Open Data Editor, in the Tag Query box, I put the same tag. When viewing the website I only see one result when there should be a few? I made sure the tags were spelled correctly and the data is set to view publicly. Do the Data Categories in Open Data only allow you to tag certain data types?
... View more
02-28-2018
12:36 PM
|
0
|
1
|
2547
|
|
POST
|
Thanks everybody. While Matthew's renaming link was pretty much what I was looking for I decided to go with Blake's version as it was right here and works great.
... View more
02-08-2018
06:52 AM
|
0
|
0
|
6958
|
|
POST
|
Matthew, EDIT: You answered my question, and that worked to name it correctly, but I still have a problem. I wasn't very clear but I actually want a script to put the date on existing zipfiles, this one being one of them in a folder full of them. I'm not sure if the write method is even what I should be doing.
... View more
02-07-2018
01:38 PM
|
0
|
1
|
6958
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 12:25 PM | |
| 1 | 05-04-2026 08:45 AM | |
| 1 | 04-20-2026 01:20 PM | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM |
| Online Status |
Online
|
| Date Last Visited |
6 hours ago
|