Is there any way to create some sort of 3D surface (mesh, TIN, elevationLayer) from contour lines on the client side with ArcGIS JS API? Or alternatively edit a hosted 3D surface (any format)? In our application, the user can draw/edit contour lines, so I was wondering if there is way to generate a 3D surface from those edited contour lines on the client side.


Yes, you can create a custom elevation layer by subclassing BaseElevationLayer. More details are here.

Hope this helps.


  • I used BaseElevationLayer, and was able to modify it (basically to do cut and fill on topography). But the resolution (pixel size) doesn't seem to be adequate for detailed 3D modeling. I was trying to put a building on a very steep land and get a rough estimate of the volume of needed cut and fill under the building. But the edges don't perfectly align with building footprint, given the relatively large size of pixels. – Reza Amindarbari Mar 30 '18 at 21:46

Topo to Raster is a geoprocessing tool that relies on the Spatial Analyst extension in ArcGIS Desktop and could theoretically be published as a custom GP service in ArcGIS Enterprise and consumed from a JSAPI application.


related: Creating a dem from contours

  • Although I don't have ArcGIS Enterprise license for project I am currently working on, this is definitely something to consider for future projects. – Reza Amindarbari Jan 25 '18 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.