|
POST
|
One last place to look is the map itself, there may be an option set there that the designer doesn't override
... View more
12-01-2023
12:56 PM
|
1
|
0
|
1653
|
|
POST
|
It might be worth a quick trip to the official Python docs for file objects. In short, the "open" function returns a file object with various settings from the function, including the file's encoding. The "writer" object from the "csv" module is just a wrapper around the file object that translates raw CSV data to and from Python data types; you can write a CSV file without the wrapper but it makes it easier.
... View more
11-28-2023
01:49 PM
|
0
|
0
|
4541
|
|
POST
|
You open the file on line 27, try adding encoding="utf-8" as parameter and see if that fixes things.
... View more
11-27-2023
12:38 PM
|
0
|
0
|
4563
|
|
POST
|
Based on the encoding the CSV writer pulled in you're trying to write the data to a file that isn't Unicode compatible. Specify a suitable encoding when you open the file ("utf-8" works in virtually every case) and you should make more progress.
... View more
11-27-2023
11:27 AM
|
0
|
2
|
4578
|
|
POST
|
Here's a summary of Shapefiles from the docs: link. In short: a shapefile is made of multiple files all in the same folder with the same filename. ArcGIS applications will show these files as a single ".shp" item in the catalog as there's no reason to work with each file separately in the apps. Just make sure you always keep your files grouped together in the same folder and it should all work out. Each file will be modified as required based on the processing you do so you don't have to babysit anything.
... View more
11-24-2023
09:33 AM
|
0
|
1
|
2629
|
|
POST
|
This is a solid script, one minor tweak that can be handy with massive datasets is: fc_dataframe = DataFrame((row for row in SearchCursor(input_fc, final_fields, query)), columns=final_fields) This avoids creating a list for the data before it hits the DataFrame, saving a decent chunk of memory. Might even be faster in some cases.
... View more
11-15-2023
05:21 PM
|
0
|
1
|
8945
|
|
POST
|
From the SQL end, any registered table that's branch versioned will have some special fields to track the branch version info. In my environment the GDB_IS_DELETE field is a solid indicator, your EGDB configuration may create different fields. I'm not a SQL wizard but if you can get the schema for every table programmatically that should do you.
... View more
11-01-2023
02:03 PM
|
0
|
0
|
4408
|
|
POST
|
Ah, looks like I was beaten to the punch! As Josh pointed out, names with more than 1 space in them will lead to issues. My code dumps everything but the last token in the first name slot, with some tweaking you can get everything but the first token in the last name slot.
... View more
11-01-2023
08:33 AM
|
1
|
1
|
8280
|
|
POST
|
The output is an array of strings. Here's how to safely extract that data assuming arbitrary input: var tokens = Split("Your Data", " ");
var count = Count(tokens);
var first = null;
var last = null;
if (count == 1) {
first = tokens[0];
} else if (count == 2) {
first = tokens[0];
last = tokens[1];
} else if (count > 2) {
var first_array = [];
for (var i in tokens) {
if (i == count - 1) {
break;
}
Push(first_array, tokens[i]);
}
first = Concatenate(first_array, " ");
last = tokens[-1];
}
// Do what you need with first and last
... View more
11-01-2023
08:29 AM
|
1
|
2
|
8287
|
|
POST
|
If pyscripter doesn't pick up on an import (pretty common with complex libraries like arcgis) you'll have to tweak the hidden imports for your build. Start with something high up in the import path (e.g. "arcgis.gis") and then get more specific until it works.
... View more
10-31-2023
04:21 PM
|
1
|
0
|
2224
|
|
POST
|
The traditional archiving method? Nope, you're out of luck with the data table alone, you might be able to correlate the GDB_TO_DATE with other database or server logs but no guarantees. Branch Versioned tables have their own schema that includes the GDB_DELETED BY field which should list the culprit, if you can work out a migration plan I'd recommend switching.
... View more
10-30-2023
11:42 AM
|
0
|
0
|
1682
|
|
POST
|
SQL Expression parameters require a "Dependency" on the parameter you want to filter so it can populate the dialog, set that up and your parameter should work
... View more
10-30-2023
08:49 AM
|
0
|
1
|
1038
|
|
POST
|
If you have access to these Vector Tile options, give them a try. You'll get a reasonably performant Vector Tile layer along with a service that supports popups.
... View more
10-30-2023
08:40 AM
|
0
|
0
|
1400
|
|
POST
|
GIS is primarily concerned with the locations of object relative to a fixed reference. Or "the earth" to be specific. As such, the grid options are all pinned to the origin of your map's coordinate system, in the units of said system. That said, an option to center the grid relative to the start of a sketch seems like a handy function, hit up the Ideas area and it might get implemented down the road.
... View more
10-27-2023
01:01 PM
|
0
|
2
|
6866
|
|
POST
|
Officially, there's no way to change a MapService without going through the usual publishing routes. Unofficially, if you can get your script to access your ArcGIS Server's directory folder, you can navigate through the "arcgissystem\arcgisinput" tree to find the definition for your service. Buried somewhere in each service folder is the mapx and/or msd files used to render each service, as well as the service-level metadata files. If you edit every relevant files' minScale and maxScale properties then you should be good! Or you'll corrupt the service. Oh, don't forget mapx and msd files have no public interface so nothing's stopping your process from breaking after an errant update.
... View more
10-27-2023
08:30 AM
|
1
|
0
|
1398
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-09-2026 11:36 AM | |
| 1 | 09-08-2023 10:07 AM | |
| 3 | 03-26-2026 08:11 AM | |
| 2 | 03-12-2026 01:41 PM | |
| 1 | 03-06-2026 08:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|