|
POST
|
Thanks for the input Curtis! The problem is my model has a set of parameters. I have an Internal and an External ArcGIS Web Server, using a Web Adaptor for External maps. Surely there is someway to get this Python script running on the Internal server?
... View more
10-07-2014
10:57 AM
|
0
|
1
|
1045
|
|
POST
|
I should add I have never run a Python script on a web-server. I have a PHP background, lots of Javascript, and HTML (of course). So I'm clueless on this end for Python-ating...
... View more
10-03-2014
11:45 AM
|
0
|
0
|
1045
|
|
POST
|
I have a Model that I run once a month, per a request from our Police department, that queries and dumps a shapefile to a specific folder. Currently, the officer calls in a ServiceTicket, tells me what month, and I run the model and close the ticket. What I would like to do is start to Automate this process. I have the Python script (exported from the Model) in a web folder. I have converted the folder to an Application (with an Application pool). I have an HTML form I threw together... <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Crime Export Form</title> </head> <body> <form action="CrimeExports.py" method="POST"> <input type="text" name="Start_Month" value="January"/> <input type="text" name="Start_Year" value="2014" /> <input type="text" name="End_Month" value="February" /> <input type="text" name="End_Year" value="2014" /> <input type="text" name="Folder_to_store_export" value="\\path\to\where\I\want\to\save" /> <input type="submit" /> </form> </body> </html> It does absolutely nothing.
... View more
10-03-2014
11:44 AM
|
0
|
5
|
4722
|
|
POST
|
The folder containing the proxy is an application. The proxy has been configured correctly (exactly like our internal working one) and all other searches work correctly. What makes NO sense at all is what we had to do to get this to work. In locator.js around line 1565 there is this line...
activityQueryString += "1=1";
If you change it to this...
activityQueryString += " 1=1 ";
It works... The addition or TWO SPACES makes it work. Now I would love to take credit for it but my (much more highly experienced GIS professional) co-worker and our GIS DBA-guy both stayed PAST 6:41pm (when I left) until around 8pm and figured that out. So my gripe here is "ESRI"... SERIOUSLY?!
... View more
09-25-2014
07:20 AM
|
1
|
0
|
3154
|
|
POST
|
Ok. We've got the ParksFinder to work on an INTERNAL only server. Now we are trying to get an public facing version working and hitting one final snag... Search by Activity. We have everything upgraded (as of today). ArcGIS Server 10.2.2 / Web Adaptor 10.2.2 / 10.2 SDE GeoDB We are running a Clustered 10.2.2 Server setup through our 10.2.2 Web Adaptor (in case that matters). But when I select to Search by Activity I get weird errors. Failed to load resource: net::ERR_CONNECTION_RESET http://maps.cityoftulsa.org/ParksFinder/proxy.ashx?http://maps.cityoftulsa.org/gis/rest/services/LGDM/Parks/FeatureServer/0/query?f=json&where=RESTROOM%20%3D%20%27Yes%27%20AND%201%3D1&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=NAME We have tried everything we can think of... I'm on hour 11 and my brain is now fried.
... View more
09-24-2014
04:24 PM
|
0
|
10
|
7770
|
|
POST
|
I've done my reading, googled, searched the GeoNet and more. I'm trying to stay ahead of the game by finding problems before I hit them. We have two 10.1 ArcGIS for Server servers and a 10.1 ArcGIS for Server with 10.1 Web Adaptor as well. They all currently connect (with no issues) to a 10.2 SDE SQL GeoDatabase. We are updating to 10.2 on EVERYTHING soon and I am trying to find out if anyone has encountered any issues that I should be aware of with the updates? ANY heads up that anyone can give me would be GREATLY appreciated. Links are welcome!
... View more
09-15-2014
07:40 AM
|
0
|
1
|
4046
|
|
POST
|
So we've got an odd and anomalous situation going on. We have two servers. One is TEST and one is DEV. On the TEST server, the map works fine. It DID throw an error, but I added some TRY / CATCH to the mix and it solved the issue. The EXACT same code was copied over to DEV (I know... going backwards, whole nother story) and suddenly it doesn't work. The code in question that is throwing the error is: var wkid = features[0].geometry.spatialReference.wkid; Now, after this code there is a block of code with IF THEN / ELSE blocks that runs this: function(feature) { point = esri.geometry.geographicToWebMercator(feature.geometry); ( or point = feature.geometry; based on the WKID returned ) point.attributes = feature.attributes; this._features.push(point); } The interesting thing is that on the TEST where this works, I added in some console.log calls with objToString (custom function) to print me out some human readable details and so I see all of the objects being sent to the screen. Now in DEV this SAME function, pulling same data, drops a javascript error alert window. [object Error] When you click the OK button it pauses and then proceeds to correctly fill the screen. So the code AFTER the WKID part runs like it's supposed to on TEST, but on DEV it throws that error... and then runs like it's supposed to. On TEST I was able to stop this kind of tom foolery by placing a TRY / CATCH and all goes as planned. But on DEV I still get the error. Oh, on DEV (where the error is being thrown) I should note that I added a console.log call to objToString(features[0].geometry) and geometry is null. Yet after you click OK on the error window the dots fill the map?!?!?! Confused.
... View more
09-11-2014
09:50 AM
|
0
|
2
|
3578
|
|
POST
|
Is there a place in the LGIM to track Personal Storm Shelters? In the case of an emergency (flood, tornado, etc) where shelters could end up buried under debris and rubble having shelters available on a map for location makes a lot of sense. Is there some place (yet) to store these locations within the LGIM?
... View more
09-05-2014
01:07 PM
|
0
|
0
|
3106
|
|
POST
|
On an interesting side note... I just discovered a weird side-effect. After doing the spatial join I get a SINGLE point for ALMOST ALL Intersections. ALMOST ALL... EXCEPT those that are like I described above... For instance... Where Admiral Blvd splits North and South Phoenix Ave I have 3 points. Intersection Point N PHOENIX AVE S PHOENIX AVE Intersection Point N PHOENIX AVE W ADMIRAL BLVD Intersection Point S PHOENIX AVE W ADMIRAL BLVD The street names above that are bolded I would like to merge into a single point... The ones struck through should be removed. Any ideas how to get to this?
... View more
09-04-2014
01:52 PM
|
0
|
0
|
601
|
|
POST
|
My question is now... what about 3 and 4 way intersections? For instance, we have some streets that span a directional split... North Memorial Drive and South Memorial Drive. So technically, where Memorial INTERSECTS with our split point which is parallel to Admiral I should have... Intersection 1 South Memorial Drive North Memorial Drive West Admiral Drive Any ideas here?
... View more
09-04-2014
01:44 PM
|
0
|
1
|
601
|
|
POST
|
Darren Wiens wrote:
Hmmm it works for me.
Imagine I have only two points A and B that are coincident.
Run Spatial Join using the points as both Target and Join features, and JOIN_ONE_TO_MANY as the join operation.
You now have 4 points, with all of the columns from the Target feature (including a column for street name) and all of the columns from the Join features (including its street name). The four features are: A joined to A, A joined to B, B joined to A, and B joined to B. Only one of these will have a Target_FID greater than Join_FID. This is the only point you want to keep (i.e. select all of the points with Target_FID < Join_FID, and delete them). You now have one feature with two fields, each with a street name.
Apparently 'branching' doesn't copy a post to a new thread but instead MOVES it. I'm copying-and-pasting this post so I can set it as the CORRECT ANSWER to my original question... again!
... View more
09-04-2014
01:41 PM
|
0
|
0
|
1215
|
|
POST
|
I thought that by branching your reply that had the answer I would start a new thread with a COPY of your answer as the beginning of that thread. INSTEAD it MOVED your reply here as it's own thread... So frustrating.
... View more
09-04-2014
01:39 PM
|
0
|
0
|
1215
|
|
POST
|
I was actually doing that and getting very odd results. I would create a new field... map it to the street name field from the input dataset... I would create another new field... also map it to the street name field... same data set... But I would set the type of connection as a JOIN and I set the delimiter to ' and '... and I would do this about a total of 4 times... and I would get... A A and B A and A and B A and A and A and B I need it to return 1 feature with 2 fields... A B frustrated.
... View more
09-03-2014
01:47 PM
|
0
|
0
|
1215
|
|
POST
|
Ok. Fixed it. Got it. It all requires you to pick your URL's carefully. For instance... Our Internal (only) map is located on an internal server and referenced with: http://<internalserver>.main.cityoftulsa.org/ParksFinder The services were being referenced via the direct: http://<internalserver>:6080/<web adaptor>/rest/services/blah blah blah So I was using that URL in the Operational Data Layers. And everything was working fine (excluding the comments). We noticed that I was able to go to that URL ( http://<internalserver>:6080/<web adaptor>/rest/services/blah ) and add in /applyEdits then copy and paste the JSON code (from a failed post attempt) into the adds textfield and voila! It created a comment. But the app couldn't. So I found the fully formed URL for the ParksFinder app... modified it to get the rest services the same way the app was referencing them... http://<internalserver>.main.cityoftulsa.org:6080/<web adaptor>/rest/services/blah and voila. Everything now works.
... View more
09-03-2014
01:43 PM
|
0
|
0
|
963
|
|
POST
|
So we pretty much have everything working (thanks to @Scott_Rawhouser and his guide to attaching photos) except for comments. In our ParksFinder config.js file, on line 132 (the URL for CommentsLayer) if I use this URL: http://<internalserver>:6080/<webadaptor>/rest/services/LGDM/Parks/MapServer/1 Then the map works splendidly up until I attempt to submit a comment. Where I get the following error: "Unable to add comments. Comments table is either absent or does not have write access." Which isn't true. Because if I then travel to the URL for the 'applyEdits' for that service... http://<internalserver>:6080/<webadaptor>/rest/services/LGDM/Parks/FeatureServer/1/applyEdits And I copy and paste the JSON from a failed attempt: [{"attributes":{"FACILITYID":"Adm-29","COMMENTS":"Testing.","SUBMITDT":1409763555973,"RANK":0}}] I get success=true and suddenly that park DOES have a comment. But if I set the URL in my config.js file to be for a FeatureServer vs. MapServer then simply clicking on a Park (to bring up the popup InfoWindow) locks up my app with the spinning bar of death. Any idea why I can post comments to a Park through the REST Services applyEdits URL but not through the application?!
... View more
09-03-2014
10:01 AM
|
0
|
2
|
4519
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2015 08:51 AM | |
| 1 | 06-02-2016 02:00 PM | |
| 1 | 10-09-2015 07:43 AM | |
| 1 | 10-09-2015 09:42 AM | |
| 1 | 02-09-2016 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|