POST
|
I know that it is possible to update the item_properties for an item as outlined here Managing your content | ArcGIS for Developers . I am writing a script to automate the migration of some Portal applications from dev > test > prod. Our team has maintained the same item 'id' for the application in the past by using ArcGIS Online Assistant (you can edit the json and change the id). That way our users can maintain a bookmark to the application in their browser (the id is part of the url). Is it possible to edit the 'itemid' or 'id' using the Python API? If not, is there another way to programmatically update it?
... View more
11-06-2018
04:01 PM
|
3
|
3
|
2827
|
POST
|
I'm working on a custom add-in that zooms to a point based on a lat & lon input from the user. What I'm trying to do is create a marker symbol with a hollow fill and an outline, that way data points aren't covered up in the map by the marker symbol. However this needs to be a point location which only works with a SimpleMarkerSymbol so I can't use a SimpleFillSymbol? Anyone know of a way to do produce this functionality without creating a custom symbol?
... View more
06-10-2015
12:45 PM
|
0
|
0
|
3273
|
POST
|
I created an Add-in using the ArcObjects SDK for .Net in Visual Studio 2010. Initially I just had one button on the toolbar. Later I decided to add another button. I added the the button manually in the Config.esriaddinx file. as shown below. [HTML] <AddIn language="CLR" library="SearchDBByLocationTool.dll" namespace="SearchDBByLocationTool"> <ArcMap> <Commands> <Button id="SearchDBByLocationTool_SearchDBByLocationButton" class="SearchDBByLocationButton" message="Searches the DB for any PDF, JPG, GIS data, or all three found within a geographic location" caption="Search Database" tip="Click to search database for geo-located data by a defined area of interest" category="Add-In Controls" image="Images\SearchDBByLocationButton.png"/> <Button id="SearchDBByLocationTool_AddResultLayersToMapButton" class ="AddResultLayersToMapButton" message="Takes the selected features from the results of the database search and adds the resulting GIS layer" caption="Add Selected Result" tip="Click to add the selected GIS layers to the map (only on GIS data not pdf or photos)" category="Add-In Controls" image="Images\MapWithStarBlue32.png"/> </Commands> <Toolbars> <Toolbar id ="SearchDBByLocationToolToolbar" caption="Database Search" showInitially="true"> <Items> <Button refID="SearchDBByLocationTool_SearchDBByLocationButton"/> <Button refID="SearchDBByLocationTool_AddResultLayersToMapButton"/> </Items> </Toolbar> </Toolbars> </ArcMap> </AddIn> [/HTML] My question is when I open up ArcMap why does my second button that I added manually to the Config.esriaddinx show the "Caption" instead of the "image" while the first button is displayed correctly? The first button has an image in the same folder as the second and its image shows on the button? What am I missing?
... View more
02-17-2014
10:05 AM
|
0
|
2
|
897
|
POST
|
Sachin, Thanks for the filtering tip that helps, but it still doesn't make sense to me that arcpy.ListFeatureClasses() would return anything other than a Feature Class. It must be something funky with the SDE or specific datasets I'm listing. I ended up using your filtering tips and arcpy.Describe to work around it.
... View more
01-30-2014
09:29 AM
|
0
|
0
|
718
|
POST
|
Yeah, maybe there is something wrong with the sde geodatabase or the actually raster layer that is causing the "arcpy.ListFeatureClass" to return raster datasats. I had to work around it by describing each item the feature class list and filter out any raster datasets. It works but takes a really long time. Still baffles me that ListFeatureClasses would return raster datasets.
... View more
01-20-2014
07:16 AM
|
0
|
0
|
718
|
POST
|
I am trying to loop through all the feature classes in an SDE geodatabase and get their name and feature count. When I attempt to get the feature count of each feature class I run into an error because in my list there are raster datasets. Why are there raster datasets in my resulting list from arcpy.ListFeatureClasses()? I pasted the code but it doesn't make sense to me why raster datasets are included in ListFeatureClasses? What am I missing? import arcpy from arcpy import env env.workspace = r'Database Connections\MySDEgeodatabase.sde' fcList = arcpy.ListFeatureClasses() I looped through fcList using this code for fc in fcList: desc = arcpy.Describe(f) print '{0} {1}'.format(desc.name, desc.dataType) This is where I realized the list contained raster datasets with dataTypes of "RasterDataset"? I want to avoid having to use arcpy.Describe() to filter to to get feature classes because there are hundreds of feature classes in the SDE geodatabase and it slows it down a ton.
... View more
01-16-2014
10:05 AM
|
0
|
4
|
1255
|
POST
|
I have the draw tool working correctly and I am currently working on the edit tool. I can delete all the graphics drawn with the DrawTool using a simple clear method. Is there a way to clear a line,point,polygon,etc one at a time without clearing the whole graphics layer?
... View more
09-22-2011
11:57 AM
|
0
|
1
|
396
|
POST
|
I'm new to web programming and very new to using Flex. I have a functional web application created with functional identify and find tasks. However, I just have the code in one long mxml file. Do I put the identify and find tasks in separate mxml files, classes, components? And how do you link the separate files so that you can call the methods in the main application mxml?
... View more
07-14-2011
07:32 AM
|
0
|
2
|
585
|
Title | Kudos | Posted |
---|---|---|
3 | 11-06-2018 04:01 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|