POST
|
What a weird idea, but whatever works for you. This does not work for me but maybe it will get you further along. It validates but as soon as I try to set project (line 2) it stops working. No errors, just returns empty labels import arcpy
project = arcpy.mp.ArcGISProject("CURRENT")
layout = project.listLayouts()[0] # Assuming you want the first layout
ms = layout.mapSeries
def FindLabel ( [PAGE_INDEX] ):
result = ""
curIndex = [PAGE_INDEX]
# current map page info
PageIndex = ms.pageRow.PageNumber
# I don't know what you are doing from here down :-)
PageBook = int(float(PageIndex[:3]))
PagePage = int(float(PageIndex[-2:]))
curBook = int(float(curIndex[:3]))
curPage = int(float(curIndex[-2:]))
if curBook != PageBook:
result = '<FNT scale="75">Bk.' + str(curBook) + '</FNT>\n' + str(curPage)
elif curPage != PagePage:
result = '<FNT scale="120">' + str(curPage) + '</FNT>'
return result
... View more
6 hours ago
|
0
|
0
|
32
|
POST
|
I found a workaround. Still no idea why setting X,Y fails but the workaround was pretty direct. I use CIM to copy the correct settings into the scalebar that shows on the map. default_scalebar_element = self.scalebars['Scalebar Default']
sb = self.find_scalebar(scale)
default_scalebar_element.visible = True
if sb != default_scalebar_element:
# Copy settings from desired scalebar
sb_cim = sb.getDefinition("V3")
df_cim = default_scalebar_element.getDefinition("V3")
df_cim.unitLabel = sb_cim.unitLabel
df_cim.units = sb_cim.units
default_scalebar_element.setDefinition(df_cim)
default_scalebar_element.elementWidth = sb.elementWidth I want a non-programmer to be able to make changes to the scalebar settings without modifying the Python and I think this gets us close to that. Setting the elementWidth in line 11 works for some reason 🙂 and is required so that the width of the bar works out to be exactly one mile.
... View more
12 hours ago
|
0
|
0
|
20
|
POST
|
I need to select from a group of scalebars. For example, I have a 1 mile scale bar for scale 1:24000 and a bar set to feet for 1:1200) I had similar code working in ArcMap. I am trying to port to ArcPro. #Here is a snippet of the relevant code
sb = self.find_scalebar(scale) # Using a scale 24000, find the scalebar element in the layout
default_scalebar_element.visible = True
if sb != default_scalebar_element:
default_scalebar_element.visible = False # Hide the default
# Move the desired scalebar into the layout
sb.elementPositionY = x
sb.elementPositionY = y
sb.visible = True # Make sure it's visible
print(scale, x, y, sb.elementPositionX, sb.elementPositionY) Lines 7,8 SHOULD change the scalebar position. They don't, what gets printed in 10 is this 24000 21.87 16.6 26.18 16.6 <--- x value DID NOT CHANGE?? The scale bar is still off the printout, which is 18x24" so the above code successfully detects it needs to fix the scale (line 4), turns OFF the default scalebar but then fails to move the selected scalebar. When running in a debugger, I can override the value after line 7 runs and push the value of X and voila! the scalebar appears. It's just lines 7,8 that fail. WHY DOES IT FAIL? Very mysterious. Running the script results in this Running the script in the debugger and manually setting X results in this; no code was changed. 4000 21.87 16.6 21.87 16.6 <--- value from print statement shows the new setting forced in To rule out unlikely interference from the debugger I ran it from the command line too. Still failed. I used ArcGIS Pro 3.2.2 and the standard unmodified conda environment arcgispro-py3
... View more
13 hours ago
|
0
|
1
|
39
|
POST
|
Normally it's easiest to install using a conda environment instead of pip. Using only pip you are making a lot more work for yourself. (What platform are you on, what are you trying to do? The reference to tar.gz makes me think it's Linux, but same goes for Windows or Linux - use conda.) Normally you don't need to build arcgis, you just install the conda package. It's possible to use pip in conda if you have to, for example, when there is no conda package. By this I mean first you set up conda and activate an environment, and use pip commands in that environment. When you do this the pip packages are installed into the conda environment so everything remains walled off in the conda space, both the conda and pip packages. No need for any separate pip virtual environment. But there is definitely a conda package for arcgis. conda search -c esri arcgis
Loading channels: done
# Name Version Build Channel
arcgis 0.1 py34_0 esri
arcgis 0.1 py35_0 esri
.
(many other versions omitted...)
.
.
arcgis 2.3.0 py311_6408 esri
arcgis 2.3.0 py39_6408 esri VSCode fully supports conda, I use it every day on both Linux and Windows.
... View more
yesterday
|
1
|
0
|
37
|
POST
|
I will forget this and then search and then find this note to myself: Hi future Brian! Didn't you retire yet? Why are you still doing GIS? Quit already. Thanks Dan
... View more
Friday
|
0
|
0
|
102
|
POST
|
This feels like one of those "there are no stupid questions" questions. But here we go. Docs show me how to ADD an extent indicator but not how to make one GO AWAY! I've checked the Layout ribbon and the Element properties for the Map Frame. Can't see any controls in there anywhere. I can insert ANOTHER but can't remove existing. I can see the extent but can't select it.
... View more
Friday
|
0
|
2
|
162
|
POST
|
I don't see the specs for the exact machine with the suffix "H0100LA" but overall it looks good. Get it with 32GB and strongly consider the NVIDIA graphics option. Not sure how the built in Intel Iris graphics will work for you. Maybe someone else can answer? In my experience any of the 3 CPU options are good i5 / i7 / i9 as they all have lots of cores. They all come with 512GB or 1TB NVME for storage, that's good. Take your pick based on your budget. More is better but sometimes waiting a year and upgrading is even a better deal. Like you might be able to get 4TB next year?
... View more
2 weeks ago
|
0
|
0
|
81
|
POST
|
I was having an otherwise good day until you mentioned accursed Field Mappings.
... View more
2 weeks ago
|
0
|
0
|
109
|
POST
|
We have a splash screen and that's been good enough for us. See it at https://delta.clatsopcounty.gov/apps/ClatsopCounty/ I think in 7 years we've had to tell people what it means maybe twice. Your idea of a watermark is good but for us, it would be solving a problem we don't experience. We leave the aerials turned off by default. You have to open the layers list and turn on the one you want. (We provide around 10 or 12, different areas and different years) I have to say though I've seen areas in other counties where the aerials are much more misaligned than here. I might feel differently if I lived there?
... View more
3 weeks ago
|
2
|
0
|
108
|
POST
|
Once upon a time I worked at an Esri Business Partner shop developing first responder navigation software. I was in the thick of ArcGIS Engine and C# and I hated it. I evaluated Network Analyst and routing. I wanted routing ON THE DEVICE because ! sometimes rural fire fighters go ! outside cell coverage! Imagine that. Software developers often have a smartphone physically attached to themselves and never leave urban cores. This means the concept of NO DATA was unimportant to everyone else. Being Android smartphone guys they went all in on Google and ending up dumping Esri. I moved on. @RipaliBatrayou seem to be just starting out but are heavily invested in using Enterprise? Personally I suggest you learn more first and try to estimate total costs. In my case I'd be including total pain. As in, the process of extracting data from OSM and converting it into an Esri network dataset EVERY DAY is a "total pain". I work in a 95% Esri shop right now managing an Enterprise server. The other 5% is my own Linux/open source/QGIS/GDAL etc tools. (The 5% really eases the total pain factor for me. I try to use the BEST tool for the job FOR ME not the cheapest or the most approved by Esri.) Take my comments with a grain of salt because I have not tried to import OSM into ESRI in a long time. Based on a long experience with Esri though, they change more slowly than I do so I think it's probably about the same. I evaluated using both Esri and open source alternatives. There are benefits each. YOU have to try them and see which one is the best fit in your case (which you so far fail to explain here so it's pointless for us to rattle on about the differences.) I can see a lot of pain though if you go the way you are headed: trying to do frequent imports from OSM and convert frequently to an Esri network dataset. It would make more sense (to me) to use PostGIS based tools for the routing part because it works well with OSM data. With the Esri network analyst approach it will require constant tuning and tweaking in the import and conversion of the data. With the PostGIS approach there will be less, but the routing engine is going to be more hands-on. When I was doing the evaluation, Esri had laughably bad tools for editing OSM data directly in ArcMap and Esri was uninterested in supporting PostGIS in any way. Today I would be looking very carefully at what each has to offer TO ME for MY use case and not automatically go with Network Analyst because I already have Enterprise. I think that is what you should be doing.
... View more
3 weeks ago
|
0
|
0
|
187
|
POST
|
I searched Pro pages and found this link hiding in there https://enterprise.arcgis.com/en/server/latest/get-started/windows/server-extensions.htm#ESRI_SECTION1_560E9C126111407190597AD053AB10B6 I think in your list there's quite a bit of work in #2 and #3. Unless someone is already using OSM in your city for routing, chances are there will be 100's or 1000's of intersections that need to be repaired and have impedances set. That's been my experience with plain old ESRI data. You have to code overpasses and underpasses and bridges differently for example. You have to make sure you don't route cars onto bike paths and bikes onto freeways. Impedances are for example weighting factors like speed limits or lane widths or "no left" turn restrictions. You don't want to route someone on a residential street at 25 mph when an expressway will get them there faster so it's not just "find the shortest route". As a fan and editor of OSM, I would urge you to edit OSM data directly each time you need a change made so that it gets better for all of us, that's the spirit of open source -- give back. That could be #7 #8 would be "go to #1" because by the time you get to #8 the OSM data has changed and you need to update. If you are being diligent you have to see what changed and revert or repair or accept the changes into your system.
... View more
3 weeks ago
|
2
|
0
|
227
|
POST
|
You have to pay for the Network Analyst extension for Enterprise, and to build the data you have to have Network Analyst for ArcGIS Pro too (It's two separate licenses). The Esri way for handling real time data is called "GeoEvent Server" https://enterprise.arcgis.com/en/geoevent/latest/get-started/what-is-arcgis-geoevent-server.htm I have never needed it but I've always assumed it would cost way more than I could justify. It is separate from ArcGIS Server (not just an extension) and they suggest you run it on a separate machine. Of course it depends on your own usage. Where would you be getting the traffic data? I just tried the traffic map in ArcGIS.com https://clatsopcounty.maps.arcgis.com/apps/mapviewer/index.html?webmap=bbdcd78953e5439985004023c8eda03d and found it to be meaningless for my area. Could be fine for you? I'd probably look at something from a third party like maybe WAZE? I'd look for "freemium" services because at my usage levels just about everything I need is free. I love being able to start free and try out services without investment. WAZE is "free" which means you pay them somehow probably by giving them all your data. Also they are owned by Google now but maybe you are okay with that.
... View more
3 weeks ago
|
0
|
0
|
122
|
POST
|
There are options to use maps based on OpenStreetMap in the Esri Living Atlas. I doubt Esri provides any routeable services using OpenStreetMap though. You might be better off looking at Mapbox.com for OpenStreetMap + navigation services.
... View more
3 weeks ago
|
0
|
2
|
247
|
POST
|
That's not built in to Enterprise, it is a function of Network Analyst extension.
... View more
3 weeks ago
|
0
|
1
|
140
|
POST
|
When looking at the list of requirements, ignore the "minimum" column and go for at least the "recommended" level. For example go for at LEAST 32 GB of RAM. Also best if you can get something that can be upgraded later (standard parts not soldered in, i.e. not a Macintosh M2) Things that unaffordable now will be cheap in a year and if it's a standard part like an NVME drive you can cheaply upgrade for more life.
... View more
3 weeks ago
|
2
|
1
|
145
|
Title | Kudos | Posted |
---|---|---|
1 | yesterday | |
1 | 06-16-2022 10:33 AM | |
2 | 3 weeks ago | |
2 | 3 weeks ago | |
2 | 3 weeks ago |
Online Status |
Offline
|
Date Last Visited |
5 hours ago
|