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
|
15
|
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
|
17
|
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
|
334
|
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
|
214
|
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
|
214
|
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
|
402
|
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
|
1236
|
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
|
17
|
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
|
21
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|