|
POST
|
Yes, it dose look like that, more or less: http://<server>/arcgis/services/<folder>/<service>/MapServer/WMSServer It is wired because adding WMS to other services in the same folder works fine.... ArcServer 10.1
... View more
07-27-2016
09:38 AM
|
0
|
2
|
1762
|
|
POST
|
I am new to ArcServer. I am trying to make a service that other applications can use (Petrosys). The application can read WMS. So, I tuned on WMS for the service but when I try and add a WMS server to ArcCatalog I get a syntax error. I am copying and pasting the url from the from the Capabilities/WMS dialog within the Service Editor into the Add WMS Server dialog. The service is made from a tile cache that has been copied to a local drive on the server then added to an mxd and published. When I do this same thing with a service that is only vector it works fine. Any help would be appreciated! Thanks, Forest
... View more
07-26-2016
05:20 PM
|
0
|
5
|
3123
|
|
POST
|
There are a ton of ways to do stuff like this in python. Are you trying to have a window where the user can enter values by hand into the matrix? I would guess that the most direct approach would be to just use a script tool. What is a script tool?—Geoprocessing and Python | ArcGIS for Desktop The input would not come is as matrix but as a list of parameters which you then could add to NumPy matrix if you need to do matrix operations. numpy.matrix — NumPy v1.10 Manual Or one could have the user make in as an xls or csv and then have the script tool take that as an input....
... View more
05-14-2016
12:24 PM
|
1
|
2
|
5442
|
|
POST
|
Any one know how to get a list of only raster layers in a mxd without using arcpy.mapping.ListLayers(mxd) as it looks like it the dialog is occurring when this object asks for info for the non-sde layers?
... View more
05-14-2016
12:00 PM
|
0
|
1
|
2564
|
|
POST
|
It is a non-sde connection that is causing the problem.
... View more
05-14-2016
11:58 AM
|
0
|
0
|
2564
|
|
POST
|
Michael Volz wrote: If you open 1 of the mxds yourself, would you be presented with having to enter credentials for the data connection? Yes, I would. Michael Volz wrote: Maybe you would need to first get an inventory of all the connections on the mxds that you will be resourcing where you save this information to a text file or a spreadsheet. Then if possible you could get the actual credentials for all the connections that you need to make. Then you could have a python subroutine called where you would associate each user with the appropriate password and then make the connection. Then you can use this same information to make new user connections in the new database and then save the mxds and your mxds will now be resourced and you have bypassed the script stopping where it asks for credentials. The big question here is if you would have permission to access all the user's passwords and place them in your script . You will also want to keep this script in a secure location as it would be listing all of the user's passwords. I do not need to update the (non-sde) connections that are causing the Enter Password dialog. They are fine. I just need to update all raster layers in the mxds that point to one sde schema, sde_user, in the code. This part is working, if I just hit cancel on the dialog the code completes and successfully updates the target connections. The problem is that one just has to sit there and hit cancel over and over. Something like 40 times for my test set of mxds. The other option would be to some how pass my credentials to the dialog.
... View more
05-14-2016
11:53 AM
|
0
|
0
|
2564
|
|
POST
|
Dan Patterson wrote: So Forest, you are on your own... another reason I prefer working with local data hope you find something Ya, local is nice. But just not possible in our situation. We would have 200 copies of a feature class littered across the network--none of them the same or up to date.
... View more
05-14-2016
11:38 AM
|
0
|
0
|
2564
|
|
POST
|
I need to re-point all sde raster layers in mxds to a new sde instance (we are moving from sde 9.3.1 to 10.1). Many people have also have ODBC connections within their mxds for tabular data from non-spatial databases. The problem is when I run the script it is constantly prompting me for credentials. I could care less about them for this exercise as I do not need to update the ODBC connection. I would like to just suppress them. Can this be done? import arcpy
import os
import time
path_layer = r"***"
osa_sde_path = r"***"
sde_user = "***"
log = open("log.txt", "w")
for dir_path, dir_names, file_names in os.walk(path_layer):
for file_name in file_names:
if file_name[-3:] == "mxd":
ts = os.path.getmtime(os.path.join(dir_path, file_name))
mod_date = time.strftime('%m/%Y', time.gmtime(ts))
mod_date_list = mod_date.split("/")
if int(mod_date_list[1]) > 2012 and int(mod_date_list[0]) > 4:
mxd = arcpy.mapping.MapDocument(os.path.join(dir_path, file_name))
layers_list = arcpy.mapping.ListLayers(mxd)
print "Updating:\t" + os.path.join(dir_path, file_name)
for layer in layers_list:
if layer.supports("DATASOURCE"):
data_source = layer.dataSource
if data_source.find(sde_user) != -1 and layer.isRasterLayer:
print "\tUpdating:\t" + layer.name
dot_index = data_source.rfind(".")
dataset_name = data_source[dot_index + 1:]
print "\t\tNew Path:\t" + os.path.join(osa_sde_path, sde_user + "." +
dataset_name)
layer.replaceDataSource(osa_sde_path, "SDE_WORKSPACE", sde_user + "." +
dataset_name, False)
if layer.isBroken:
log.write(os.path.join(dir_path, file_name))
print "Data Source Broken"
mxd.save()
log.close() Suggestions?
... View more
05-13-2016
04:35 PM
|
0
|
10
|
4875
|
|
POST
|
Sure servProp = layer.serviceProperties
print "Authentication: " + servProp.get('AuthenticationMode', 'N/A') Output: "Authentication: OSA" So, that part does work. I also revoked permissions for the Oracle OSA reader role and the layer does in fact stop working, as one would hope. The behavior looks right.
... View more
05-13-2016
03:29 PM
|
1
|
1
|
1791
|
|
POST
|
Thanks for the link Dan. I did look around in this location this morning. Layer—Help | ArcGIS for Desktop Which is all good. I imagine that I could ask it with arcpy... But what I want to know is why does ArcCatalog not report this back to the end user?
... View more
05-13-2016
02:55 PM
|
1
|
3
|
1791
|
|
POST
|
Why does the raster data source properties not show me me the authentication method?
... View more
05-13-2016
02:15 PM
|
0
|
5
|
4267
|
|
POST
|
This could be a little tricky. My approach would be to intersect each building polygon with other near buildings. This will give you all shared walls with the height of each in an attribute table. Then one could turn all of the building polygons into lines and erase shared walls found with the intersect from that feature class or shapefile. One can use the field calculator to find the difference in height of the intersect feature. This, with the non-shared walls would give you the building blocks to find your area calculation. The tricky part is doing this for all buildings in your shapefile. As it would require each building to be selected and intersected with all of it's near buildings. Each intersect would create a new feature class that would all need to be merged together in the end. I would program a solution for this first part of your problem with python. But others may use model builder which does not require programming. Intersect—Help | ArcGIS for Desktop Calculate Field examples—Help | ArcGIS for Desktop Merge—Data Management toolbox | ArcGIS for Desktop Feature To Line—Data Management toolbox | ArcGIS for Desktop Python for ArcGIS | ArcGIS Resource Center What is ModelBuilder?—ArcGIS Pro | ArcGIS for Desktop Erase—Help | ArcGIS for Desktop
... View more
05-04-2016
11:30 AM
|
0
|
1
|
4473
|
|
POST
|
Ya, that would not be so great because when we go to export the stuff out of sde for reports we would have to change it back to the original format. Which feels like unnecessary overhead. I don't know I am inclined to just use it as it is. As it is displaying properly in Arc. Also, it is sorting properly in arc and when using SQL with TOAD outside of the the arc environment. If it is ever a problem having the "holding" date in the table we can just query it out on the backend.
... View more
04-22-2016
09:45 AM
|
0
|
0
|
3381
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 05:39 PM | |
| 1 | 07-30-2024 09:05 AM | |
| 1 | 07-08-2024 05:32 PM | |
| 1 | 03-20-2024 10:27 AM | |
| 6 | 03-13-2024 03:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-12-2025
11:02 AM
|