IDEA
|
In Story Map Collections, I feel like a user should be able to change story maps being numbered to just dots since not all stories are in chronological order or come in a specific order. For example, I am showing crime over the last 30 days in my city but it's not like assaults are over arsons for any reason.
... View more
12-19-2023
08:32 AM
|
0
|
0
|
105
|
POST
|
Oops, I had forgotten a folder name in the path. Thank you so much for all your help!!
... View more
03-09-2021
07:07 AM
|
0
|
0
|
430
|
POST
|
filename = 'TEST12142020.pdf' filepath = r'G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\{}'.format(filename) file_object = open(filepath, 'rb') print ('Opened file') # Sending the file session.cwd('/srv/ftp/pub/crimemaps') print('Sending file') session.storbinary('STOR ' + filename, file_object) print('Sent file') ERROR: <module> session.cwd('/srv/ftp/pub/crimemaps') File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 562, in cwd return self.voidcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 254, in voidcmd return self.voidresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 229, in voidresp resp = self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 550 Can't change directory to /srv/ftp/pub/crimemaps: No such file or directory
... View more
03-09-2021
06:58 AM
|
0
|
1
|
2170
|
POST
|
Hello, Could you help me with one more thing? I need to put it in a certain folder within the ftp site but cannot figure out the code. Thoughts? Thanks! The folder I need it in: CODE: # Sending the file print('Sending file') session.storbinary('STOR {/srv/ftp/pub/gis/crimemaps}' + filename, file_object) print('Sent file') ERROR: <module> session.storbinary('STOR {ftp.milwaukee.gov/srv/ftp/pub/gis/crimemaps}' + filename, file_object) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 471, in storbinary conn = self.transfercmd(cmd, rest) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 376, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 339, in ntransfercmd resp = self.sendcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 249, in sendcmd return self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 553 Can't open that file: No such file or directory
... View more
03-09-2021
06:42 AM
|
0
|
3
|
2176
|
POST
|
That worked! Perfect, thank you. I still have some finagling but this is definitely one step closer. If you don't mind, one more question. It uploaded the file but then I got an error about my closing of the file. I tried closing filepath, file_object, and filename and all got the error saying it received a string. # Choosing file to send filename = 'TEST12142020.pdf' filepath = r'C:\temp\{}'.format(filename) file_object = open(filepath, 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filename, file_object) print('Sent file') # Closing file and ftp file.close(filepath) print('Closing file') session.quit() ERROR: Logging in Opened file Sending file Sent file Traceback (most recent call last): File "C:\temp\UploadtoFTPTest.py", line 19, in <module> file.close(filepath) TypeError: descriptor 'close' requires a 'file' object but received a 'str'
... View more
03-04-2021
12:21 PM
|
0
|
6
|
2249
|
POST
|
CODE: # Choosing file to send filepath = r'C:\temp\TEST12142020.pdf' file_object = open(filepath, 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filepath, file_object) print('Sent file') ERROR: Logging in Opened file Sending file Traceback (most recent call last): File "C:\temp\UploadtoFTPTest.py", line 14, in <module> session.storbinary('STOR ' + filepath, file_object) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 471, in storbinary conn = self.transfercmd(cmd, rest) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 376, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 339, in ntransfercmd resp = self.sendcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 249, in sendcmd return self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 553 Prohibited file name: C:\temp\TEST12142020.pdf
... View more
03-04-2021
11:17 AM
|
0
|
9
|
2257
|
POST
|
Hmmm, looks like the same error. Maybe I need to run it some way different than Python 27? Or my Python version is getting mixed up because I have both ArcMap and ArcPro installed on my computer? CODE: # Choosing file to send filepath = r'G:\GIS\filepath\TEST12142020.pdf' file_object = open(filepath, 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filepath, file_object) print('Sent file') ERROR: Logging in Opened file Sending file Traceback (most recent call last): File "G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\UploadtoFTPTest.py", line 14, in <module> session.storbinary('STOR ' + filepath, file_object) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 471, in storbinary conn = self.transfercmd(cmd, rest) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 376, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 339, in ntransfercmd resp = self.sendcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 249, in sendcmd return self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 553 Prohibited file name: G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\TEST12142020.pdf
... View more
03-04-2021
11:10 AM
|
0
|
11
|
3093
|
POST
|
Ah, my bad. You are right. I changed it to this: filepath = r'G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts' file_object = open(r'G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\TEST12142020.pdf', 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filepath, file_object) print('Sent file') And still got this for an error: Logging in Opened file Sending file Traceback (most recent call last): File "G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\UploadtoFTPTest.py", line 14, in <module> session.storbinary('STOR ' + filepath, file_object) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 471, in storbinary conn = self.transfercmd(cmd, rest) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 376, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 339, in ntransfercmd resp = self.sendcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 249, in sendcmd return self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 553 Prohibited file name: G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts
... View more
03-04-2021
11:00 AM
|
0
|
13
|
3097
|
POST
|
Ah, I didn't realize that filepath and file_object were actualy variable names that it would recognize, not just what I chose to call it. I am running the code through Notepad++ with Run on Python27 and got these errors: Logging in Opened file Sending file Traceback (most recent call last): File "G:\GIS\Departments\ItmdGis\Users\hbubac\Data and Scripts\Crime Maps\new scripts\UploadtoFTPTest.py", line 14, in <module> session.storbinary('STOR ' + filepath, file_object) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 471, in storbinary conn = self.transfercmd(cmd, rest) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 376, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 339, in ntransfercmd resp = self.sendcmd(cmd) File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 249, in sendcmd return self.getresp() File "C:\Python27\ArcGIS10.5\lib\ftplib.py", line 224, in getresp raise error_perm, resp ftplib.error_perm: 553 Prohibited file name: G:\\GIS\\Departments\\ItmdGis\\Users\\hbubac\\Data and Scripts\\Crime Maps\\new scripts
... View more
03-04-2021
10:54 AM
|
0
|
15
|
3099
|
POST
|
I also get the same error doing this: # Choosing file to send filename = open(r'G:\\GIS\\filepath\\TEST12142020.pdf', 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filename) print('Sent file')
... View more
03-04-2021
09:19 AM
|
0
|
0
|
3148
|
POST
|
Hey Dan, so like this? I get the same error. filepath = r'G:\\GIS\\filepath' file_object = open(r'G:\\GIS\\filepath\\TEST12142020.pdf', 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + file_object, filepath) print('Sent file')
... View more
03-04-2021
09:17 AM
|
0
|
18
|
3148
|
POST
|
Hello, I am trying to upload a PDF using Python to an outside FTP server. However, I keep getting the error about concatenating string and and file objects. CODE: import ftplib # Logging into ftp site with login information session = ftplib.FTP("host","username","password") print('Logging in') # Choosing file to send filename = "TEST12142020.pdf" filepath = open(r'G:\\GIS\\filepath\\TEST12142020.pdf', 'rb') print ('Opened file') # Sending the file print('Sending file') session.storbinary('STOR ' + filepath, filename) print('Sent file') # Closing file and ftp file.close() print('Closing file') session.quit() ERROR: Logging in Opened file Sending file Traceback (most recent call last): File "G:\pathname\UploadtoFTPTest.py", line 14, in <module> session.storbinary('STOR ' + filepath, filename) TypeError: cannot concatenate 'str' and 'file' objects
... View more
03-04-2021
08:53 AM
|
0
|
21
|
5850
|
POST
|
One of the planners with the city that I am in would like to incorporate a 3D view of our downtown. She mostly uses GIS for PDF maps that are overlaid with our zoning data. We are aware of 3D scenes but have not worked with them extensively. Our Esri reps have mentioned Urban to use and are willing to do a demo but we do not want to buy the product just for this project. Has anyone else done a smaller scale 3D scene or map without needed the Urban license?
... View more
03-03-2021
12:52 PM
|
0
|
2
|
590
|
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|