|
POST
|
The problem was that even with an SDE service installed, it would not start. The message read the service started and stopped because it wasn't in use. I have removed all SDE services. My 10.1 service was not registered with Windows services either, after installing the 10.2 and seeing it as stopped as in the message above I was unable to alter any associated connections.
... View more
12-22-2014
08:33 AM
|
0
|
8
|
2159
|
|
POST
|
After installing creating the sde service successfully i received this information. Now I would like to create an instance in this service.
... View more
12-19-2014
02:30 PM
|
0
|
0
|
2159
|
|
POST
|
Thanks Vince, I have installed the correct ArcSDE Server Application 10.2.1. After some investigation I have noticed SDE isn't registered properly. I used the sdeservice -o list and got the message the service doesn't exist or isn't registered properly. I would a.) like to create an 10.2.1 SDE Service for my SQL Server 2008 R2 DB. b.) change the CONNECTIONS property from 64 to 128. the script that I have used to attempt to create a service has thrown errors back at me as well; I suppose this is just syntax. sdeservice -o create SQLSERVER,localhost -p myPassword -h sdedirectory -i sdesvc -u sa -P myPassword My question is does my sdedirectory reference my SDE directory on my servers c drive? i.e. C:\ESRI\ESRI ArcGIS10.2.1 Software\ArcSDEsqlServer? After getting the service started it should be fairly straight forward to change the properties.
... View more
12-19-2014
01:23 PM
|
0
|
1
|
2159
|
|
POST
|
I have an ArcSDE connection that's accepting a maximum of 64 instances. I would like to change it to 128. I have followed the script from the resource center but receive the error below. My inclination is that there was a 10.1 SDE instance installed previously. We are using 10.2 now. What's the best way to go about this?
... View more
12-18-2014
04:29 PM
|
0
|
13
|
8925
|
|
POST
|
Yes, The layers are in the unique web-maps. I understand that my content can be used in many maps. However, my scenario is as follows. I have 1 web-map with the correct configuration of the pop-up in the map. All 15 maps have the same data, just different filters in the map. I would like to pass map a's pop-up configuration to the other 14. The maps are used in different groups that have different geographies, so the filter is at the feature level of each group, i.e. Group A has a District A filter for features so only those appear.
... View more
12-18-2014
01:54 PM
|
0
|
1
|
523
|
|
POST
|
I have 15 web-maps all with the same data, just different filtering for each group, I have to make a change to 13 of the maps, is there a way to automate the order that fields are in in the pop-up?
... View more
12-18-2014
01:12 PM
|
0
|
3
|
3538
|
|
POST
|
What is a proper script for this? I have followed the resources page, but receive an EOF error when executing the code from ArcMap. Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> # This script creates a bank of users and roles given a comma-separated text file
# They should be listed in the following format and saved in a file with a .txt extension:
#
# User,Role,RoleType,Password,EMail,FullName,Description
# John,Admins,ADMINISTER,changeme,johndoe@esri.com,John Doe,Server admin
# Jane,Publishers,PUBLISH,changeme,janedoe@esri.com,Jane Doe,Server publisher
# Etc.
import json, urllib,httplib
# For system tools
import sys
# For reading passwords without echoing
import getpass
def main(argv=None):
# Ask for admin/publisher user name and password
username = raw_input("arcgis: ")
password = getpass.getpass("mypassword: ")
# Ask for server name & port
serverName = raw_input("myserver: ")
serverPort = 6080
# Input File with the Role and user information
inFile = raw_input("C:\testing\agsUsersRoles.txt:")
# InFile = r"C:\testing\agsUsersRoles.txt"
opnFile = open(inFile,'r')
# Dictionaries to store user and role information
roles = {}
users = {}
addUserRole = {}
# Read the next line
ln = opnFile.readline()
# Counter to get through the column header of the input file
num = 0
while ln:
if num == 0:
pass # File header
else:
# Split the current line into list
lnSplt = ln.split(",")
# Build the Dictionary to add the roles
roles[lnSplt[1]] = {lnSplt[2]:lnSplt[len(lnSplt) -1].rstrip()}
# Add the user information to a dictionary
users["user" + str(num)] = {"username":lnSplt[0],"password":lnSplt[3],"fullname":lnSplt[5],"email":lnSplt[4],"description":lnSplt[-1].rstrip()}
# Store the user and role type in a dictionary
if addUserRole.has_key(lnSplt[1]):
addUserRole[lnSplt[1]] = addUserRole[lnSplt[1]] + "," + lnSplt[0]
else:
addUserRole[lnSplt[1]] = lnSplt[0]
# Prepare to move to the next line
ln = opnFile.readline()
num +=1
# Get a token and connect
token = getToken(username, password,serverName,serverPort)
if token == "":
sys.exit(1)
# Call helper functions to add users and roles
addRoles(roles, token,serverName,serverPort)
addUsers(users,token,serverName,serverPort)
addUserToRoles(addUserRole,token,serverName,serverPort)
def addRoles(roleDict, token, serverName, serverPort):
for item in roleDict.keys():
# Build the dictionary with the role name and description
roleToAdd = {"rolename":item}
# Load the response
jsRole = json.dumps(roleToAdd)
# URL for adding a role
addroleURL = "/arcgis/admin/security/roles/add"
params = urllib.urlencode({'token':token,'f':'json','Role':jsRole})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
# Build the connection to add the roles to the server
httpRoleConn = httplib.HTTPConnection(serverName, serverPort)
httpRoleConn.request("POST",addroleURL,params,headers)
response = httpRoleConn.getresponse()
if (response.status != 200):
httpRoleConn.close()
print "Could not add role."
return
else:
data = response.read()
# Check that data returned is not an error object
if not assertJsonSuccess(data):
print "Error when adding role. " + str(data)
return
else:
print "Added role successfully"
httpRoleConn.close()
# Assign a privilege to the recently added role
assignAdminUrl = "/arcgis/admin/security/roles/assignPrivilege"
params = urllib.urlencode({'token':token,'f':'json',"rolename":item, "privilege":roleDict[item].keys()[0]})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
# Build the connection to assign the privilege
httpRoleAdminConn = httplib.HTTPConnection(serverName, serverPort)
httpRoleAdminConn.request("POST",assignAdminUrl,params,headers)
response = httpRoleAdminConn.getresponse()
if (response.status != 200):
httpRoleAdminConn.close()
print "Could not assign privilege to role."
return
else:
data = response.read()
# Check that data returned is not an error object
if not assertJsonSuccess(data):
print "Error when assigning privileges to role. " + str(data)
return
else:
print "Assigned privileges to role successfully"
httpRoleAdminConn.close()
def addUsers(userDict,token, serverName, serverPort):
for userAdd in userDict:
jsUser = json.dumps(userDict[userAdd])
# URL for adding a user
addUserURL = "/arcgis/admin/security/users/add"
params = urllib.urlencode({'token':token,'f':'json','user':jsUser})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
# Build the connection to add the users
httpRoleConn = httplib.HTTPConnection(serverName, serverPort)
httpRoleConn.request("POST",addUserURL,params,headers)
httpRoleConn.close()
def addUserToRoles(userRoleDict,token, serverName, serverPort):
for userRole in userRoleDict.keys():
# Using the current role build the URL to assign the right users to the role
addUserURL = "/arcgis/admin/security/roles/addUsersToRole"
params = urllib.urlencode({'token':token,'f':'json',"rolename":userRole,"users":userRoleDict[userRole]})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
# Build the connection
httpRoleConn = httplib.HTTPConnection(serverName, serverPort)
httpRoleConn.request("POST",addUserURL,params,headers)
response = httpRoleConn.getresponse()
if (response.status != 200):
httpRoleConn.close()
print "Could not add user to role."
return
else:
data = response.read()
# Check that data returned is not an error object
if not assertJsonSuccess(data):
print "Error when adding user to role. " + str(data)
return
else:
print "Added user to role successfully"
httpRoleConn.close()
def getToken(username, password, serverName, serverPort):
# Token URL is typically http://server[:port]/arcgis/admin/generateToken
tokenURL = "/arcgis/admin/generateToken"
params = urllib.urlencode({'username': username, 'password': password,'client': 'requestip', 'f': 'json'})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
# Connect to URL and post parameters
httpConn = httplib.HTTPConnection(serverName, serverPort)
httpConn.request("POST", tokenURL, params, headers)
# Read response
response = httpConn.getresponse()
if (response.status != 200):
httpConn.close()
print "Error while fetching tokens from admin URL. Please check the URL and try again."
return
else:
data = response.read()
httpConn.close()
# Check that data returned is not an error object
if not assertJsonSuccess(data):
return
# Extract the token from it
token = json.loads(data)
return token['token']
# A function that checks that the input JSON object
# is not an error object.
def assertJsonSuccess(data):
obj = json.loads(data)
if 'status' in obj and obj['status'] == "error":
print "Error: JSON object returns an error. " + str(obj)
return False
else:
return True
# Script start
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
... View more
12-08-2014
01:31 PM
|
0
|
2
|
3116
|
|
POST
|
I would like to automate this process using ArcPy. I am following the documentation found here; ArcGIS Help 10.1 I am scripting this from the ArcMap Python Window. My error is; Runtime error Traceback (most recent call last): File "<string>", line 231, in <module> File "<string>", line 20, in main EOFError: EOF when reading a line # This script creates a bank of users and roles given a comma-separated text file
... # They should be listed in the following format and saved in a file with a .txt extension:
... #
... # User,Role,RoleType,Password,EMail,FullName,Description
... # John,Admins,ADMINISTER,changeme,johndoe@esri.com,John Doe,Server admin
... # Jane,Publishers,PUBLISH,changeme,janedoe@esri.com,Jane Doe,Server publisher
... # Etc.
...
... import json, urllib,httplib
...
... # For system tools
... import sys
...
... # For reading passwords without echoing
... import getpass
...
...
... def main(argv=None):
... # Ask for admin/publisher user name and password
... username = raw_input("myUserName:")
... password = getpass.getpass("myPassword:")
...
... # Ask for server name & port
... serverName = raw_input("http://myServer/arcgis/admin/login")
... serverPort = 6080
... View more
11-25-2014
03:20 PM
|
0
|
0
|
2994
|
|
POST
|
No, Let me clarify; I'd like to export my attribute table that I can view in an ArcGIS Online web map; not the actual feature service attributes; i.e. REST endpoint spatial reference, etc.
... View more
11-19-2014
03:45 PM
|
0
|
0
|
2371
|
|
POST
|
No you're correct in your understanding; I would like to export my attributes into a CSV from the associated feature service in ArcGIS Online using the same procedures as listed in the link that I provided above.
... View more
11-19-2014
03:40 PM
|
0
|
0
|
2371
|
|
POST
|
I have browsed to my content and I am unable to see where I can set the properties for a layer; do you mind adding a screen shot?
... View more
11-19-2014
03:24 PM
|
0
|
3
|
2371
|
|
POST
|
I am following the resource document; Use hosted web layers—Help | ArcGIS I do not see a Layers field which allows me to edit the property of my layers in the details web page....I would like to export my feature service attributes to a CSV.
... View more
11-19-2014
02:46 PM
|
0
|
7
|
5673
|
|
POST
|
I would like to automate a process that prints a list of map and feature services along with the associated SDE feature classes.
... View more
11-13-2014
08:30 AM
|
0
|
0
|
1479
|
|
POST
|
I have an application where I would like to create a workflow where users must select a request type and in order to submit a request, at least one of the affiliated request type subcategories must be selected. I am using 2 sets of combo boxes; one with my "main" request type, and other with my "subcategory" So if i.e. E-WASTE is chosen in my "main" request type, before an order can be submitted, the E-WASTE "subcategory" combo box must have a value selected. Here is a start with a function validating my request type and prohibiting the user from continuing unless a value is chosen, I'd like to extend this based on the values chosen in "cbRequestType"
function ValicateRequestData() {
if (dijit.byId("cbRequestType").getValue() == "") {
ShowSpanErrorMessage("spanServiceErrorMessage", messages.getElementsByTagName("spanErrorMsgType")[0].childNodes[0].nodeValue);
return false;
}
if (dijit.byId("cbRequestType").getValue() == "") {
ShowSpanErrorMessage("spanServiceErrorMessage", messages.getElementsByTagName("spanErrorMsgType")[0].childNodes[0].nodeValue);
return false;
}
... View more
11-10-2014
07:23 AM
|
0
|
0
|
614
|
|
POST
|
Hi Robert, I have solved this issue, the coded value is UNASSIGNED, I went back and changed my feature service, and my points rendered correctly.
... View more
11-10-2014
07:15 AM
|
0
|
0
|
383
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-16-2017 02:33 PM | |
| 1 | 01-18-2022 07:40 AM | |
| 1 | 04-28-2021 09:29 AM | |
| 1 | 10-24-2016 12:07 PM | |
| 1 | 04-28-2016 09:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-18-2022
03:08 PM
|