POST
|
Ahh, thanks for the updated information, i guess i can stop trying to figure it out now.
... View more
11-21-2019
10:28 AM
|
0
|
0
|
73
|
POST
|
I just got the new mapviewer beta. I then loaded an existing collector application that I made last year. In this collector app i have several different feature and map services, one particular layer is a map service that is comprised of several individual layers. I do not seem to be able to access the individual layers that have been added as a group (a map service with a group of layers in it) In my screenshots below, the layer in mapviewer beta named "Drain Maint - Click to expand" is a map service that is comprised of the featureclasses in the 2nd screenshot. I would like to turn on/off some of the sub layers (like "barricade tickets" or "roll in locations") but it seems that I am only able to turn the entire group on/off. Can someone please explain how to access the individual layers in the map service to turn on/off. figure 1. screenshot of layers in mapviewer beta figure 2. individual layers that make up the
... View more
11-21-2019
08:30 AM
|
0
|
3
|
167
|
POST
|
yes we can do that. please post me your email address and I will email you. I dont want to post mine because web scrapers will pick it up and add me to junk mail. I am not too familiar with how this site works but maybe you can DM it to me as well. I have learned quite a few tricks with these REST service query scripts, so I would be happy to share them.
... View more
05-20-2019
12:22 PM
|
1
|
1
|
55
|
POST
|
yes you can have multiple URLS in the same script. Just be sure to change the name of the list (oidList) to something like oidList2 or the like, otherwise when it runs on the new URL it will overwrite what was in the original.
... View more
05-10-2019
11:37 AM
|
1
|
3
|
55
|
POST
|
i think the syntax is with the line above that, the line that starts with TO I think it is missing the closing "]" it should be TO = ['yourname@email.com']
... View more
04-10-2019
12:48 PM
|
0
|
7
|
45
|
POST
|
what line is it saying your error is in? i would also use pyscripter as your IDE, it gives much better information about errors. The script (lines 1-74) runs perfectly for me, i did not not mess with the smtp part at the bottom (lines 75-82) so i would imagine your syntax error is in lines 75 to 82. I would look up the documentation on SMTP and then make yours look like that.
... View more
04-10-2019
12:31 PM
|
0
|
9
|
45
|
POST
|
I took your script and rewrote some parts of it, the finished copy is located here: https://ufile.io/9emzw It queries your REST service and returns all records, from all the records it finds any record with a create date made in the last 10 days, it then creates a list of those and formats them into an email (body, subject, etc...) The rest of the email part you will have to put in your email server and credentials to complete. From: xxxxxxxxxxx\n To: xxxxxxxxxxxxxxxx\n Subject: You Have 4 New Service Request(s) Added to the GIS Records since: 2019-03-31 18:46:55\n \n1) Feature with ID # 0145 created on 2019-04-05 14:26:42 was added to the GIS Records. LOCATION: 1526 NW 89 CT\n\tSUMMARY: 201705896\r \n2) Feature with ID # 0145 created on 2019-04-05 20:20:23 was added to the GIS Records. LOCATION: 5200-5292 NW 84th Ave, Miami, Florida, 33166\n\tSUMMARY: TEST\r \n3) Feature with ID # 0144 created on 2019-04-05 20:23:20 was added to the GIS Records. LOCATION: 4800 NW 79th Ave, Miami, Florida, 33166\n\tSUMMARY: TEST\r \n4) Feature with ID # 0145 created on 2019-04-08 14:22:06 was added to the GIS Records. LOCATION: 8401 NW 53 TER\n\tSUMMARY: TEST\n' That is how the email will look (ignore the character tabs and escapes, outlook will format them as HTML)
... View more
04-10-2019
11:51 AM
|
0
|
11
|
45
|
POST
|
Can you turn the service back on, i tried to test your script but it is failing because it is disabled. but just from what i can see, you will need to change lines 35 and use your Created Date field instead of my ['Date_Notified'] field. Also you need to remove the zone = feat... line and fix line 40 to be something like if createDate > t: let me know when you turn the service back on and i will check some more.
... View more
04-08-2019
06:47 AM
|
0
|
14
|
45
|
POST
|
Send me the file with your changes and I will look at it. I am off for the weekend so it wont be till next week.
... View more
04-05-2019
02:59 PM
|
0
|
16
|
49
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|