IDEA
|
Scenario: I have a web link in a popup that looks something like this: http://my-website.com/{OBJECTID} This link is to an internal application which opens up a details page on the record. When clicking on a popup link in arcgis pro, the resulting web link is opened in Internet Explorer. This is not what a user would expect if the default browser is set to Google Chrome or Firefox. As far as I know this isn't a very complicated procedure, opening a link in an addin requires something like System.Diagnostics.Process.Start("http://my-url.com"); Benefits: Some applications do not work in versions of internet explorer and it would be very useful to allow pro to open other web browsers. If a user is used to using chrome, and is signed in to a web service, they won't have to sign in again when clicking links to the web service in pro Related: How do I change ArcGIS Pro's default browser in the pop-up from IE to Chrome?
... View more
07-10-2017
09:26 AM
|
17
|
4
|
2506
|
POST
|
FYI, this script has been updated to be a little more robust. esri-python-tools/UpdateMXDMetadata.py at master · roemhildtg/esri-python-tools · GitHub
... View more
06-06-2017
11:42 AM
|
0
|
0
|
1181
|
POST
|
Yes! This is exactly what I was looking for. Thanks! Editing nonversioned geodatabase data in SQL Server using SQL—Help | ArcGIS Desktop DECLARE @id as integer
EXEC dbo.next_rowid 'gisdata4', 'farmland', @id OUTPUT;
SELECT @id "Next ObjectID";
RETURNS:Next ObjectID423
In Python (sqlalchemy) this function works for me:
def get_next_objectid(session, table, schema='dbo'):
"""
selects the next valid id from a arc sde table for sqlalchemy
Does not validate arguments, and is vulnerable to sql injection,
only use this function with arguments that you TRUST
"""
sql_string = """
DECLARE @id as integer
EXEC dbo.next_rowid '{schema}', '{table}', @id OUTPUT;
SELECT @id "id";
""".format(table=table, schema=schema)
ident = session.execute(sql_string).first()[0]
return ident
... View more
03-21-2017
06:54 AM
|
0
|
0
|
1555
|
POST
|
Nope, in this dataset it is not versioned. I realize that versioned data won't integrate with a third party app so I'm sticking with a plain old table.
... View more
03-17-2017
11:29 AM
|
0
|
2
|
1555
|
POST
|
So I have an sql table that is shared with ArcMap and a 3rd party application. Both applications need to edit/insert rows. The 3rd party application uses the auto sql Identity = ON to use the sql server's method of generating new ID's on insert. ArcGIS on the other hand uses some internal counter method to generate the next id. What happens is, when the 3rd party app inserts a row, a new ID gets generated, lets say 1000 and the row is inserted. But ArcMap's counter isn't updated, so when ArcMap tries to insert a row using its internal counter, it tries to insert with id=1000 also, and receives a duplicate key error. A) Can I reset arcmap's counter to the new value? B) Is there a better method I should use instead?
... View more
03-17-2017
10:17 AM
|
0
|
4
|
2809
|
IDEA
|
Yes please! Or provide a way to manually update the internal SDE id!
... View more
03-16-2017
12:47 PM
|
0
|
0
|
480
|
POST
|
You can do this entirely in model builder...without coding, but if you want to do it with coding the same concepts apply. Basic Steps: Iterate feature classes in workspace Make Feature Class (with definition query) Export to shapefile Details: Model builder has a special tool caled Iterate Feature Classes in workspace. You access it by using Insert > Iterators > Iterate Feature Classes. It accepts a workspace as input. Then you just chain the feature class to Make Feature Layer (with definition query) and then to Feature class to feature class. You can set definition query in the Make feature layer tool: You can use %Name% in your parameter to access the name of the input layer: In python you can do this with: import arcpy
arcpy.env.workspace = 'C:/workspace'
output_folder = 'C:/Output'
fc_list = arcpy.ListFeatureClasses()
for fc in fc_list:
arcpy.MakeFeatureClass_management(fc, fc + "_filtered", where_clause="Contractor LIKE 'TLG%'")
arcpy.FeatureClassToShapefile(fc+ "_filtered", output_folder)
... View more
12-14-2016
09:06 AM
|
3
|
0
|
3087
|
POST
|
I'd like to fetch an ArcGIS Server token with a python script and an encrypted password. I have it working nicely with plain text, but I'd rather avoid this method since using passwords in plaintext is always a bad idea, even on a server side script. The arcgis server generate token page has a certain functionality that encrypts the password using javascript before its sent to the server. It uses the arcgis server public key/modulus to create an encrypted string. Then it passes encrypted=true and the encrypted data. I would like to replicate this function in my python script. However, I cannot find any documentation on this encryption technique anywhere. Has anyone dealt with this situation before or know of any resources available to figuring it out?
... View more
10-18-2016
09:22 AM
|
1
|
0
|
1930
|
IDEA
|
If you're looking for an alternative layer control, check out the one cmv uses: Configurable Map Viewer
... View more
10-07-2016
01:31 PM
|
0
|
0
|
502
|
IDEA
|
Format Popup Content | Guide | ArcGIS API for JavaScript 3.18 This page describe the details on formatting a popup using several different properties. The popup template is fairly flexible, but enhancements could be made to make it a lot more useful, with minimal effort. Add the ability to provide a custom formatter for any field, not just date and number types. The formatter property already exists, but it doesn't allow any real customizing for formatting values... Yes, I can provide a content property, that will allow me to do this, but if I simply want to turn one field into a link, now I have to write an entire template up that looks like a table and then format the one field that I want into a link. Yes, links are already automatically converted into anchors, BUT not if they are missing http or require multiple fields to build... Additionally, it would be ideal if this formatter was a function that could utilize other fields to build a formatted value. Example: function(value, otherAttributes){ return lang.replace('<a href="fieldName">{otherFieldName}</a>', attributes); } This would allow the most flexibility and since I'm using a dojo template above, it would be easy to read and set up. As I mentioned, the formatter property already exists, it just needs to be tweaked to be more flexible, and allow for other attributes to be used in the formatter function.
... View more
10-07-2016
01:25 PM
|
1
|
0
|
410
|
POST
|
I'm getting this error trying to create a replica. I am creating a replica from a sql server express geodatabase to a file geodatabase stored on the network drive. The replica contains several datasets, tables, and feature classes. Any advice?
... View more
09-29-2016
08:27 AM
|
0
|
0
|
1071
|
POST
|
I ran into this issue because I had a table that was stored in a personal database (mdb). This table was joined with a feature class. ArcMap gave me the warning (data will be copied to the server) which I was fine with but the error occurred. Removing the table and the join got rid of the error for me, so I'm guessing ArcMap doesn't fully support publishing data stored in an mdb. Running ArcMap 10.4.1 (64 bit) and Server 10.4.1.
... View more
09-22-2016
07:22 AM
|
0
|
0
|
1076
|
POST
|
I was experiencing this issue when using the clip tool in Modelbuilder. Adding the additional step to convert to a shape file first, then clip worked perfectly for me.
... View more
09-19-2016
10:29 AM
|
0
|
0
|
500
|
POST
|
Hi Philip, I have federated our ArcGIS server with ArcGIS online, and would like to publish a "Dynamic" map service layer to our arcgis server (with joins, complex labeling, and the ability to identify). In ArcGIS Pro though, the share web layer tool only has options for Feature, or Tiles. Could you confirm whether or not it is currently possible to publish dynamic layers through pro, either through ArcGIS online or Portal? Its my understanding that Portal and AGO are basically the same thing, and Portal seems like an unnecessary addition to our stack at the moment. It is more work to set up, upgrade, and maintain. However, it may be necessary if it provides additional capabilities mentioned above.
... View more
09-14-2016
07:30 AM
|
1
|
5
|
2260
|
Title | Kudos | Posted |
---|---|---|
1 | 05-30-2019 07:30 AM | |
1 | 02-21-2022 01:09 PM | |
1 | 12-07-2021 11:51 AM | |
1 | 08-18-2016 01:47 PM | |
1 | 10-02-2015 07:32 AM |
Online Status |
Offline
|
Date Last Visited |
06-28-2022
12:44 PM
|