|
POST
|
I'm not sure what the other application is that you're referring to or what type of security model it uses. The only way I'm aware of for passing credentials to Portal for ArcGIS is to use Windows Active Directory as the integrated user and role store. Passing authentication credentials from another third-party application may require custom coding.
... View more
04-16-2014
05:10 PM
|
0
|
0
|
494
|
|
POST
|
Please do not double post. I have responded to your question in the Geoprocessing section of the forum.
... View more
04-16-2014
05:03 PM
|
0
|
0
|
639
|
|
POST
|
It sounds like you are wanting to select the longest line feature which is completely within a specific polygon. Are you looking for a model, a python script, or the instructions for how to do this manually within ArcMap? In general, I think you would need several tools to address this requirement. Here are the high-level steps: ** Assumes you have a line feature class and a polygon feature class ** Select a single polygon feature, either manually or based on some attribute criteria. Select by Location: select lines from the line feature class which are completely within the polygon feature class (the previously-selected polygon from the step above will honor the selection set of 1 feature) Find the longest feature - this can be handled multiple ways: Select by Attribute: select lines from the currently-selected features of the line feature class using MAX(SHAPE.LENGTH) or MAX(SHAPE_LENGTH) depending on your type of data source Open the attribute table of the line feature class, choose the option at the bottom to view only the selected features, and sort the SHAPE.LENGTH field (or SHAPE_LENGTH field) in descending order Create a new field of DOUBLE (38,8) type and use the Calculate Geometry tool (right click the field from the attribute table) or the Calculate Field geoprocessing tool to calculate the true length of the line features based on the units from the coordinate system of the feature class. There are likely more ways to handle step 3 than the bulleted options I specified above. Let me know more about your requirements and I can be more specific about the approach.
... View more
04-16-2014
04:59 PM
|
0
|
0
|
10402
|
|
POST
|
Now, the code runs without any problem, however, I can't see the output file. Any clue? Your output "Test" table is merely a query table which is stored in memory and not something that is physically written somewhere. If you want to write your "Test" table out to disk, use the Table To Geodatabase (Conversion) tool and convert the table from being in memory to your workspace: arcpy.TableToGeodatabase_conversion(outTable, "C:/RG/Projects/CriticalDataNetwork/CDEC.gdb")
... View more
04-16-2014
04:42 PM
|
0
|
0
|
2293
|
|
POST
|
I agree that no documentation seems to exist, at least online, that discusses the "legality" of doing what you're doing from a licensing standpoint. The unfortunate part about ArcGIS Server's licensing model is that there is no way to 'de-authorize' a server unless you uninstall the product and remove the key codes file. However, I would think that temporarily authorizing both the 10.0 and the 10.2.2 instances wouldn't be a big deal if (1) you're in the process of transitioning and using the 10.0 instance for reference while you configure the 10.2.2 instance as production, and (2) if users are only being directed to one of the instances at any given time. This is just my opinion, of course. Another concept I've heard about is the use of an EDN (Esri Developer Network) license. I'm not sure of the requirements for acquiring such a license, but you may be able to authorize your new 10.2.2 site with an EDN until it's truly ready for production; then authorize it with a production ECP number afterward followed by an uninstallation of ArcGIS Server from your old machine. You should probably check with Esri by asking Tech Support or your organization's Technical Advisor if one has been assigned to you.
... View more
04-15-2014
05:31 PM
|
0
|
0
|
836
|
|
POST
|
So inserting new records works fine as far as the feature geometry, but no attribute values for that new feature can be set when performing the initial insert. However, you have no issues setting attribute values for records that already exist. Do I have this right? When you insert new features, you could perform a Store() directly upon inserting the new geometry followed by an update of the same record using set_Value and another Store() operation. In other words, if you know updates work fine but inserts are challenging because attribute values aren't respected (only geometry), then treat the newly-inserted record as an update rather than trying to set the attributes on insert.
... View more
04-15-2014
11:50 AM
|
0
|
0
|
727
|
|
POST
|
You may be seeing this error because the dataset is not registered as versioned within the SQL Server geodatabase. Can you try ONE of the following? 1. Change the edit.startEditing(True) line to edit.startEditing(True,False) or 2. Register the data you are trying to edit as versioned (either manually from ArcGIS Desktop or via Python before opening the edit session) The syntax for the startEditing tool is startEditing ({with_undo}, {multiuser_mode}), which is explained here. I think the issue is that you aren't specifying the right boolean for the multiuser mode. "When False, you have full control of editing a nonversioned, or versioned dataset. If your data is nonversioned and you use stopEditing(False), your edit will not be committed (otherwise, if set to True, your edits will be committed). The default value is True."
... View more
04-14-2014
05:22 PM
|
0
|
0
|
5604
|
|
POST
|
Here are two options... Mine the ArcGIS Server Logs Starting at 10.1, the ArcGIS Server Administrator API allows you to mine information about individual services in order to get usage information, which is covered here. To go a step further, you can automatically construct a feature class with the most highly-requested extents based on the example provided here. If you're clever with Python, you'll be able to collect some additional information using similar techniques. If you ever find yourself using ArcGIS 10.0 or earlier, you can still parse the ArcGIS Server log files (.DAT files) but you'll have to get a bit more complex with the scripting (which can be done using Windows batch, PowerShell, or Python scripting). Parse the IIS W3SVC Web Logs The W3SVC log files (typically located at C:/WINDOWS/system32/LogFiles/W3SVC1 or C:/inetpub/WWWROOT/Logs on a Windows machine) show the GET and POST requests made to the website from client machines. The information typically includes the URL being requested along with a file download size, a time/date stamp, the client IP address, and a return code (200, 404, 403, 500, etc.). You can use Windows batch scripting, PowerShell, or Python scripting to periodically parse the most current log file for the information you care about. One the data is parsed, you can write it to a file or insert the data into a database for reporting and record keeping purposes. Maybe a solution like this is a bit too custom for your liking, but you may already have the tools you need to do this without buying a COTS solution.
... View more
04-14-2014
04:54 PM
|
0
|
0
|
3440
|
|
POST
|
I believe the Display Field that ArcMap determines to be the default is based on this sequential logic: First field of type Text whose name contains the word "name" (case-insensitive) First field of type Text First field of an integer type First field of any type I think the label field ends up being whatever the Display Field ends up being. So are you asking how to set the Display Field for a particular layer within ArcMap? What is the reason for wanting to change a label field in Model Builder? I'm not sure if that can be set using Model Builder, and after looking at the arcpy capabilities for layers within a map document I'm almost certain you can't set this even through a stand-alone Python script.
... View more
04-11-2014
03:44 PM
|
0
|
0
|
751
|
|
POST
|
Are you getting an error? If so, please provide a description of the error. Also, what is the output if you include the following lines after setting the SR variable? print arcpy.Describe(self.params[0]).spatialReference
arcpy.AddMessage(arcpy.Describe(self.params[0]).spatialReference)
... View more
04-11-2014
02:24 PM
|
0
|
0
|
1500
|
|
POST
|
You said that you are updating ArcSDE, so your data model should remain the same. Are you saying "upgrade"? In fact, with a true upgrade the database name and locations of each feature class and table should all remain the same. If that is the case, then your MSD should connect just fine to the database after the upgrade. If you have actually created a new geodatabase, then hopefully the data is still structured the same. What I would suggest is to open the MSD (or the MXD that was used initially to produce the MSD) such that the layer data sources are broken (e.g., red exclamation points). This can be done by opening the MSD when the computer is not connected to the network or by stopping your old ArcSDE instance temporarily. The goal is to get the MSD open so the layers and tables in the TOC are all broken. Once you have your new SDE connection set up in ArcCatalog, right click on one of your broken layers and pick Repair Data... in order to re-point to the same object class in your upgraded database. Once you repair one layer, everything else should repair automatically. Save your MSD from there, or if you've done this in an MXD, then re-generate a new MSD. Another option, which I've found to be tedious and cumbersome, is to use the Repair MXD Data Connection tool (which works on MSDs too). Here is a good article that covers the process within Step 1, albeit from Geocortex.
... View more
04-11-2014
01:43 PM
|
0
|
1
|
3959
|
|
POST
|
What I am looking for is a way to decrease field width automatically so my boss is able to view the attribute table quickly and without scrolling. As I think about this more based on the comment above, one thing that could work is to highlight ALL fields in your attribute table and then either (1) double click on one of the black line separators between fields to see if they automatically resize to fit the values or (2) drag one of the black line separators between fields manually to make all fields the same width (regardless of character value length). It's a manual process, and you'll likely need to do it for each Shapefile you add to your map document, but that might be the only way to see all of your attributes at once.
... View more
04-11-2014
10:25 AM
|
0
|
0
|
1886
|
|
POST
|
Thank you for your response. What I am looking for is a way to decrease field width automatically so my boss is able to view the attribute table quickly and without scrolling. What I have are polygon shapefiles that are submitted by companies and need to be reviewed. So he wants a process that is going to convert these submissions into files/layers that will look the same for each submission for easier review. Everything seems doable with the exception of setting width values to the field columns. I am looking for any way to incorporate this into a python script or model. Ok, so you're not looking to reduce the width of the actual fields themselves... just the real estate that the entire attribute table takes up on the screen. Is your boss going to be looking at the attribute table in ArcMap when it's maximized to full screen? Are all of the incoming Shapefiles going to have the exact same fields or are they all going to be different? Depending on how many fields there are and the maximum character length is for each of the fields, you may not be able to fit the entire attribute table on the screen such that the fields all fit to their maximum value without requiring the user to scroll the table to the right to see the rest of the data. Lastly, once you adjust the fields to what you want I am not sure that those field width settings persist when re-opening a map document. Even swapping out the data source might not work. I think we need some more info from you on the questions above before determining what solution might be possible.
... View more
04-11-2014
10:21 AM
|
0
|
0
|
1886
|
|
POST
|
By "web enabled" are you talking about publishing your tool as a geoprocessing service? What error are you getting on the screen or in the ArcGIS for Server log file? Is the buffer distance a mandatory field? Try inputting no value at all or inputting 0 instead or some other number... is the output still properly produced?
... View more
04-11-2014
09:53 AM
|
0
|
0
|
632
|
|
POST
|
Just to be clear, you are looking for a way to define the field lengths of specifically-named fields within a template that can be applied to any number of feature classes, right? So for example, you would need a template that you can apply to 2 point feature classes, 1 line feature class, and 6 polygon feature classes such that they all have the same field names and associated field lengths. Do I have this right? If so, you can create the "template" as an XML workspace file and then import it into a geodatabase. Which version of ArcGIS are you using? Are you looking to do this in an automated way using something like Model Builder, are you wanting to write this in Python, or are you alright with importing the template manually each time? A bit more detail and requirements would help if you can provide it so that we can help you in the best way possible.
... View more
04-10-2014
06:55 PM
|
0
|
0
|
1886
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-05-2014 04:11 PM | |
| 1 | 02-19-2014 11:03 AM | |
| 1 | 04-07-2014 12:32 PM | |
| 1 | 04-03-2019 01:46 PM | |
| 1 | 03-31-2021 04:44 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-13-2025
07:13 PM
|