|
POST
|
I’ll look into that on Monday. Thanks Sent from my iPhone
... View more
05-29-2020
02:51 PM
|
0
|
0
|
1125
|
|
POST
|
python 2.7 import requests import urllib import urllib2 import json I should be able to hit the REST endpoint and return the JSON data. Also on the list is to return info on the services but for now i'm just trying to connect. Internally when I hit the server with a browser, it passes my single sign on creds and returns the JSON but not with python.
... View more
05-29-2020
01:19 PM
|
0
|
2
|
1125
|
|
POST
|
I started a new job and one of the tasks given to me was to write some python to work with their ArcServer REST services. I first thought it was token protected but I found out that they federated it with portal and it's all web tier authenticated. I'm trying to hit the url with requests but keep getting a need token response but even if i get a token it screams at the SSL true parameter. Any ideas?
... View more
05-29-2020
11:47 AM
|
0
|
4
|
1171
|
|
POST
|
This works, it's the simple solution that I overlooked. Instead I tried 20 different ways screwing around with the quotes and backslashes that just confused me. Thanks.
... View more
04-30-2020
02:19 PM
|
0
|
1
|
1580
|
|
POST
|
Hi, I want to subset my database and when I tried arcpy.SelectLayerByAttribute_management ("OHlyr3", "NEW_SELECTION", " [SUBTYPECD]" LIKE \'%Overhead\' ) I was getting an error on the sql expression. Than I found out the field "SUBTYPECD" is really a domain. What I need is to query against part of it's value like Overhead where I have "Single Phase Overhead" as a domain value It's coded number is 2 if that's easy. Any ideas?
... View more
04-30-2020
12:03 PM
|
0
|
6
|
1642
|
|
POST
|
Figured it out. You can set up an ISAPI handler to pass requests to py files to the python executable. Like step 7 here: https://stackoverflow.com/questions/6823316/python-on-iis-how This worked for me, and since the site is internal and not heavily used, and I'm still prototyping a solution, I was able to avoid installing a larger framework. After following the instructions I have a virtual folder called py, so I created a simple python file and placed it into this folder. I called it helloworld.py just to test it. Its contents. -----------helloworld.py script -------------------------- print('Content-Type: text/plain') print('') print('Hello, world!') print('') import os, sys GET={} args=os.getenv("QUERY_STRING").split('&') for arg in args: t=arg.split('=') if len(t)>1: k,v=arg.split('='); GET =v x = GET.get('user_name') print(x) ------------------------------------------------------------- Next, I opened a browser and typed: http://localhost/py/helloworld.py?user_name=Bill The page responded: Hello, world! Bill At this point, I have a python script on a web server that I can call by a url, and it runs. Next stop to create a webpage, that has a select (picklist) and a button, when pressed, fires off a ajax get to my script and have my script read the parameter and run. But that's just JavaScript.
... View more
05-02-2019
09:17 AM
|
1
|
0
|
1484
|
|
POST
|
Okay here is my 2 cents worth. I work for a state Dept of Health and teach advanced GIS at a local college (python/JavaScript). As a developer I work within the framework they have, which is basically a hybrid approach. We can not use ArcGIS.com because of the health information and almost all my apps are intranet only. ArcGIS.com is an easy way to take shapefiles and get a FeatureLayer without ArcServer but it carries a cost. Koop (https://github.com/koopjs/koop) was introduced to us at a Esri function, it looks like a great option for us as it lets us live in both worlds (Esri/Open-source) We use ArcMap for almost all internal GIS maps and data edits. We have a few services up on ArcServer but there is a strong open source push here to stretch budgets. We lean toward the Hybrid approach. Many times I will take Shapefiles and use QGIS to convert them to GeoJSON. Until Esri makes a good working tool/method to make GeoJSON, QGIS is my best option. If my data is CSV there are many CSV2GeoJSON on-line converters. Then I take the GeoJSON files and use it in Leaflet. (This is for static data that doesn’t change.) For Dynamic data we store it in Oracle or PostGIS, some simple PHP converts this to GeoJSON and we use this as a source for our apps. Many other state agencies serve their data using ArcServer and some of our federal partners also do this. Now for our applications, since the open-source angle is pushed, I use Leaflet. There is an Esri plug in to use their basemaps and ArcServer Services in it. This help us use our GeoJSON with the other services we need to use. I also teach advanced GIS, I basically have 8 weeks to teach the web mapping portion. To teach Envi and Geography students JavaScript in this time is tough. Using ArcGIS JS API is impossible to students who are not programmers, Leaflet JS is simple and gets them started, and it they like it they can then jump to the AMD/DOJO world later. At the same time I have 3000+ line apps that work great in Leaflet, that show it’s more then a lightweight app. I really do like the hybrid approach, I teach ArcGIS Pro for intro classes, and use the Esri products daily. However I use the tools that make my job easier and work within the constraints I have. Good Luck, Bill Bill Chappell, GISP ITS Group - GIS Developer 800 North Pearl Street- Room 222 Menands, NY 12204 William.Chappell@Its.ny.gov<mailto:William.Chappell@Its.ny.gov> <https://www.certmetrics.com/esri/public/badge.aspx?t=c&d=2013-01-16&i=14&ci=ESRI00102621> GeoNet <https://community.esri.com/?et=watches.email.thread> Re: create a webapp in arcgis 10.0 using javascript reply from Suhail Salim<https://community.esri.com/people/suhailbinsalim?et=watches.email.thread> in Web Developers - View the full discussion<https://community.esri.com/message/849778-re-create-a-webapp-in-arcgis-100-using-javascript?commentID=849778&et=watches.email.thread#comment-849778>
... View more
05-02-2019
05:30 AM
|
0
|
0
|
2423
|
|
POST
|
Hi, we're constantly exporting data out of our database. We have python scripts that accept parameters and then export and zip up the shapefiles files. From our dashboard, I'd like to put a form where we could select a type and then hit a button, this would then pass the parameter to my python script and create the shapefile for download. Why I can program in JS, Python, PHP and Node, I have not been able to get the python working on our server. I know there is Django, Flask, and others, but I'm not sure which one would be the best choice to work with ArcPy. I noticed the documentation is also all over the place, is there a cookbook or instructions that demonstrate this concept? I found the thread Exposing-Arcpy-Python-Script-to-Web but that was 8 years ago, anything newer and more complete?
... View more
05-01-2019
12:59 PM
|
0
|
1
|
1750
|
|
POST
|
Are you talking about ArcGIS Desktop or Server? Desktop needs server to create services that you can use ArcGIS JavaScript[pt API with. If you don't have ArcServer, you need something else to create services. It's a 2 part problem, the first is the data services and the second is the JavaScript web pages to display the services. For the data services, you can use ArcServer, ArcGIS On-line to host them, or KOOP which can create GeoJSON and/or FeatureLayer services. There is also methods to turn your Shapefiles into GeoJSON and use the GeoJSON files in your JavaScript web app. For the app, you can use Esri's ArcGIS JavaScript API, Leaflet JS with the Esri plugin, or even ArcGIS on-line. You have plenty of good options, Esri, open-Source, or a Hybrid, it all depends on your familiarity, budget, and skill set.
... View more
05-01-2019
12:11 PM
|
2
|
2
|
2423
|
|
POST
|
Migrated our servers to Arc Server 10.7 and it works great. We now have a long term fix.
... View more
05-01-2019
11:58 AM
|
0
|
0
|
421
|
|
POST
|
LOL, We're stumped and looking forward to what they find. It took 10+ people over 2 weeks to define the issue and come to solution. Using an older version is not the best long term solution but it works for the moment.
... View more
03-22-2019
12:17 PM
|
0
|
0
|
421
|
|
POST
|
I'm sorry it was actually 10.3.1 vs.10.6.1, Esri actually has two support calls on this. In 10.6.1 the map when panned would slowly fill in data, and then it would stop. If you moved the map then it crashed, In the console you could see the packet size increase and the packets were about 12MB, in 10.3.1 it stayed fluid and packets were about 56kb. In 10.6.1 it seemed to accumulate the memory used until it crashed. Tried Chrome, IE, Edge, it didn't make a difference.
... View more
03-22-2019
11:34 AM
|
0
|
2
|
1633
|
|
POST
|
Against the server. We have a dev, eval, and prod servers, all were tested in 10.6 and 10.3. The 10.6 had the issues on all 3 levels. Servers OS, Processors, and Ram identical, Same project produced data for the service. Same JavaScript code with the same settings in ArcServer's interface. We have been in contact with Esri support, call is under NYS DOH.
... View more
03-22-2019
11:03 AM
|
0
|
4
|
1633
|
|
POST
|
After a week of frustration, we noticed this worked well in ArcServer 10.3 and not in 10.6.1. We noticed the network packets would increase in size in 10.6 and were larger in 10.6. Moving around after a minute or so would crash the browser as it approached 2 GB. In 10.3, the browser memory did not increase and the packets were smaller. Running 2 servers, same data, save JS code, with the 2 different versions, showed us it was the ArcServer software. To confirm, we swapped software on the servers and it still showed it was the software. Now were hoping 10.7 fixes it.
... View more
03-22-2019
10:44 AM
|
0
|
6
|
3938
|
|
POST
|
In the actual app simplifyfactor is set. The page I posted it wasn't. I overlooked it in that page as I needed a test page in ten minutes. As for why I'm handling a dynamic layer as a featurelayer? Basically to symbolize on unique values and control line size.
... View more
03-11-2019
10:53 AM
|
0
|
1
|
1633
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-05-2016 09:27 AM | |
| 1 | 06-12-2020 07:41 AM | |
| 1 | 12-23-2016 05:32 AM | |
| 1 | 11-23-2015 08:44 AM | |
| 1 | 11-25-2015 01:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-22-2021
12:31 PM
|