Skip to main content

Hi Team,

I, as a part of a project of an organization, am using Cesium to plot geojson files of the floor plans on the cesium map. I am having trouble geo-referencing the AutoCAD drawings before converting them to geojson to use them in cesium.

The limitation is, I cannot use any software to geo-reference them such as ArcGIS Pro, QGIS, etc.

I am looking for a way to implement the process of geo-referencing using control points in our web app using python or any way that doesn’t require use of a software.

Are there any ways to do so?

Any help is much appreciated.

Thanks!

Hi @rchoudhary​ ,

 

If you know the source coordinate system that the CAD file was drawn in, you should simply be able to set the coordinate system (this would be the best method). Otherwise, you could potentially get this done either by offsetting or using an AffineWarper to help you get as close as possible to the actual position. The AffineWarper is likely the next closest you'll get as it does the following:

"Performs warping operations on the spatial coordinates of features. It is used to adjust a set of observed input features according to a spatial transform defined by a set of control vectors"

 

Another method, if you know the corners, it to aggregate everything together and Offset the aggregate feature to the correct min/max x/y coordinates. This is a more manual process but can help you move your drawing as a whole in any direction (x/y/z). A Rotator can also be helpful if needed. Regardless knowing the source coordinate system is key.

 

Unfortunately Georeferencing (and georeferencing with GCP's) is for raster processing as the coordinates are set by the known origin of coordinates, cell spacing (cell size), and rotation.


Reply