|
POST
|
Dan Patterson would be correct on this one. I would love to be able to upload the file for you, but it wouldn't be allowed. Our policies would require that you access your My.Esri account and download the install media. If you were having problems downloading the file from the site you could contact Esri Support and after they verify that you're currently on maintenance and have access to this they could host the install on a secure ftp site for you to download it.
... View more
12-12-2015
04:13 AM
|
1
|
0
|
2275
|
|
POST
|
Do you have access to your My.Esri account? You should be able to download it from there.
... View more
12-10-2015
04:38 PM
|
1
|
4
|
2275
|
|
POST
|
You can start by going to the following page. There are dozens of internships available throughout the year. Students at Esri http://www.esri.com/careers/main/student-jobs
... View more
12-10-2015
03:46 PM
|
1
|
0
|
3223
|
|
POST
|
The response from our legal department is that the two entries are for i) the SDK and ii) the Runtime component. The first entry outlines the intended use of the SDK. It states that the SDK is licensed to allow customers to build mobile value-added applications and is subject to the general license terms found in the Esri Master License Agreement (MLA) (FN 16). Among other restrictions, the general license terms prohibit the customer from redistributing the SDK or using it for service bureau purposes or to develop internet applications (FN 19). The second entry outlines the intended use of a component of the SDK, which in this case is the Standard Level License. It states that the licensee may redistribute the Runtime component (i.e. the license) as part of its value added application (FN 15; also see Article 1 of the MLA for the meaning of the term "Deployment License"). It is also understood that Esri charges a fee in some cases to deploy the Runtime component and a separate license is required for combination of value-added application and computer (FN 18). In your case both entries would be applicable. As a result of using the SDK, the first entry would prohibit you from developing Internet or server-based Value-Added applications. In contrast to the SDK, the second entry would allow you to redistribute your Runtime license as part of your application. Let me know if this makes sense.
... View more
12-10-2015
01:26 PM
|
1
|
0
|
2090
|
|
POST
|
I'm assuming that you want to change the visibility of the fields within the attribute table. If you wanted to modify this value against an existing layer you'd probably need to utilize ArcObjects and the code would center around the following logic. ILayerFields layerFields = (ILayerFields) layer;
for (int i = 0; i < layerFields.FieldCount; i++)
layerFields.FieldInfo.Visible = false; If you want to create a new layer then you'd probably want to leverage a tool that would allow you to utilize a FieldInfo object. FieldInfo http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/fieldinfo.htm Make Feature Layer http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/make-feature-layer.htm Make Table View http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/make-table-view.htm
... View more
12-10-2015
09:42 AM
|
1
|
0
|
2183
|
|
POST
|
I've put together a screenshot from the attached EULA. This legal notice is installed in the legal subfolder of the ArcGIS Runtime SDK installation folder.
... View more
12-10-2015
09:06 AM
|
1
|
2
|
2090
|
|
POST
|
Hi Joaquin Roibal, I'm not sure if you're still in school, but if you are have you ever thought of doing a summer intership with Esri.
... View more
12-09-2015
06:09 PM
|
2
|
2
|
3223
|
|
POST
|
I would say the best option depends on the requirements of what you're wanting to do. If you're wanting to build web mapping applications that utilize APIs such as the ArcGIS API for JavaScript then JavaScript will be the best choice. ArcGIS API for JavaScript https://developers.arcgis.com/javascript/ Otherwise if you're wanting to develop client/server based tools that would leverage APIs like arcpy you'd want to focus more on Python and the arcpy site package or 3rd party assemblies that provide similar functionality. For example, let's say you want to build a web application that allows users to draw features on a map and buffer them a specified distance. JavaScript would allow you to easily build the UI and execute the logic without using a single line of python. GeometryService Buffer https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html You could accomplish the same thing in Python, but you'd just end up using ArcGIS online or a web application or API, such as JavaScript to build an application to consume your code. If you wanted to accomplish the entire task using just python you'd probably end up losing days building an application that should be up and running within a couple of hours. I agree that Python is a powerful tool and that it can be used to do some crazy things, but sometimes it's best to just use the tool that will get the job done. At the end of the day you need to make sure you understand the tools, technologies, and patterns needed to complete your task.
... View more
12-09-2015
06:05 PM
|
3
|
0
|
3223
|
|
POST
|
I would expect the second issue you're seeing because the creation of the cursor has no effect on the source data. I would also assume that the count you're getting for the first cursor is wrong unless your data happens to match the filter in the cursor. Have you tried creating a feature layer against the data using the filters you're providing to the cursor? Otherwise you can iterate through the cursor and get the count prior to looping through it again. I wrote up examples of this below, but note I didn't test either of these. They're just how I'm thinking this would work. Option A - Get the count using a table view or feature layer ufields = ("STREAM_CODE","SPECSTR","TYPE","MEAS","PROB")
ufilter = "TYPE = 'MIDSP'"
with arcpy.da.UpdateCursor(inPtMeasureTbl, ufields, ufilter) as ucursor:
utview = arcpy.management.MakeTableView(inPtMeasureTbl, "utable", ufilter)
ucount = int(arcpy.management.GetCount(uview).getOutput(0))
for urow in ucursor:
cfields = ("STREAM_CODE","SPECLS","F_MEAS","T_MEAS")
cfilter = "STREAM_CODE='{}' and F_MEAS <= {:.6f} and T_MEAS >= {:.6f}".format(*[urow[0], urow[3], urow[3]])
with arcpy.da.SearchCursor(inEventTbl, cfields, cfilter) as ccursor:
ctview = arcpy.management.MakeTableView(inEventTbl, "ctable", cfilter)
ccount = int(arcpy.management.GetCount(ctview).getOutput(0))
print("Line Events Count: {0}".format(count))
for crow in ccursor:
print("Found event: {} Specstr: {} Measures: {:.6f} , {:.6f}".format(*row)) Option B - Get the count from the cursor ufields = ("STREAM_CODE","SPECSTR","TYPE","MEAS","PROB")
ufilter = "TYPE = 'MIDSP'"
with arcpy.da.UpdateCursor(inPtMeasureTbl, ufields, ufilter) as ucursor:
ucount = 0
for _ in ucursor:
ucount += 1
ucursor.reset()
for urow in ucursor:
cfields = ("STREAM_CODE","SPECLS","F_MEAS","T_MEAS")
cfilter = "STREAM_CODE='{}' and F_MEAS <= {:.6f} and T_MEAS >= {:.6f}".format(*[urow[0], urow[3], urow[3]])
with arcpy.da.SearchCursor(inEventTbl, cfields, cfilter) as ccursor:
ccount = 0
for _ in ccursor:
ccount += 1
ccursor.reset()
print("Line Events Count: {0}".format(count))
for crow in ccursor:
print("Found event: {} Specstr: {} Measures: {:.6f} , {:.6f}".format(*row))
... View more
12-09-2015
03:43 PM
|
1
|
1
|
973
|
|
POST
|
I don't remember there being a method available that would allow you to delete a dataframe. If someone has come across a method that allows this please mention so that I can look into it. According to my understanding of arcpy, there aren't any methods available for creating content, such as Map Documents, Data Frames, Layout Elements, etc. I've seen most users leverage the workflow noted by Darren Wiens. Typically they create a map with all of the content they'd require manually and use arcpy to manipulate content. For items like data frames and layout elements the approach is usually to move those items off the screen until they're needed. If you want to easily accomplish this task you'd want to leverage ArcObjects via .NET or Java. The python approach is possible, but you won't find any supported channels from esri that would show you this approach. If I had to execute this task I would write up a console application or gp tool in ArcObjects. I could execute either of these items from python without too much trouble to create the needed content and them leverage arcpy to further manipulate the content. Do you have anyone available within your organization that is familiar with ArcObjects?
... View more
12-09-2015
10:36 AM
|
1
|
0
|
2126
|
|
POST
|
The gp results shouldn't be coming back as null. I took a few minutes to write up the attached sample. Because you're using the gp tools I also used the gp tools instead of executing this entire workflow in ArcObjects. I've also pasted the code to create the join below. There is also a second sample in the attachment that shows how to commit the join by calling the copy features tool. using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.DataManagementTools;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geoprocessing;
using ESRI.ArcGIS.Geoprocessor;
using System;
using System.IO;
namespace ArcMapAddin
{
public class AddJoinLayerToMap : ESRI.ArcGIS.Desktop.AddIns.Button
{
private static readonly string m_srcPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
private static readonly string m_gdbPath = Path.Combine(m_srcPath, @"data\data.gdb");
private const string m_fclName = "StateGeom";
private const string m_tblName = "StateTabl";
private const string m_joinFld = "STATE_ABBR";
protected override void OnClick()
{
var fws = OpenWorkspace(m_gdbPath) as IFeatureWorkspace;
var fcl = fws.OpenFeatureClass(m_fclName);
var tab = fws.OpenTable(m_tblName);
var lyr = new FeatureLayerClass { FeatureClass = fcl, Name = fcl.AliasName, Visible = true };
var gp = new Geoprocessor { OverwriteOutput = true, AddOutputsToMap = false };
try
{
var tool = new AddJoin { in_layer_or_view = lyr, in_field = m_joinFld, join_table = tab, join_field = m_joinFld, join_type = "KEEP_COMMON" };
var result = gp.Execute(tool, null) as IGeoProcessorResult2;
if (result.Status == ESRI.ArcGIS.esriSystem.esriJobStatus.esriJobSucceeded)
ArcMap.Document.FocusMap.AddLayer(lyr);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}
}
private static IWorkspace OpenWorkspace(string gdbPath)
{
var ftype = Type.GetTypeFromProgID("esriDataSourcesGDB.FileGdbWorkspaceFactory");
var wsf = Activator.CreateInstance(ftype) as IWorkspaceFactory;
return wsf.OpenFromFile(gdbPath, 0);
}
}
}
... View more
12-09-2015
09:55 AM
|
0
|
1
|
978
|
|
POST
|
Joins can only be applied to feature layer or table view objects. Have you tried grabbing an instance of the GPLayer object from the result of the tool? How to access the features in an in-memory output layer using IFeatureCursor http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/How_to_access_the_features_in_an_in_memory_output_layer_using_IFeatureCursor/0001000000p4000000/ Otherwise if you're wanting to commit the join to a feature class have you tried exporting the resulting join layer to a feature class?
... View more
12-09-2015
05:46 AM
|
0
|
3
|
978
|
|
POST
|
I think you may need to log a support ticket to see if this is by design. I would assume that at the database level this information wouldn't be case sensitive and the tool would think that you're trying to name the field to what it's already named. To get around it you could just add an extra character to the field and then change it back to the original word in the case you're needing.
... View more
12-09-2015
05:36 AM
|
0
|
0
|
859
|
|
POST
|
If you don't know ArcObjects you can also execute this task using out-of-the-box tools in Desktop/Pro and can easily automate this with python. You can see examples of the available tools below along with examples of they can be used. Create Domain http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-domain.htm Table to Domain http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/table-to-domain.htm Add Coded Value To Domain http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-coded-value-to-domain.htm Assign Domain To Field http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/assign-domain-to-field.htm
... View more
12-08-2015
04:28 AM
|
1
|
1
|
876
|
|
POST
|
uniqueList = []
def isDuplicate(value1, value2, skipValue="alpha"):
if value1 == skipValue:
return
if value2 in uniqueList:
return 1
else:
uniqueList.append(value2)
return 0 you can tweak the above function until you get it the way you want.
... View more
12-07-2015
04:19 PM
|
0
|
0
|
1060
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-19-2016 04:45 AM | |
| 1 | 09-24-2015 06:45 AM | |
| 1 | 09-15-2015 10:49 AM | |
| 1 | 10-12-2015 03:07 PM | |
| 1 | 11-25-2015 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|