POST
|
Creating a webmap with weather watches and warnings. When the weather watches are added to the map they are for the entire United States. We are only interested in seeing those that fall within a particular area. I am using a service from living atlas for the watches and warnings and have another feature layer polygon of our area of interest. How, on a portal webmap, do i only show those watches that fall within our area of interest?
... View more
02-14-2020
08:17 AM
|
0
|
1
|
634
|
POST
|
Curious if collector can be added to the portal app launcher and if so...how?
... View more
01-08-2020
06:06 AM
|
1
|
0
|
394
|
POST
|
Im not getting an error. The script just runs and nothing happens. It simply says it's still running.
... View more
09-08-2014
12:30 PM
|
0
|
0
|
840
|
POST
|
I had the following python script that sent out an email with an attachment. It worked fine for the last 6 months then suddenly has stopped working. Anyone have any ideas? import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email import Encoders import zipfile import os gmail_user = "xxx@gmail.com" gmail_pwd = "password" def mail(recipients, subject, text, attach): msg = MIMEMultipart() msg['Subject'] =subject msg['From'] = gmail_user msg['To'] = ", ".join(recipients) msg.attach(MIMEText(text)) part = MIMEBase('application', 'octet-stream') part.set_payload(open(attach, 'rb').read()) Encoders.encode_base64(part) part.add_header('Content-Disposition','attachment; filename="%s"' % os.path.basename(attach)) msg.attach(part) mailServer = smtplib.SMTP("smtp.gmail.com", 587) mailServer.ehlo() mailServer.starttls() mailServer.ehlo() mailServer.login(gmail_user, gmail_pwd) mailServer.sendmail(gmail_user, recipients, msg.as_string()) # Should be mailServer.quit(), but that crashes... mailServer.close() mail(['xxx@williams.com'], "KMZ Update", "attached is the google earth update", r"C:\Users\user\Desktop\GEupdate.kmz")
... View more
09-08-2014
07:56 AM
|
0
|
2
|
1444
|
POST
|
This seems to be working other than that the table that created has all zeros for the FMEAS and TMEAS and cant be sorted. It is however selecting the right parcels based on the Route Identifier, it is just not populating the measurement fields.
... View more
02-06-2013
10:30 AM
|
0
|
0
|
433
|
POST
|
I need to create a list of parcels that are intersected by a pipeline. That list has to be ordered from the beginning of the line to the end. I have hundreds of lines so automating this would be fantastic. I can create the list of parcel owners with a select by location but putting them in order is where im stumped. Is there a way to number polygons along a line from beginning to end?
... View more
02-05-2013
06:30 AM
|
0
|
3
|
779
|
POST
|
Thanks for the response, that works. Well it did until our IT group decided to change somethings. Now the feature classes in the staging database are all prefixed. So an example is in staging MGISSP.GISONEAST.PERM_ABA_Roads and the same feature class in Prod is MGISP.GISONEAST.PERM_ABA_Roads. Notice the difference at the beginning, staging is MGISSP and prod is MGISP. As a result your solution doesnt work any longer. Any other ideas? Again thanks for the help!
... View more
12-20-2012
03:24 AM
|
0
|
0
|
623
|
POST
|
So no responses on this? I'll assume i'm doing it correctly then?
... View more
12-11-2012
10:44 AM
|
0
|
0
|
623
|
POST
|
See the attachment. This is how I am currently doing it. It works fine, I just see it as inefficient. Shouldn't there be a way to say something like: If feature class name from database "A" matches feature class name from database "B" then append those features from "A" to "B". This way each append function doesn't have to be written out. Keep in mind I'm still learning python, I've only been involved with it for about a month now. Thanks, I appreciate the help.
... View more
12-07-2012
02:42 AM
|
0
|
0
|
623
|
POST
|
I have two databases (Staging and Prod) each containing the same feature classes. I want to append the data from each individual feature class in the staging.gdb to its matching feature class in the Prod.gdb. What is the most efficient way of writing this in python. Currently i am using the append tool for each individual feature class. this is making the script kind of long and a lot to maintain if something changes as I have 20 appends to account for the 20 different feature classes. Example Staging.gdb ........... Prod.gdb Wetlands --append--> Wetlands Streams --append--> Streams
... View more
12-06-2012
05:24 AM
|
0
|
6
|
973
|
POST
|
I am trying to use arcpy.FeatureClassToFeatureClass_conversion to move feature classes from one gdb to another. I would like to trim the first 16 characters from the feature class name. how do i do this? this is how i have it set up with of course the ????? being where i am unsure. # Set Workspace env.workspace = r"Database Connections\GENERAL_DATA - PROD.sde" # List Feature Classes fcList = arcpy.ListFeatureClasses ("MGISP.GISONEAST*") # Loop through each feature class for fc in fcList: # move features from sde to gis01 arcpy.FeatureClassToFeatureClass_conversion (fc, output_folder + "\\" + my_dir + "\\" + my_gdb, ???????? , "")
... View more
10-11-2012
10:27 AM
|
0
|
2
|
515
|
POST
|
Also I think copy features is the wrong process to use. What I want is to export the selected features to a new FC and put it into the same GDB
... View more
04-30-2012
09:20 AM
|
0
|
0
|
421
|
POST
|
This is my first adventure into Python scripting so excuse my ignorance. I am trying to loop through FC's in a GDB and select by an attribute then copy those feature classes into the GDB. Below is my script so far. Where my question lies is, in the 'SelectLayerByAttribute' process how do I specify the feature layer that was created in the previous step as the FC to do the selecting from? See where my question marks are below, that is where im unsure import arcpy from arcpy import env env.workspace = r"\\Wmsmonfs01\gisprod\SDE Data Files\PERMITTING_ABA.gdb" # Local Variables GDB = r"\\Wmsmonfs01\gisprod\SDE Data Files\PERMITTING_ABA.gdb" # Get a list of all feature classes fcList = arcpy.ListFeatureClasses() # Loop through each feature class in the GDB for fc in fcList: # Put in error trapping in case an error occurs when running tool try: # Make a layer from the feature classes arcpy.MakeFeatureLayer_management(fc, fc + '_LYR') # Select features by attribute arcpy.SelectLayerByAttribute_management("?????????", "NEW_SELECTION", "\"Source\" = 'GAI'") # Copy selected features to GDB arcpy.CopyFeatures_management("???????", GDB)
... View more
04-30-2012
06:06 AM
|
0
|
3
|
2919
|
Title | Kudos | Posted |
---|---|---|
1 | 01-08-2020 06:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|