|
POST
|
It isn't just a comma or semicolon issue, the SearchCursor takes a list of strings, not a string of delimited fields.
... View more
01-23-2023
03:44 PM
|
1
|
0
|
1263
|
|
BLOG
|
@TeresaDolan, thanks for the update. I will definitely try them out soon because it was a feature I relied on extensively.
... View more
01-23-2023
09:33 AM
|
2
|
0
|
3866
|
|
POST
|
Is the polygon supposed to represent the areal coverage of the crown of a tree when they are mature? Tree crowns can be reasonably approximated by ellipses of different dimensions. Even if one wanted better representation of a tree crown than an ellipse, no tree crown in reality is going to have an "exact area."
... View more
01-19-2023
12:02 PM
|
0
|
1
|
6505
|
|
POST
|
You can't find an easy way to do it because there is no easy way to do it. It is regularity that allows for consistent shape and size polygons to be created. Once regularity goes out the window, there are countless shapes that can meet the same size. In your case since talking about parcels, which generally are more regular (even the irregular ones) than not, I am guessing you are not looking for some amorphous blob that is 2400 sq m exactly. For anyone to offer suggestions, you will have to elaborate more on the constraints around "irregular."
... View more
01-19-2023
06:31 AM
|
1
|
3
|
6538
|
|
POST
|
This is another good use case for my Idea for Esri to Add Python Regular Expression (re) Helpers to Calculate Field Dialog . Even without the "Helper" functions, you can still use re - Regular expression operations - Python 3 documentation by just importing the module in the code block: # Codeblock
import re
# Expression
re.match(r"^\s*\d*", !FULLNAME!).group()
... View more
01-16-2023
02:16 PM
|
0
|
0
|
3024
|
|
POST
|
As Dan already mentioned, this general approach will fail when there are other number sequences in the string. For example, an address like "100 South 900 West" will return "100900" with this approach.
... View more
01-16-2023
01:35 PM
|
0
|
0
|
3027
|
|
IDEA
|
I just tried your example on Pro 3.0.3, and I get "An invalid SQL statement was used" error. I am able to create the tables and create the view, but I can't add it to a map. Are you able to script out your steps so I can try running the code exactly the same way because something in our workflows is obviously different if it works for you but I get an error.
... View more
01-16-2023
01:28 PM
|
0
|
0
|
3564
|
|
IDEA
|
@Bud , regarding your specific query (excluding the LIMIT aspect of it), the query doesn't work because of limitations with SQL joins with file geodatabases. At least for the File Geodatabase API, Esri has always listed 2 known issues: GitHub - Esri/file-geodatabase-api: ... The File Geodatabase C++ API for Windows, MacOS and Linux Known Issues Concurrent access from Windows and Linux clients to the same File GeoDatabase can corrupt data. This combination should be avoided. SQL joins are not supported. It is likely that limitation in the FGDB API isn't just an FGDB API limitation, i.e., file geodatabases overall do not support SQL joins. Is a bullet point on a GitHub page sufficient documentation? I don't think so, I am guessing you don't think so, but it seems Esri does think so since they haven't materially improved their FGDB SQL documentation for many years.
... View more
01-16-2023
10:20 AM
|
0
|
0
|
3576
|
|
POST
|
Using the pseudo-code directly from page I link to: # Codeblock
def takewhile(predicate, iterable):
for x in iterable:
if predicate(x):
yield x
else:
break
# Expression
"".join(takewhile(str.isdigit, !FULLNAME!))
... View more
01-16-2023
09:59 AM
|
1
|
0
|
3047
|
|
POST
|
This isn't an issue with ArcGIS Pro, so maybe it is time to switch? Seriously though, the clock is ticking on ArcMap, and the clock long stopped for Python 2. For Python 2 (I would not recommend for Python 3), you could consider changing the default standard output to UTF-8 at the start of your script: import sys
import codecs
sys.stdout = codecs.getwriter("utf8")(sys.stdout) Prior to Python 3.6, Python used the ANSI APIs to interact with the Windows OS, which usually meant cp437 for English and many other locales. As you discovered, the euro symbol is not part of cp437, hence the error when trying to print or write from Python 2.7.14.
... View more
01-16-2023
09:45 AM
|
1
|
1
|
2231
|
|
POST
|
Several ways to go about it depending on how clean and/or complicated the data are in text fields. You can use itertools.takewhile() or just adopt the pseudo-code from it.
... View more
01-16-2023
09:01 AM
|
0
|
2
|
3062
|
|
IDEA
|
@JohannesLindner, I don't see people stumbling into the Helper functions, a user has to actively select it or type it in. If people are using Helper functions they know nothing about, that isn't a regular expression problem, that is a user problem. If potential audience size is a strong determining factor, how did ".as_integer_ratio" get put in the list? Also, Esri has introduced some hand-rolled Helpers like Sequential Number, which can have unexpected outcomes, so I can't see what issues there would be with adding a tried-and-true Python module.
... View more
01-12-2023
10:35 AM
|
0
|
0
|
3136
|
|
IDEA
|
I have been working with QGIS more, and one aspect I find really handy with that Field Calculator is the support for a few common regular expression string functions (regexp_matches, regexp_replace, regex_substr) natively within the dialog. I think having something similar in ArcGIS Pro's Calculate Field would be useful, but I also realize the implementation in Pro could not take the same form as in QGIS. After thinking about how various functions are implemented in Calculate Field currently, I think the simplest way to make regular expression use easier would be to add a few "re" Helpers in the Calculate Field dialog similar to how "math" Helpers are added. I realize someone can import re into a code block and define a function there and use regular expression, but I also think having re.findall, re.split, and re.sub usable in the Expression block via a Helper would make using regular expression more accessible to more users. If this were to be considered, I know the likely outcome would be using "re" since it is a native/core library, but it does look like Pro already comes bundled with "regex", and I have to say I find "regex" much better at portable Unicode syntax than the "re" library.
... View more
01-12-2023
08:12 AM
|
2
|
3
|
3182
|
|
POST
|
For two server roles, there definitely needs to be two authorization codes. Whether it is one license file with two codes or two license files with one code each is up to whoever is doing the licensing provisioning in My Esri.
... View more
01-10-2023
05:31 AM
|
0
|
2
|
2768
|
|
BLOG
|
Thanks @JesseCloutier for the note, appreciate it. I know I have been significantly less active the past couple or few years, but I still try to engage when I can find time. There are several reasons I am less active, but one of them is the not-so-new platform that EC is on when it changed from GeoNet to EC. I know the older platform had its fair share of issues, but the loss of Jive Streams was probably the biggest. I find managing the streams of content on EC without Streams just too clunky, and I end up getting frustrated sifting chaff to find what I really want to focus on. I know you are too new to understand what I am talking about it, but I never miss an opportunity to bring up this missing functionality in EC currently. And no, EC subscriptions are a poor alternative. Cheers.
... View more
01-05-2023
11:36 AM
|
18
|
0
|
50338
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 07-17-2026 06:54 AM | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|