POST
|
Is there a solution to this problem? I am getting the error with Postgres 9.4 and ArcSDE 10.4.1 on my query: SELECT a.objectid AS aid, MAX(s."value") AS "maxvalue" FROM test_points AS a INNER JOIN test_areas AS s ON ST_Intersects(a.shape, s.shape) GROUP BY aid
... View more
11-19-2018
01:49 AM
|
0
|
0
|
502
|
POST
|
So I made a python script for automatic updates of all feature classes in a geodatabase (also in feature datasets), my be this is helpful to others. import arcpy
import codecs
import os
import xml.dom.minidom
workspace = r'C:\data\geodatabase.gdb' # or path to sde-file
temporaryXmlFile = r'C:\temp\xmlMetadataTransferFile.xml'
def getAlias(featureClass):
return arcpy.Describe(featureClass).aliasName
def createTemporaryXmlMetadataFile():
with open(temporaryXmlFile, 'w') as theFile:
theFile.write('<metadata />')
def writeAliasToTemporaryXmlMetadataFile(alias):
xmlFile = open(temporaryXmlFile)
dom = xml.dom.minidom.parse(xmlFile)
titles = dom.getElementsByTagName("resTitle")
for title in titles:
title.firstChild.data = alias
title.setAttribute('Sync', 'FALSE')
with codecs.open(temporaryXmlFile, 'w', 'utf-8') as file2:
dom.writexml(file2)
def doUpdate(path):
arcpy.env.workspace = path
fcList = arcpy.ListFeatureClasses()
if fcList is None:
print '- WARN: No feature classes found'
return
for fc in fcList:
print '- Feature class: ' + fc
alias = getAlias(fc)
print ' Alias: ' + alias
createTemporaryXmlMetadataFile()
arcpy.SynchronizeMetadata_conversion(fc, "ALWAYS")
arcpy.MetadataImporter_conversion(fc, temporaryXmlFile)
writeAliasToTemporaryXmlMetadataFile(alias)
arcpy.MetadataImporter_conversion(temporaryXmlFile, fc)
arcpy.SynchronizeMetadata_conversion(fc, "ALWAYS")
print 'Set resource title to alias name of all feature classes'
doUpdate(workspace)
fdsList = arcpy.ListDatasets("*", "Feature")
if fdsList is None:
print '- WARN: No feature datasets found'
else:
for fds in fdsList:
print 'Feature dataset: ' + fds
path = os.path.join(workspace, fds)
doUpdate(path)
print 'done.'
... View more
01-04-2018
03:04 AM
|
1
|
0
|
549
|
POST
|
I have a SDE with a lot of feature classes. I want to populate the metadata of the feature classes mostly automatic. Can I update the metadata title of all feature classes by using the alias name of the feature class? I have used the geoprocessing tool "Synchronize Metadata", it is useful for bounding box, spatial reference, etc. but it wont update the metadata title.
... View more
01-02-2018
08:02 AM
|
1
|
2
|
866
|
POST
|
Is not that I have to wait a long time, but check the execution time of both lines when executed separately in ArcGIS Pro 2.0 python window: arcpy.Describe('data')
arcpy.da.Describe('data') Which one is a bit faster? 🙂 The second one has the "running progress dots", while the first one returns the describe object at once.
... View more
08-08-2017
07:35 AM
|
0
|
3
|
2708
|
POST
|
Is it possible that the the new is slower than the old one? May be because the new one is based on dictionaries which are filled right away, and the old one "lazy loads" property data?
... View more
08-08-2017
04:46 AM
|
0
|
5
|
2708
|
POST
|
I am at my very first steps using the Pro SDK. I have found some samples on how to add layers to the active map by using the LayerFactory. It was pretty simple to add a map service from the gis server. Now I want to add a WMS to my map. My naive approach was to replace the map server url with the wms url: LayerFactory.Instance.CreateLayer("http://sg.geodatenzentrum.de/wms_webatlasde.light ", MapView.Active.Map); But this will throw an exception. What is the correct way to add a wms to my map?
... View more
08-04-2017
07:00 AM
|
0
|
2
|
895
|
POST
|
I have created a FGDB with ArcGIS, the contained feature class has some fields with a coded value domain. When I use the FGDB API to read the features, are the codes or the values visible?
... View more
12-06-2016
06:32 AM
|
0
|
0
|
1386
|
POST
|
Too bad this isn't possible... Did you notice the differences in the REST API docs between 10.1 and 10.4? The topic "Export Map" of "Map Service", the note of "dynamicLayer" parameter. 10.1.1: "If the layer source is a dataLayer based on a data table (table or queryTable dataSource), then set drawingInfo. In case of dataLayer based on raster data source only transparency in the drawingInfo is supported. renderer is unsupported at 10.1." Source: ArcGIS Server REST API 10.4.1: "If the layer source is a dataLayer based on a data table ( table or queryTable dataSource), then set drawingInfo." Source: https://localhost:6443/arcgis/sdk/rest/index.html#/Export_Map/02ss00000062000000/ (is this available online?)
... View more
12-01-2016
04:19 AM
|
1
|
0
|
706
|
POST
|
Hello Joanne, thanks for your example, now I can use a raster file from a registered folder to use a dynamic raster file in my service. However, the renderer from the service is not used to diplay the image vie Export Map function. Instead, a black and white stretch is used for drawing the raster. Did you manage to use the symbology of the service for a dynamic raster in your map service? My Request looks like this: https://localhost:6443/arcgis/rest/services/DynRaster/MapServer/export?bbox=97540.59674654296,5160630.089092379,4117123.002818559,6932517.524568021&bboxSR=&layers=&layerDefs=&size=&imageSR=&format=png&transparent=false&dpi=&time=&layerTimeOptions=&dynamicLayers=[{"source":{"type": "dataLayer","dataSource":{"type": "raster","workspaceId": "RasterFolder","dataSourceName": "TAMM_01_1881_01s.tif"}}}]&gdbVersion=&mapScale=&rotation=&f=html This is the value for dynamicLayers, human-readable: [{
"source": {
"type": "dataLayer",
"dataSource": {
"type": "raster",
"workspaceId": "RasterFolder",
"dataSourceName": "TAMM_01_1881_01s.tif"
}
}
}]
... View more
12-01-2016
04:07 AM
|
0
|
0
|
691
|
POST
|
I can ask my colleague at Esri Germany support to send you the case number with Esri Inc.
... View more
09-22-2016
08:00 AM
|
0
|
1
|
422
|
POST
|
Is it a "normal" map service or a map service associated to an asynchronous geoprocessing service? In my case, it is the latter one. At this time, Esri Germany can reproduce the bug with ArcGIS server 10.2.2, while Esri Inc cannot reproduce it. Until now, we haven't found a difference in patch level or server operating system or anything, which can explain the bug. Esri Germany stated that an upgrade to ArcGIS server 10.4.1 may solve the problem. I am currently thinking about installing the newest version of ArcGIS server for the geoprocessing service, as Esri Inc cannot reproduce the bug and will likely not make a patch for our small user base. May be you have some more users to get some more weight in fixing the bug 🙂
... View more
09-22-2016
06:51 AM
|
0
|
3
|
1013
|
POST
|
In my case, I think I am coming to the crux of the matter. The GP-Service has an associated Map-Service to display the results. The jobs directory of the GP-Service is configured to never clean up the results, so that the app can always view them via map service. I discovered that the map service never frees up his memory, so the ArcSOC process on ArcGIS Server is using more and more memory. When the soc reaches 800 MB of memory, it stops working and responds with errors. The only way to get back to normal is restarting the service and thus freeing the memory. I am currently working on the issue with Esri Germany Support. Btw, this problem occurs on ArcGIS Server 10.2, but I think 10.4.1 does not show this error.
... View more
09-01-2016
01:05 AM
|
0
|
5
|
1013
|
POST
|
Sorry for my delayed answer, in the meantime it worked (or seemed to work?), now the error is back. Jonathan Quinn: Can you verify the .msd exists in that location? Yes, the MSD file is existing in the folder. Also the FGDB referenced in the MSD is existing. Very hard to debug, I have no clue what is going wrong 😞
... View more
08-29-2016
02:01 AM
|
0
|
6
|
1013
|
POST
|
What is "the map"? The MSD-File is existing on the disc, how can I check what is missing? The source data of all layers referenced in the MSD file (which is a FGDB) is accessible.
... View more
06-03-2016
01:45 AM
|
0
|
8
|
1013
|
Title | Kudos | Posted |
---|---|---|
1 | 08-04-2014 06:11 AM | |
1 | 08-04-2014 10:18 PM | |
1 | 06-02-2016 05:14 AM | |
1 | 12-01-2016 04:19 AM | |
1 | 01-04-2018 03:04 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|