POST
|
Robert, I am having a little trouble finding the right request this time. There isn't a query request like there previously was. Maybe I'm doing something wrong. This URL could possibly be the one we are looking for; it mentions the correct layer and field - https://maps.cstx.gov/cstx/rest/services/Rental_Registration/MapServer/0/generateRenderer?classificationDef=%7B%22type%2… A screenshot of the requests (the red one is for the URL above):
... View more
10-28-2015
11:16 AM
|
0
|
1
|
446
|
POST
|
Odd. Those fields are not from the layer I'm querying. They are fields in a different layer, and the Shape.STArea() and Shape.STLength() fields are disabled from that layer.
... View more
10-27-2015
01:45 PM
|
0
|
3
|
446
|
POST
|
Thanks again! I really appreciate the continued help! https://maps.cstx.gov/cstx/rest/services/Rental_Registration/MapServer/2/query?f=json&returnGeometry=true&spatialRel=esr…
... View more
10-27-2015
12:45 PM
|
0
|
5
|
446
|
POST
|
10-26-2015
01:49 PM
|
0
|
12
|
638
|
POST
|
I'm sorry! I am not on point today. How about this one... There is a lot of info. If you would like me to expand one of the sections, let me know. Thanks for your continued help.
... View more
10-26-2015
12:44 PM
|
0
|
14
|
638
|
POST
|
10-26-2015
12:21 PM
|
0
|
16
|
638
|
POST
|
Thanks for the help, Jake. I wanted to show you how I have the query set up. If you see anything I could do different to make this work, I would appreciate any feedback. I have contacted Tech Support and asked to be added to the bug. Thanks for all your help!
... View more
10-26-2015
11:23 AM
|
0
|
0
|
264
|
POST
|
Robert, Here are a couple screenshots. I have tried searching with multiple values that are known to exist and regardless of what I search I get the message that "The value entered is not valid." Also, I have this query set up for unique values. I would expect the drop-down arrow to produce multiple values to choose from, but that function will not work either. Thank you for your help!
... View more
10-26-2015
11:01 AM
|
0
|
18
|
638
|
POST
|
I have a view joined with a feature class (one-to-one). I have set up a query/filter in the Web App builder from the feature class to search the joined view data but the query fails. What reasons could cause this query to fail? Can I query joined data? Thank you!
... View more
10-26-2015
09:07 AM
|
0
|
23
|
4089
|
POST
|
Is it possible to change the color properties of a dimension feature (numbers and arrows)?
... View more
06-18-2015
05:47 AM
|
0
|
0
|
2272
|
POST
|
Based on ESRI's best practices for compressing a database (29160 - Compress a versioned database to state 0), I created a script that completes all the tasks. I am wondering though - If the SDE_Compress_Log start_state_count of a database is 1, is there any reason it would be necessary to compress the database, rebuild indexes, and update database statistics?
... View more
04-17-2015
06:52 AM
|
0
|
0
|
3471
|
POST
|
Just FYI. arcpy.ClearWorkspaceCache_management() was the answer to the problem. The workspace was holding onto .sde connection properties. Clearing the workspace cache resolved that.
... View more
04-17-2015
05:46 AM
|
1
|
0
|
351
|
POST
|
I put together this python script to compress databases. There seems to be an issue with the for loop where it correctly loops through the list of database names throughout the script except within the ArcPy process where a new database connection is created and the database name is used to define which database to connect to. While all "print" indicators appear to be using the desired database, the database connection is repeatedly created with only the first database in the list of database names and, therefore, the first database is the list is compressed over and over, while the remaining databases are not compressed (confirmed in the SQL sde compress log). Any advise and help is greatly appreciated! # Import modules
import arcpy
import datetime
import time
import smtplib
import os
# Find and store process beginning time
starttime = datetime.datetime.now()
# Local variables
saConnect = r"G:\\GISAdmin\\Database_Management\\Compress.sde"
databaseName = ["devservices", "electric", "fire", "gis", "parks", "police", "publicworks", "water_services"]
# Delete database connection file if exists
if os.path.exists(saConnect):
os.remove(saConnect)
print ("\n\n\nExisting database connection deleted.")
else:
print ("\n\n\nNo database connection found. I'll just make one for all y'all.")
for d in databaseName:
print ("\n\nBeginning compression processes for " + str(d) + " database.")
# Create database connection file
arcpy.CreateDatabaseConnection_management(r"G:\\GISAdmin\\Database_Management", "Compress.sde", "SQL_SERVER", "gis3", "DATABASE_AUTH", "sa", "******", "SAVE_USERNAME", d, "", "TRANSACTIONAL", "sde.DEFAULT", "")
print ("Database connection file created for " + str(d))
# Set the workspace
arcpy.env.workspace = r"G:\\GISAdmin\\Database_Management\\Compress.sde"
print ("Workspace defined")
# Set a variable for the workspace
workspace = arcpy.env.workspace
# Get a list of connected users
users = arcpy.ListUsers(workspace)
print ("Users found")
# Get a list of usernames of users currently connected
viewUsers = [user.Name for user in users]
print ("View Users")
# Get and format connection times for each user
connectTimeFormat = datetime.datetime.strftime(user.ConnectionTime, "%Y-%m-%d %H:%M:%S")
viewConnectTime = [connectTimeFormat for user in users]
print ("\n\nUSERS FOR " + str(d))
template = "{0:4}|{1:15}"
print template.format("USER", "CONNECTION TIME") # header
for userWho, userWhen in zip(viewUsers, viewConnectTime):
print userWho, userWhen
# Block new connections to the database
arcpy.AcceptConnections(workspace, False)
print ("\n\nNew connections to database blocked")
# Disconnect all users from the database
arcpy.DisconnectUser(workspace, "ALL")
print ("Database users disconnected")
# Run the compress tool
arcpy.Compress_management(workspace)
print ("\n\nDatabase compression complete")
# Allow the database to begin accepting connections again
arcpy.AcceptConnections(workspace, True)
print ("Allowing new connections to database")
# Delete database connection file
if os.path.exists(workspace):
os.remove(workspace)
print ("Connection for " + str(d) + " deleted.")
# Find and store process beginning time
endtime = datetime.datetime.now()
... View more
03-12-2015
07:38 AM
|
0
|
3
|
4420
|
Title | Kudos | Posted |
---|---|---|
1 | 01-25-2024 01:44 PM | |
1 | 01-25-2024 10:59 AM | |
1 | 01-25-2024 10:34 AM | |
1 | 11-03-2023 06:30 AM | |
2 | 10-24-2023 08:21 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|