POST
|
Dan, yes, I realize that limitation to transformation of a CAD drawing, but the solution I'm seeking is to project, or otherwise. That said, this IS a 2 point solution, if I can take into account the rotation and scale. Sort of reversing from a ground to grid editing solution. This is a linear shift, rotation and scale, there is no skew. The end result will be a linear similarity/affine, if I could somehow find the coordinate pair. Anyhow, I understand the limitation of the CAD transformation. Technically you can MANUALLY add a shift or rotation: https://pro.arcgis.com/en/pro-app/latest/help/data/cad/georeferencing-cad-data.htm see the "Rotate, move, or scale the dataset" section. But I'm hoping to take the given rotation/shift/scale data I have and use it than to manually fudge this thing. I have to believe there is a way to take a CAD drawing that is in a projection and has the ground to grid properties defined and get it into a projected coordinate space. It might not be through the CAD georeferencing tool, either. This can't be a new idea, or problem.. especially for those of us that work with CAD data from engineers in the civil engineering world. Hopefully one of them sees this!!!
... View more
03-24-2021
06:30 PM
|
0
|
0
|
1342
|
POST
|
I need help figuring out how to get CAD data that has a shift, rotation and scale factor based on this projection. NAD_1983_StatePlane_Montana_FIPS_2500_Feet_Intl WKID: 2256 Basically I have a drawing that is based on the above projection, but it has a coordinate truncation (shift), scale factor AND rotation set to the CAD .dwg provided. Ordinarily, I would create a world file that could take 2 coordinate pairs and then that would georeference the CAD drawing. That worked when I simply had a coordinate shift. (often the engineers would truncate coordinates to make the designs space smaller in CAD) Now I'm given data with a scale factor AND a rotation included with coordinate truncation. How do I get this CAD drawing to reside in map projected space? What's the best way to do that? Basically, I was provided a PDF control table and info as well as whatever they used to set the ground to grid translation in AutoCAD. (they gave a screen shot) I think I can figure out the scale factor - but the rotation is problematic to me - I'm presuming it's rotating on the origin? I want to add this CAD data to a map with other projected data so I can digitize data from it. Any advice is appreciated.
... View more
03-24-2021
04:48 PM
|
0
|
2
|
1372
|
POST
|
yeah, I thought about that, but I'm hoping for a programmatic solution that doesn't require altering data, but your suggestion is appreciated!
... View more
03-08-2021
07:17 AM
|
0
|
0
|
1179
|
POST
|
Using ArcGIS Pro 2.7.1 with the Maplex labeling engine. Trying to figure out how to force the maximum width of a label. I have created a label expression in Arcade: "Species: " + DomainName($feature, 'spp')
+TextFormatting.NewLine
+ "Height: " + $feature.height
+TextFormatting.NewLine
+"DBH: " +$feature.dbh
+TextFormatting.NewLine
+"Notes: " + $feature.longtermnotes And the output I get is: Species: spruce, engelmann Height: 55 DBH: 28 Notes: Already half way through life span in this planting strip. How can I force a paragraph width of say 25 characters? I'm trying to avoid a long label width from "longtermnotes" field (last label line) I have found when I go to the label properties: Position: Stack options, that no mater what I put in for the "Maximum Characters per line" value that it won't limit the width of the label. Is there a programmatic way to do that with Arcade or a text formatting tag?
... View more
03-04-2021
11:37 AM
|
1
|
3
|
1248
|
POST
|
I'm not converting my ArcMap styles as Favorites yet. I will give that a shot. But, I'll still stand by the idea that one day, both products will not be installed. One day it will ONLY be Pro. What happens to the ArcMap/Desktop styles then? I think to enrich ArcGIS Pro, converting/adding however these styles from ArcGIS Desktop during ArcGIS Pro installation would be ideal.
... View more
01-19-2021
05:33 PM
|
1
|
0
|
1694
|
IDEA
|
I'm not converting my ArcMap styles as Favorites yet. I will give that a shot. But, I'll still stand by the idea that one day, both products will not be installed. One day it will ONLY be Pro. What happens to the ArcMap/Desktop styles then? I think to enrich ArcGIS Pro, converting/adding however these styles from ArcGIS Desktop during ArcGIS Pro installation would be ideal.
... View more
01-19-2021
05:33 PM
|
0
|
0
|
2305
|
POST
|
Added an "idea" Support if you want! https://community.esri.com/t5/arcgis-pro-ideas/include-arcgis-desktop-10-x-styles-with-arcgis-pro/idi-p/1012923/jump-to/first-unread-message
... View more
12-30-2020
08:02 AM
|
0
|
0
|
1776
|
IDEA
|
We all know that if we want to use ArcGIS Desktop 10.x styles with ArcGIS Pro, we must import them into our Pro project as an imported style. Pro also has a limited number of native styles in contrast to what Desktop has available. It's one more step for map creation in ArcGIS Pro, when you want to use a symbology from a style that was available in ArcMap (ArcGIS Desktop 10.x) Many users, such as myself, rely on those Desktop styles to author maps and it's perplexing why so many styles were made available in one platform, but not another. Further, if the effort is to win the hearts and minds of seasoned Desktop users to convert to Pro, it would seem logical to make sure the styles and symbologies that are available in ArcMap are natively accessible in ArcGIS Pro. One day, we won't need to install ArcGIS Desktop because Pro has all the functionality we need, hopefully? Migrating the existing styles from ArcGIS Desktop to ArcGIS Pro would help that transition!
... View more
12-30-2020
07:59 AM
|
16
|
12
|
2566
|
POST
|
Dan, yeah, I know you can import them. But like mentioned, if you happen to use a lot of those styles (and I have to believe many of us do) when you upgrade versions of Pro, you lose those imports.. It's a little thing. But of of those many "oh, I gotta do that first" to get maps rolling they way you had them. My only other issue is that if ESRI wants us all to migrate over to Pro from Desktop, then moving data over like this would be helpful. Seems to conflict with that desire to keep reaching back to Desktop for Styles. You know?
... View more
12-30-2020
07:42 AM
|
0
|
3
|
1780
|
POST
|
Hi, Quick question. Why are the Styles in ArcGIS Desktop (10.7, 10.8, etc) ArcMap not provided with ArcGIS Pro? I find it to be an irritation to have to constantly add these styles back into projects, especially after updates to ArcGIS Pro are made.... Am I missing an easier path to ensuring the numerous Styles in Desktop are available to Pro? Is anyone else frustrated they have to keep going back to Desktop styles, and wonder why they are not natively available in Pro installations? Thanks!
... View more
12-28-2020
04:11 PM
|
2
|
9
|
1834
|
POST
|
I am learning to append and use fieldmap, flieldmappings to get my fields squared away. basically I'm appending data into a "shell" featureclass that is empty. There's only a few fields I'm appending and trying to match. I'm using this post as a reference: Append Tool and Field Mapping ... Help? Examples? I'm able to add ONE field change with this script: (append and target layers are defined earlier in the script as well as importing the arpy library # field map and append
append_layer = outputclip
target_layer = out_name
#This is like defining an empty grid of fields you see when you run it manually in the toolbox
fieldmappings = arcpy.FieldMappings()
#Add the target datasets fields to the field map table (Like when you manually choose a tagert layer in the toolbox)
fieldmappings.addTable(target_layer)
#Add the append datasets fields to the field map table (Like when you manually choose a tagert layer in the toolbox)
fieldmappings.addTable(append_layer)
#At this point, you have a grid like when you run it manually saved in your field mappings.
#####Lets map a field that have different names!
#Find which "Index" the field has as we cant refer to them by name when editing the data only index
field_to_map_index = fieldmappings.findFieldMapIndex("PropertyAddress") #Field name that exists in the target layer but not append data source!
#Grab "A copy" of the field map object for this particular field
field_to_map = fieldmappings.getFieldMap(field_to_map_index)
#Update its data source to add the input from the the append layer
field_to_map.addInputField(append_layer, "Addy_Concat")
#####Lets update the master field map using this updated copy of a field
fieldmappings.replaceFieldMap(field_to_map_index, field_to_map)
#Create a list of append datasets and run the the tool
arcpy.Append_management(append_layer, target_layer, "NO_TEST", fieldmappings, "1")
So, this works for me. I end up appending the "Addy_Concat" field into the "PropertyAddress" field. Great. But I have 3 other fields to do this with. So I used this: # field matching for append
# Name the Append and Target Layer (target layer is named in the ArcGIS Pro Map)
append_layer = outputclip
target_layer = out_name
fieldmappings = arcpy.FieldMappings()
# Like when you manually choose a layer in the toolbox and it adds the fields to grid
fieldmappings.addTable(target_layer)
fieldmappings.addTable(append_layer)
# Lets map fields that have different names!
list_of_fields_we_will_map = []
# list_of_fields_we_will_map.append(( append layer field name, target layer field name)
list_of_fields_we_will_map.append(('Addy_Concat', 'PropertyAddress'))
#list_of_fields_we_will_map.append(('CMUNITY', 'PropertyCity'))
#list_of_fields_we_will_map.append(('ZipCode', 'PropertyZip'))
print(*list_of_fields_we_will_map, sep = ", ")
for field_map in list_of_fields_we_will_map:
# Find the fields index by name.
field_to_map_index = fieldmappings.findFieldMapIndex(field_map[0])
# Grab "A copy" of the current field map object for this particular field
field_to_map = fieldmappings.getFieldMap(field_to_map_index)
# Update its data source to add the input from the the append layer
field_to_map.addInputField(append_layer, field_map[1])
# We edited a copy, update our data grid object with it
fieldmappings.replaceFieldMap(field_to_map_index, field_to_map)
# Create a list of append datasets and run the the tool - the "1" at the end is for the subtype.
inData = [append_layer]
arcpy.Append_management(inData, target_layer, "NO_TEST", fieldmappings, "1")
I keep on getting this error: Traceback (most recent call last): File "<string>", line 119, in <module> File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\arcobjects\arcobjects.py", line 666, in addInputField return convertArcObjectToPythonObject(self._arc_object.AddInputField(*gp_fixargs(args))) RuntimeError: FieldMap: Error in adding input field to field map Specifically, it's this line (119) that's causing issues: field_to_map.addInputField(append_layer, field_map[1]) If you noticed, I remarked out my multi fields to let the list just take the one field match combo that worked in the simpler, non-list script. Still throws this error. I'm confused how this list loops works. Not sure how it's figuring out position 0,1 with the case like ('Addy_Concat', 'PropertyAddress') Any ideas what I'm doing wrong here? Or what I can do to try accomplish what I want to do? There must be an easier way to field match when appending.
... View more
09-22-2020
05:13 PM
|
0
|
2
|
2929
|
POST
|
Luke, or anyone else... I too am learning to append and user fieldmap, flieldmappings to get my fields squared away. basically I'm appending data into a "shell" featureclass that is empty. There's only a few fields I'm appending and trying to match. I'm able to add ONE field change with this script: (append and target layers are defined earlier in the script as well as importing the arpy library # field map and append
append_layer = outputclip
target_layer = out_name
#This is like defining an empty grid of fields you see when you run it manually in the toolbox
fieldmappings = arcpy.FieldMappings()
#Add the target datasets fields to the field map table (Like when you manually choose a tagert layer in the toolbox)
fieldmappings.addTable(target_layer)
#Add the append datasets fields to the field map table (Like when you manually choose a tagert layer in the toolbox)
fieldmappings.addTable(append_layer)
#At this point, you have a grid like when you run it manually saved in your field mappings.
#####Lets map a field that have different names!
#Find which "Index" the field has as we cant refer to them by name when editing the data only index
field_to_map_index = fieldmappings.findFieldMapIndex("PropertyAddress") #Field name that exists in the target layer but not append data source!
#Grab "A copy" of the field map object for this particular field
field_to_map = fieldmappings.getFieldMap(field_to_map_index)
#Update its data source to add the input from the the append layer
field_to_map.addInputField(append_layer, "Addy_Concat")
#####Lets update the master field map using this updated copy of a field
fieldmappings.replaceFieldMap(field_to_map_index, field_to_map)
#Create a list of append datasets and run the the tool
arcpy.Append_management(append_layer, target_layer, "NO_TEST", fieldmappings, "1") So, this works for me. I end up appending the "Addy_Concat" field into the "PropertyAddress" field. Great. But I have 3 other fields to do this with. So I used this: # field matching for append
# Name the Append and Target Layer (target layer is named in the ArcGIS Pro Map)
append_layer = outputclip
target_layer = out_name
fieldmappings = arcpy.FieldMappings()
# Like when you manually choose a layer in the toolbox and it adds the fields to grid
fieldmappings.addTable(target_layer)
fieldmappings.addTable(append_layer)
# Lets map fields that have different names!
list_of_fields_we_will_map = []
# list_of_fields_we_will_map.append(( append layer field name, target layer field name)
list_of_fields_we_will_map.append(('Addy_Concat', 'PropertyAddress'))
#list_of_fields_we_will_map.append(('CMUNITY', 'PropertyCity'))
#list_of_fields_we_will_map.append(('ZipCode', 'PropertyZip'))
print(*list_of_fields_we_will_map, sep = ", ")
for field_map in list_of_fields_we_will_map:
# Find the fields index by name.
field_to_map_index = fieldmappings.findFieldMapIndex(field_map[0])
# Grab "A copy" of the current field map object for this particular field
field_to_map = fieldmappings.getFieldMap(field_to_map_index)
# Update its data source to add the input from the the append layer
field_to_map.addInputField(append_layer, field_map[1])
# We edited a copy, update our data grid object with it
fieldmappings.replaceFieldMap(field_to_map_index, field_to_map)
# Create a list of append datasets and run the the tool - the "1" at the end is for the subtype.
inData = [append_layer]
arcpy.Append_management(inData, target_layer, "NO_TEST", fieldmappings, "1") I keep on getting this error: Traceback (most recent call last): File "<string>", line 119, in <module> File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\arcobjects\arcobjects.py", line 666, in addInputField return convertArcObjectToPythonObject(self._arc_object.AddInputField(*gp_fixargs(args))) RuntimeError: FieldMap: Error in adding input field to field map Specifically, it's this line (119) that's causing issues: field_to_map.addInputField(append_layer, field_map[1]) If you noticed, I remarked out my multi fields to let the list just take the one field match combo that worked in the simpler, non-list script. Still throws this error. I'm confused how this list loops works. Not sure how it's figuring out position 0,1 with the case like ('Addy_Concat', 'PropertyAddress') Any ideas what I'm doing wrong here? Or what I can do to try accomplish what I want to do?
... View more
09-22-2020
04:57 PM
|
0
|
1
|
9710
|
POST
|
Looking for suggestion for best practices regarding using Data Store and File Geodatabases with my Enterprise. My environment: Enterprise 10.8 deployment. (Portal, Data Store, Server, etc) Some of my data is kept in an Enterprise Postgresql geodatabase, but not all. (I use the enterprise geodatabase for versioning workflows and geodatabase replication) Here's what I'm doing... Currently, I'm constructing a file geodatabase based on nightly downloads from my county's GIS and tax dept. Basically, they provide updated shape files and text files that I end up massaging (clipping and re-projecting) and exporting that data via Python scripts so that the data I want resides in a unified coherent file geodatabase. This data is not static and though the schema doesn't change, my scripts wholesale replace the feature classes in the geodatabase nightly. Let's call this the "county FGDB" With this data, I want to create a "map image layer" (no need to edit this data, so doesn't need be be a feature layer) to use as reference layers in Portal web maps. Seems I have 2 options... One is to create a map in ArcGIS Pro that references the data in my ever changing "county FGDB" from above. When I publish the layer I should reference the folder that holds my FGDB and ensure it is registered in my "Portal items" as a Data Store. That way, if my "county FGDB" changes, (as it gets updated in my script) the "map image service" layers also update with the data. I do not have to republish the layers. Kind of an easy way to deal with serving this data. The other option is to add this data via script to my Postgresql Enterprise geodatabase.... and register it with my Portal. Same deal, if the data changes, the layer changes... Question though... What will lend better performance? I've no idea how my FGDB is served with Data Store. Will there be a performance penalty to access the data from there? I'm confused how my file geodatabase is interacting with the Data store. Seems weird. Magical. Wondering if there is a bottleneck if many people start accessing the "map image layer". using this method. Would I be better off, performance-wise, to keep this data in my Enterprise PostGresql geodatabase and publish from it? I have no good reason to keep this data in my Enterprise geodatabase, if I do not have to. I won't be versioning it, it won't be replicated. I have also toyed with the idea of importing my file geodatabase directly into my Portal, but that seems to only create hosted "feature layers", which I do not need. My users will not edit this data and I don't want to be impeded by the symbology limitations of "feature layers" vs "map image layers". And further, I'd have to script some process to replace the hosted feature layers from a newly minted geodatabase nightly... Seems possible, but maybe not exactly what I want to do, since there will be no map images layers. Any advise or observations about my workflow? Is anyone else doing something like this?
... View more
09-01-2020
01:51 PM
|
1
|
0
|
382
|
IDEA
|
Give ability to snap a hosted feature layer to a "map image layer" of vector data in a editable web map (or web map application) Example - some data is published as "read only" map images layers. I publish a read-only service of Parcel Polygons, which are vectors. Would be great if a corresponding hosted feature layer (or view) could snap to those parcel polygons in editing map. Yes, I know I could make another hosted feature layer of parcels, but it would be great if I could recycle an existing map image layer... and therefor help my editors keep better data.
... View more
04-07-2020
03:50 PM
|
1
|
0
|
302
|
Title | Kudos | Posted |
---|---|---|
1 | 03-04-2021 11:37 AM | |
1 | 01-19-2021 05:33 PM | |
1 | 09-01-2020 01:51 PM | |
16 | 12-30-2020 07:59 AM | |
2 | 12-28-2020 04:11 PM |
Online Status |
Offline
|
Date Last Visited |
10-31-2021
10:30 PM
|