POST
|
Hallo Veronika, I am having the same problem as you: I am trying to substitute the 'georeferencing' => 'rectify' tool by using a python script. So far I use WarpFromFile_management followed by Resample_management. While this approach works in principle I would like to see alternative ways to rectify and resample an image using arcpy. Did you find a solution? Kind regards Axel
... View more
05-08-2024
03:52 AM
|
0
|
0
|
156
|
POST
|
Dear all, I am trying to substitute the 'georeferencing' => 'rectify' tool by using a python script. So far I use arcpy.WarpFromFile_management(ras, dummyrect, LinkFile, Transf, Resampl) arcpy.Resample_management(dummyrect, outpath, res, Resampl) While this approach works in principle, the image (scanned map, 8bit tif file) is resampled twice sometimes resulting in a slightly smeared image. Manually applying the rectify tool with the same image never leaves this kind of artifact. Any ideas how this problem might be solved using arcpy? Any hints appreciated! Regards Axel
... View more
05-08-2024
03:46 AM
|
0
|
0
|
302
|
IDEA
|
The last entry here is already pretty old but nothing has changed. The problem is still there, ESRI, and waits to be solved!
... View more
03-15-2022
05:56 AM
|
0
|
0
|
847
|
POST
|
Hi Amanda, thanks for this one. This is actually a problem I had immediately after upgrading to ArcGIS 10.8.1 from 10.2 (and VS2012 to VS2019). It was solved by changing the ESRI.ArcGIS.AddIns.11.targets reference in the project properties to ESRI.ArcGIS.AddIns.targets. Now other very similar addins run fine but one remains stubborn... But to make sure, yes, "Register for COM interop" is not ticked and the ESRI.ArcGIS.Deskop.AddIns assembly reference Copy Local property set to false. I really appreciate your help! Any other ideas? Axel
... View more
01-06-2022
11:52 PM
|
0
|
0
|
902
|
POST
|
Amanda, to be more specific: I have various BC30002 errors such as 'type "ESRI.ArcGIS.Desktop.Addins.Multiitem" is not defined'. However, I have referenced ESRI.ArcGIS.Desktop.Addins. The .NET framework is set to 4.5.2 and I see no outdated entries (from the conversion from 10.2) in the vbproj file. Any other ideas what might have gone wrong? Axel
... View more
01-05-2022
12:43 AM
|
0
|
1
|
908
|
POST
|
Amanda, thanks for your answer. Your link was also the first thing I found while looking for a possible cause but it did not help me much. All references have been added properly, the dlls exist in their defined directory and another addin with the same structure runs just fine. So I am a bit at a loss where to search next. Axel
... View more
01-04-2022
11:32 PM
|
0
|
0
|
908
|
POST
|
Hi all, I am upgrading a 10.2 addin to 10.8.1 (VB.NET, VS 2019) and receive several "BC30002: Type '<typename>' is not defined"- errors. They are mostly related to ESRI.ArcGIS.Desktop.AddIns, but also to Carto, Framework, ArcMapUI or Editor. All references are set with a valid path. I compared all settings to an structurally identical addin I had converted earlier that references the same libraries and runs fine but see no code or settings differences. I m quite at a loss so any ideas are appreciated! Axel
... View more
01-03-2022
04:38 AM
|
0
|
5
|
992
|
POST
|
Thanks to all of you, there are a number of interesting points to check now. Thankfully first I will be off to the mountains for a week or so and will tackle that problem when I'm back
... View more
09-19-2021
11:57 PM
|
0
|
0
|
887
|
POST
|
I thought so [sigh...] I am using a two-step approach: first selecting feature classes based on name and then looping through the list with a search cursor: fcList = arcpy.ListFeatureClasses(sSearchStr,"POLYGON") for fcls in fcList: cnt = len([r[0] for r in arcpy.da.SearchCursor(fcls, fieldname, where_clause = query)]) if cnt > 0: [....] Would be great if you have an idea how to speed up this process!
... View more
09-17-2021
01:44 AM
|
0
|
1
|
930
|
POST
|
Hi, is there an equivalent to the "Find tool" in ArcMap using arcpy? The find tool is way faster when searching over multiple layers than any code I can come up with... Any ideas?
... View more
09-16-2021
08:04 AM
|
0
|
6
|
982
|
IDEA
|
This used to be a standard feature in the old ARC/INFO versions ('draw vertices'-option) - gone as a lot of other useful features that used to be standard some 30 years ago!
... View more
04-26-2019
03:12 AM
|
2
|
1
|
2163
|
POST
|
Duncan, thanks for the input but vbNewLine (or vbCrLf for that matter) will not work. I alredy thought to use <br> (the interface is called XmlPropertySet after all) but I am not very versed with xml and did not make it work either. Any other ideas?
... View more
01-13-2019
11:16 PM
|
0
|
0
|
407
|
POST
|
I am editing metadata via a VB.NET Addin. Update information comes from ASCII files and I am and looking for a way to insert new lines. In this simple example the ASCII text provided might look like: "Administrator: Person A" Using the IXmlPropertySet2 interfacemy code looks something like this: Dim sName As String = "mdContact/rpPosName" Dim sValue As Object = "Administrator: \r\n Person A" 'update string with escape sequence added XmlPropertySet2.SetPropertyX(sName, sValue, esriXmlPropertyType.esriXPTText, esriXmlSetPropertyAction.esriXSPAAddOrReplace, False) Setting the property type to esriXPTText suggests that the value parameter (sValue in this example) should be a string. However any escape characters inserted in the string are not interpreted correctly and instead are shown as normal text in the metadata viewer. Being at a loss what the correct escape character might be I tried quite a variety: <\r\n> <br>, 
 <br> \r\n I have seen the somewhat similar thread https://community.esri.com/thread/213315-new-line-in-metadata-summary-description but this does not fit my problem. Any ideas how to insert new lines?
... View more
01-04-2019
01:38 AM
|
1
|
2
|
504
|
POST
|
I have been loading a DEM (.img file). It displays alright but when changing vertical exaggeration nothing happens. Is there anything else to do to make vertical exaggeration work? Thanks, Axel
... View more
12-06-2018
03:04 AM
|
0
|
1
|
533
|
IDEA
|
allmost unbelievable that this functionality does not already exist - absolutely necessary for descriptive statistics.
... View more
12-19-2017
11:07 PM
|
0
|
0
|
985
|
Title | Kudos | Posted |
---|---|---|
1 | 08-27-2015 08:07 AM | |
1 | 08-28-2015 03:25 AM | |
1 | 08-28-2015 04:49 AM | |
2 | 04-26-2019 03:12 AM | |
1 | 01-04-2019 01:38 AM |
Online Status |
Offline
|
Date Last Visited |
05-14-2024
03:39 AM
|