Reading the drawing: the DXF file is read in your browser, in the background. Blocks are expanded with their scale, rotation and nested blocks; polyline arcs (“bulges”), circles, arcs, ellipses and splines are split into 1° segments; texts are stripped of their formatting codes. A block with attributes (survey point, boundary mark) becomes a named point.
Systems: Morocco Lambert zones I to IV (Merchich datum, EPSG registry parameters), UTM WGS 84 zones 29 and 30 North (Krüger formulas, checked to the millimetre against the PROJ reference library) and GPS coordinates in degrees. The tool suggests the most plausible zone from the coordinate extent, without imposing it, and warns when a plan falls outside Morocco or looks like a local drawing.
Fitting a local drawing: from points with known coordinates, the tool computes a Helmert similarity (translation, rotation, scale) or an affine transformation, by least squares, and shows the parameters, the discrepancy at each point and the standard deviation. These discrepancies tell you whether the fit can be trusted.
Area: each closed outline is measured in Lambert with the shoelace formula (projected area, as on land title plans), as in the area calculator.
- Inputs: ASCII DXF R12 to 2018, CSV/TXT point files, keyboard entry, KML, KMZ and GeoJSON.
- Outputs: KML (one folder per layer, layer colours, area in the description), KMZ, GeoJSON, CSV Lambert + GPS, R12 DXF in Lambert.
- Not read: DWG and binary DXF (export them to ASCII DXF), hatches, images, 3D objects (solids, surfaces).
An exact calculation on wrong coordinates gives a wrong position: always check the result on the map.