AnsweredAssumed Answered

is it possible to set terrain (AttributeLayer) resolution using python? (from default 1024x1024 to 4096x4096)

Question asked by mdekys_bagira on Jun 29, 2017
Latest reply on Aug 23, 2017 by TFuchs-esristaff



I am able to create new terrain (CE calls it attribute layer) using:


addAttributeLayer(self, name, texture=None, heightmap=None, useGeoRef=False)

and I can also change the terrain dimensions and positions using:


setAttributeLayerExtents(self, layer, extents)

But I haven't found any information in documentation about how to set terrain resolution from default (1024x1024) to 4096x4096 using python script.


Am I missing something or this feature isn't implemented yet? (so I have to do it manually)



The reason why I need this is to automatically generate lots of CE projects (each will use it's own terrain tile + vector data) and automatically preprocess terrain (in full resolution) and doing this manually will take forever..



One incoplete workaround would be to: copy existing scene file containing only terrain layer with correctly set resolution and then change the other things (terrain coordinates and dimensions using: setAttributeLayerExtents )

but I also need to change elevation map and texture location and I'm not sure if this is possible either (haven't found information about it in documentation)