IDEA
|
Actually, brushing is not only not required, but is avoided. The user may want to show different time ranges in each plot, and would thus not want previously generated plots to be automatically updated to reflect whatever selection was on the table.
... View more
04-18-2020
09:39 AM
|
0
|
0
|
800
|
POST
|
I'm trying to represent netCDF data in NSIDC EASE Grid North using CF conventions such that ArcGIS shows the data in the place on a map. I figured I'd generate such a file with ArcGIS to see how it defines the coordinate system in netCDF. To test, I took point data in NSIDC EASE Grid North, which I believe is EPSG:3408. I interpolated to raster and converted to netCDF. I've attached the result as from_arc_grid.nc, and the text version as from_arc_grid.cdl. When I use Make NetCDF Raster Layer on that netCDF file, it lines up with the points perfectly. However, I notice the grid mapping variable is fairly light: int lambert_azimuthal_equal_area(lambert_azimuthal_equal_area); lambert_azimuthal_equal_area:grid_mapping_name = "lambert_azimuthal_equal_area"; lambert_azimuthal_equal_area:longitude_of_projection_origin = 0.0; lambert_azimuthal_equal_area:latitude_of_projection_origin = 90.0; lambert_azimuthal_equal_area:false_easting = 0.0; lambert_azimuthal_equal_area:false_northing = 0.0; And in my data variable, fake_var, there is an esri_pe_string attribute that has additional coordinate system details. fake_var:esri_pe_string = "PROJCS[\"NSIDC_EASE_Grid_North\",GEOGCS[\"GCS_Sphere_International_1924_Authalic\",DATUM[\"D_Sphere_International_1924_Authalic\",SPHEROID[\"Sphere_International_1924_Authalic\",6371228.0,0.0]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Lambert_Azimuthal_Equal_Area\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Latitude_Of_Origin\",90.0],UNIT[\"Meter\",1.0]]"; What I'd like to do is drop the esri_pe_string attribute, and add attributes to the grid mapping variable to fully define the coordinate system, using just the CF conventions with no Esri magic. I tried this using attributes defined in CF (test.nc and test.cdl), and I also tried using a WKT string which is what the esri_pe_string appears to be (test_wkt.nc and test_wkt.cdl). I got the WKT string straight from the EPSG website for 3408. When I do this and bring the fake_var variable in as a raster layer, the coordinate system is undefined. The grid does line up perfectly with the original data and with from_arc_grid.nc as long as the data frame's coordinate system is EASE Grid North. However, for other projections, my test grids wind up in the wrong place. (I also tried by just copying the esri_pe_string value to the crs_wkt attribute but got the same results as when using the EPSG:3408 string). Got any ideas?
... View more
01-09-2020
09:27 AM
|
0
|
0
|
474
|
POST
|
Thanks Gintautas, I am brand new to C# and of course there will be a more elegant way than my hacked together code
... View more
05-16-2019
07:23 AM
|
0
|
0
|
6100
|
POST
|
It becomes even more evident if you think about it in a 3D context. Imagine that you have building footprints that are extruded by an attribute and you do the selection in screen coordinates. The building geometry itself is only 2D on the ground and only the layer visual representation is in 3D. This combination can make the selection tricky as well and hence the argument.
... View more
05-15-2019
02:22 PM
|
0
|
0
|
608
|
POST
|
When I click Uninstall, I get an error, and it seems like the uninstall failed because the Uninstall button is still enabled. The error says "while trying to restore package" but that message didn't appear until I clicked Uninstall.
... View more
05-14-2019
11:03 AM
|
0
|
0
|
680
|
POST
|
When a user activates a map tool, I want to prompt them for a folder using FolderBrowserDialog. As soon as the dialog opens, the application hangs. To simplify this test, I also tried just showing a message box. The message box shows, but then the application hangs, and I cannot click OK on the message box or interact with the rest of Pro. Is there a way to prompt the user during OnToolActivateAsync? protected override Task OnToolActivateAsync(bool hasMapViewChanged)
{
MessageBox.Show("Now we are stuck");
return base.OnToolActivateAsync(hasMapViewChanged);
} Environment: Windows 10 Visual Studio 2017 Community Edition Pro SDK for .NET (and Utilities) 2.3.0.15769 Pro 2.3.2
... View more
05-02-2019
01:47 PM
|
0
|
0
|
292
|
POST
|
Also worth noting that the image needs to be set to "Resource" not "addin content".
... View more
08-19-2019
09:17 PM
|
0
|
0
|
937
|
POST
|
I just tested in 10.1 and had the same result as Robert: No exception was thrown, but FixedAspectRatio remained true even after setting it to false. However, I also found that the legend was able to adjust its width and height properties correctly without my intervention, so my solution of programmatically updating the size of the element containing the legend is no longer necessary in ArcGIS 10.1.
... View more
07-24-2014
12:17 PM
|
0
|
0
|
648
|
POST
|
I don't know of an online sample, but this code worked for me in ArcGIS 9.2 VBA. It just sends forward the first map it finds in the layout. Dim d As IMxDocument
Set d = ThisDocument
Dim gc As IGraphicsContainer
Dim gcs As IGraphicsContainerSelect
Set gc = d.PageLayout
Set gcs = gc
gcs.UnselectAllElements
gc.Reset
Dim e As IElement
Set e = gc.Next
Do Until e Is Nothing
If TypeOf e Is IMapFrame Then
gcs.SelectElement e
gc.BringForward g.SelectedElements
Exit Do
End If
Set e = gc.Next
Loop
d.ActiveView.Refresh
... View more
03-06-2012
09:05 AM
|
0
|
0
|
201
|
POST
|
Try this for a quick fix: Set pStatusBar = ThisDocument.Parent.StatusBar If Application appears in several more places, you could do something like the following, where you basically substitute pApp in place of Application:
Dim pApp As IApplication
Set pApp = ThisDocument.Parent
Set pStatusBar = pApp.StatusBar
... View more
01-23-2012
09:48 AM
|
0
|
0
|
125
|
POST
|
Hi, Thank you for your response. I was trying to do what you said yesterday, but for some reason I have not been successful. I will keep trying (looking). Thank you agan, K
... View more
01-23-2012
09:10 PM
|
0
|
0
|
214
|
POST
|
Did you try this line? featLayer.getSelectionSet().search(null, false, cursor); If it works, it would be fewer lines of code and might be more efficient since you aren't looping through OIDs to create a whereclause. Your code would become: // Get a cursor on selected features
IFeatureCursor cursor = null;
featLayer.getSelectionSet().search(null, false, cursor);
// Delete all features in the cursor
IFeature feature = null;
while ((feature = cursor.nextFeature()) != null) {
cursor.deleteFeature(); // Or maybe try feature.delete()
}
// Clear the selection set, because deleting this way doesn't notify the table or the TOC to udpate.
featLayer.clear();
// optionally call updateContents on map document
// If the cursor is no longer needed, release it.
Cleaner.release(cursor);
... View more
01-24-2012
05:20 AM
|
0
|
0
|
906
|
POST
|
Maybe you need to close the polygon by adding the first point to the end of the point collection. This code worked for me. Yup, that did it. Thanks a lot Tim. Justin
... View more
01-19-2012
12:13 PM
|
0
|
0
|
1373
|
POST
|
If you want to use a config XML, I recommend adding your own rather than using the Config.esriaddinx file. This keeps things clean. To add your own file in Visual Studio 2010: In Solution Explorer, right-click your add-in, point to Add, and click New Item. With the Common Items category selected, choose XML File. Give it a name and click Add. Click the XML file in the Solution Explorer, and then in the Properties window, set Copy to Output Directory to "Copy always." You should now be able to use the GetAppPath code that was previously posted along with IO.Path.Combine to create the path to the XML file. For more on adding your own files for use with add-ins, see http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/ The article says, "You can create additional folders and files under the Install folder. This is useful in cases where you want to ship data as part of your add-in. If you're adding data through your Visual Studio project, set the Copy to Output Directory property to the Copy always setting..."
... View more
01-12-2012
11:51 AM
|
0
|
0
|
842
|
Title | Kudos | Posted |
---|---|---|
1 | 05-11-2020 11:56 AM | |
3 | 06-03-2021 09:16 AM | |
2 | 12-13-2020 12:16 PM | |
1 | 12-02-2020 12:11 PM | |
1 | 06-05-2019 06:55 AM |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|