|
POST
|
I would gave to agree with Curtus then, if the code i show above doesn't work on the YEUD field then it's probably above my knowledge. So, sorry, but I can't offer anything more, hopefully someone else can help you out. i did grab the code myself, not that I have an immediate need to do what you are trying to do, but it might be something I can use in the future. Nice little utility (at least with my data).
... View more
05-19-2015
10:11 PM
|
0
|
0
|
791
|
|
POST
|
Before you start creating a custom draw widget, have you looked to see what is already out there? Enhanced Draw Widget eDraw widget Also, check out Web AppBuilder Developer Edition – Customization Resource List for a list of other custom widgets and links to help docs for creating your own custom widgets.
... View more
05-19-2015
03:05 PM
|
1
|
0
|
2246
|
|
POST
|
Your welcome Venus. I'm not saying mine is the best solution however. So I'll be interested in seeing how overs (and you) organize their services. This format is different than I had 10.1 setup, but I do like it better. Problem is, of course, changing the structure broke many of our MXD links, which is why I'm trying to get my tools to work. (But that is another discussion). BTW - that is generally how I have them set up....but still seem to whip up a few additional folders when their is enough unique data to warrant their own folder....like "homeranges" below....and sometimes for gp services (still working on how I want to manage those. Also, since we have several custom print gp services, I've created a special folder for those. Still a bit fluid in structure.
... View more
05-19-2015
12:03 PM
|
2
|
1
|
2889
|
|
POST
|
Although not perfect, for this current go around (still 10.2.2) I set the folders up for common (department wide) and also by division. Each group has a _public (non-secure) and a _secure folder. Many of the _secure folders are still empty. Services like basemaps are in the dept_public folder. How do you address potential or actual duplicate services? always a possibility, but we don't have so many at this time (and limited number of users that can publish) so it is not an issue...yet. Do you provide Open Data map services and if yes, do you have similar map services elsewhere or try to steer your users to use the Open Data? We are not using Open Data maps services yet. We use a different spatial reference than the standard WMA. How do you organize services that need security vs. no security? For accessing secure services outside the firewall (web sites) I have a proxy setup. We use HTTPS and have the SSL cert that goes with it, but do not have SSO setup yet, so can be a bit of a hassle. Things are generally working, so SSO is pushed down the list of priorities right now.
... View more
05-19-2015
11:43 AM
|
1
|
3
|
2889
|
|
POST
|
You can also setup the License Manager to allow a Desktop client to "borrow" a license for a given period of time (and other ways you can make it more permanent, but I haven't used that). With the borrowing option, the client machine will need to attach to the license manger to select what they was to take "offline" and then can work with the local data while being disconnected from the network. We use this option for those going out in the field (remote sites and boats). One thing to be care of with the LM allowing borrowing, if you make the timeline too long, and something happens to the client machine (i.e. fries), there is no way to get the license back to the LM until the time expires or with esri intervention (i.e. customer service must fix with new authorization). The other option is to install a local copy of the LM on the client machine and authorize one of the licenses on that machine. However, another caution...the more you split up administrating of licenses (assuming these are concurrent licenses) the harder it can be to manage/administer them.....distribution and annual-maintenance included.
... View more
05-19-2015
09:40 AM
|
2
|
0
|
2584
|
|
POST
|
YYC, I'm not familiar with unicode, but I did test you code with a some of my own shape files against a field ACRES (format DOUBLE) and it worded without an error. What is the format of your "YEUD" field? The code I used (changed to match my data): import os
import fnmatch
import arcpy
rootPath = r"D:\Project\layers"
pattern = 'lake*.shp'
for root, dirs, files in os.walk(rootPath):
for filename in fnmatch.filter(files, pattern):
shp = os.path.join(root, filename)
if arcpy.ListFields(shp, "ACRES"):
print("{} has ACRES field".format(shp))
with arcpy.da.SearchCursor(shp, ["ACRES"]) as rows:
for row in rows:
if row[0] > 300000:
print("{} has a record with ACRES > 3000000".format(shp))
break My results were: D:\Project\layers\lakes.shp has ACRES field D:\Project\layers\lakes.shp has a record with ACRES > 3000000 D:\Project\layers\lake_10.shp has ACRES field D:\Project\layers\lake_11.shp has ACRES field
... View more
05-19-2015
08:12 AM
|
0
|
5
|
4029
|
|
DOC
|
I haven't tried it yet either, but I agree it looks interesting.
... View more
05-18-2015
06:35 PM
|
0
|
0
|
15038
|
|
DOC
|
This is from the readme.md This script is for building app that by WAB. =================================================== Why do you need to build your app? ------------------------------ Generally speaking, you may have 2 reasons: * To speed up your app's loading performance. * You do not want to share your source code to the end user. How to run? ------------------------------ * Make user you have `Node.js` and `JRE` installed. * Create a folder that is named `arcgis-js-api` under your app's root folder. * Download Dojo Toolkit SDK and put `dojo`, `dijit`, `dojox`, `util` under `arcgis-js-api`. The folder tree looks like this: ``` <app folder> |_arcgis-js-api |_dojo |_dijit |_dojox |_util |_buildScripts ``` * Open `cmd`, cd folder `buildScripts`, run `npm install`, then run `build.bat`. * Waiting for the build process to complete. The build output will be available at `<app folder>/buildOutput` folder. **Please note that bacause there is no ArcGIS JavaScript API source code available, there will be some errors when building, but the output works.**
... View more
05-18-2015
04:43 PM
|
0
|
0
|
15038
|
|
DOC
|
just a guess....proxy is probably setup for your web browser, but not your local machine.
... View more
05-18-2015
03:06 PM
|
0
|
0
|
14565
|
|
POST
|
Hi Venus, we also have a very convoluted architecture. I like you idea of using common local variable names connecting to the network connections, which may be mapped differently for different users. At least, that is what I think you are saying you do. Any chance you have you workflow written up that you can share (here, direct-message or in a blog)? We're in the process of moving our two main data drives (on loca/virtual server) to network drives (located who knows where). This has the potential of breaking thousands of mxd's of course. I'm working on tools to make that process simpler for all of us, including users that are not-so fluent in GIS, so anything I can do to make theirs (and therefore my) live and transition easier, the better. Thanks
... View more
05-18-2015
01:53 PM
|
0
|
0
|
2616
|
|
POST
|
Most likely you are hitting the limit of Excel. Can you split your dbf in half and read in each half separately? Once you get them into a data set (assuming a file GDB) append them back together.
... View more
05-18-2015
08:06 AM
|
0
|
1
|
3914
|
|
POST
|
YYC - It may be helpful for others if you post the full code where you are getting an error. The post this was spun off of shows Curtis' suggestion, but not you final code.
... View more
05-18-2015
07:52 AM
|
0
|
1
|
17928
|
|
POST
|
Check to make sure your indentations are correct and : are placed where they should be, etc. I've received similar errors when I've had just a typo several lines up. i know this question was spun off another with coding suggestions., so maybe something was missed when merging with your code. Errors can be deceiving sometimes, so worth a syntax check.
... View more
05-17-2015
09:21 AM
|
0
|
3
|
17928
|
|
POST
|
Are by chance trying to run it on a window server 2003? License manager 10.3 requires server 2008 or newer. I was trying to keep mine on the same server as I had my 10.2 (I.e. Upgrade) and ran into issues. My rolled it back to 10.2 until I could get a newer machine set up. If that isn't an issue, take a look at your 10.2 service.txt (off the top of my head....so might not be the exact name) and see if you had the first line or two customized. It may be you have a particular port assigned there to allow it to go thru the firewall. one last thing....if you used an IP address ti call the LM in desktop in the previous version, and ran into the bug (and hadn't applied the patch) that required an extra "dot" at the end, make sure the client doesn't still have the extra . even though they say it can be upgrades in place, I recommend deauthorizing.....doing the install....then author using in the new. I dI'd it bother ways ( multiple LMs) and felt the deauth/reauth to be a better approach. However, keep in mind that it takes a but of time fr the licenses to reappear on myesr (at least a good 30 minutes for ours) Just some thoughts and suggestions.
... View more
05-15-2015
02:21 PM
|
0
|
0
|
8555
|
|
POST
|
I ran into the TypeError: GPToolDialog() takes at most 1 argument (2 given error a while back which resulted in bug NIM089253. I was able to find a work around and get it to work.that worked and I posted it Tip: Python Addin - getting custom tools/toolbox to work - GPToolDialog I hope this helps. If not, I may have a few more tips and suggestions.
... View more
05-15-2015
11:02 AM
|
1
|
0
|
3688
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-08-2018 08:21 AM | |
| 1 | 10-07-2015 09:48 AM | |
| 1 | 10-25-2015 12:23 PM | |
| 1 | 11-02-2017 09:00 AM | |
| 1 | 11-04-2016 02:11 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-31-2025
04:56 PM
|