|
POST
|
I understood that you need the code in VB. The same classes and methods you can call from c#. 8-17 lines in VB code makes projection with transformation. wkid 102633 is code for ArcObjects esriSRProjCS_NAD1983SPCS_AK3FT. var areaOfInterest = MapView.Active.Extent;
MapPoint pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / (double)2 + areaOfInterest.XMin, (areaOfInterest.YMax - areaOfInterest.YMin) / (double)2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference);
SpatialReference pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84);
SpatialReference pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633);
ProjectionTransformation pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem);
MapPoint pProjectedPoint = GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans) as MapPoint;
Console.WriteLine(pProjectedPoint.Y);
Console.WriteLine(pProjectedPoint.X); Documentation link is here
... View more
05-24-2025
12:14 PM
|
0
|
0
|
2004
|
|
POST
|
Hi, There is one sample project for VB in Esri Community ArcGIS Pro Samples. Solution is here. Try code below for your functionality: Try 'TRY TO GET THE CENTER SCREEN LOCATION FROM THE ACTIVE VIEW, JUST SHOW THE FORM ON ERROR
Dim areaOfInterest = MapView.Active.Extent
Dim pPoint As MapPoint
pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / 2 + areaOfInterest.XMin,
(areaOfInterest.YMax - areaOfInterest.YMin) / 2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference)
Dim pGeoCoordSystem As SpatialReference
Dim pProjCoordSystem As SpatialReference
Dim pGeoTrans As ProjectionTransformation
pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84)
pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633)
pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem)
Dim pProjectedPoint As MapPoint
pProjectedPoint = CType(GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans), MapPoint)
Console.WriteLine(CStr(pProjectedPoint.Y))
Console.WriteLine(CStr(pProjectedPoint.X))
Catch ex As Exception
'DO NOTHING
End Try As I understand your map spatial reference is esriSRProjCS_NAD1983SPCS_AK3FT. So, instead of creating pProjCoordSystem you can use Map spatial reference
... View more
05-23-2025
01:30 AM
|
0
|
2
|
2075
|
|
POST
|
Hi, @Jeff-Reinhart Look at the DatastoresDefinitionsAndDatasets sample. DataPath property has two-way binding. DockPane implements INotifyPropertyChanged. OnPropertyChanged is implemented inside SetProperty(ref _dataPath, value, () => DataPath); You can change it to expanded form: _dataPath = value;
OnPropertyChanged();
... View more
05-21-2025
12:52 PM
|
1
|
1
|
1396
|
|
POST
|
I would recommend for issues with geoprocessing parameters use ExecuteToolAsync method with GPToolExecuteEventHandler parameter. Sample you can find in documentation here, or in Community samples.
... View more
05-21-2025
12:00 PM
|
0
|
0
|
1606
|
|
POST
|
Next issue is your fieldArgs parameter. It must be like below (this is for numeric fields): string fieldArgsStr = "'field1' 1; 'field2' 2"; //fieldname1 space fieldvalue1 separator fieldname2 space fieldvalue2
var argsCalculate = Geoprocessing.MakeValueArray(featureLayer, "PYTHON3", fieldArgsStr); I don't know how fields list parameter must look with text fields.
... View more
05-21-2025
07:34 AM
|
0
|
2
|
1636
|
|
POST
|
Hi, Try to change last two lines from your function to lines below: var argsCalculate = Geoprocessing.MakeValueArray(featureLayer, "PYTHON3", fieldArgs);
IGPResult result = await Geoprocessing.ExecuteToolAsync("management.CalculateFields", argsCalculate, null, null, null, GPExecuteToolFlags.None); Yours referencing to feature layer is invalid. Your function will calculate only TEXT fields (depending on your input parameters). Change them from string to object if you want to work with all types of fields.
... View more
05-20-2025
10:26 PM
|
0
|
4
|
1664
|
|
POST
|
Hi, I see you use bevelRatio parameter not equal 0 (0.5). That parameter is used only when offsetType is miter. Your offsetType is round. Try reset bevelRatio. Maybe it is a side effect?
... View more
05-15-2025
10:25 PM
|
0
|
0
|
1158
|
|
POST
|
There would be no need to have such Custom Control if it could be done without it. Another one thing that all controls defined in DAML must implement IPlugInWrapper interface. I am not sure that your custom control implements IPlugInWrapper interface.
... View more
05-07-2025
10:21 PM
|
1
|
0
|
1194
|
|
POST
|
Hi, Do you want to use your custom control in ribbon or ProWindow/ Dockpanel? If you want to use it in ribbon, then create new ArcGIS Pro Custom Control and place your control inside. For both cases you need to add reference to your library at the start of your xaml: <UserControl x:Class="ProAppModule4.CustomControl1View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="clr-namespace:ProAppModule4"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
xmlns:myuc="clr-namespace:ControlLibrary.XColorPicker;assembly=ControlLibrary"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
d:DataContext="{Binding Path=ui.CustomControl1ViewModel}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid >
<myuc:XColorPicker />
</Grid>
</UserControl> And add your library reference to project.
... View more
05-07-2025
01:20 PM
|
0
|
1
|
1218
|
|
POST
|
All samples of GetFeatures use only geometry parameter. Try overload with geometry parameter only. Have you tried GetFeaturesEx method?
... View more
04-30-2025
05:16 AM
|
0
|
0
|
2174
|
|
POST
|
Try to check mapPoint of each round with debugger watch. Is type of mapPoint exactly MapPoint or maybe it is Multipoint type? Have you tried your code on not utility network layers?
... View more
04-30-2025
04:13 AM
|
0
|
0
|
2178
|
|
POST
|
Hi, You use visual intersecting in GetFeatures method. Maybe some features aren't visible at some scales? Try false instead true. Next thing is geometry in GetFeatures method. Check your mapPoint spatial reference. If needed, project mapPoint to map spatial reference.
... View more
04-29-2025
11:56 PM
|
0
|
0
|
2199
|
|
POST
|
Hi, After updating to ArcGIS Runtime 200.7 we can find crash reports on Google Play Console with RT_GeoView_pulse. I have seen crash report with RT_GeoView_pulse one time with earlier ArcGIS Runtime version (don't remember number, 200.6 or 200.5). *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 23430 >>> com.hnit_baltic.mapslt <<<
backtrace:
#00 pc 0x0000000000094264 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
#01 pc 0x00000000000961cc /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+124)
#02 pc 0x000000000010311c /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+60)
#03 pc 0x0000000000102fb0 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+208)
#04 pc 0x000000000285fea8 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#05 pc 0x0000000003574690 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#06 pc 0x0000000003574418 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#07 pc 0x00000000035701d8 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#08 pc 0x000000000356f428 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#09 pc 0x0000000003568618 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#10 pc 0x00000000035a5cec /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#11 pc 0x00000000035adc48 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#12 pc 0x00000000035ad0b8 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#13 pc 0x00000000029ca52c /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libruntimecore.so (RT_GeoView_pulse+40) (BuildId: 4bcdab47f072175489f98d16864163dd25ad1fd3)
#14 pc 0x00000000001bf258 /data/app/~~ugKlpQjN33H36qlA2_yFag==/com.hnit_baltic.mapslt-YmAu7DSr--HUSxUOa10uUQ==/split_config.arm64_v8a.apk!libRuntimeCoreNet.so (CoreRT_GeoView_pulse+20) (BuildId: ac18c8663572c9360c0777b2b17c69a3c5a975c9)
#15 pc 0x0000000000004940 OS Android 14 (SDK 34), devices: redmi ruby, samsung a54x I saw few Community threads with RT_GeoView_pulse exceptions. All are very old but about the same thing - out of memory issue. Could it be the same out of memory issue?
... View more
04-24-2025
11:01 PM
|
0
|
2
|
963
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|