In my work job, I need workspace in my cloud to be operated from my javascript web application, that converts standard Autodesk DWG files into shapefiles.
The DWG coordinate system of ALL the files I have to convert, is ALWAYS EPSG:2039, even if not explicitly specified,
and the coordinate system of the resulting shapefiles should be the SAME - EPSG:2039
Each DWG file contains DWG typical standard 5 layers - Annotation, Point, Polyline, Polygon, and Multipatch.
Attached are 5 files - The workspace, and typical actual 4 DWG files.
The DWG is displayed a little different by next ESRI desktops:
- By ArcMap (ArcGIS Desktop) I see the 5 layers as I describe them here - 5 layers, each with its specific attribute table. It's clear and simpls, so next description is when I see the DWG in ArcMap.
- By ArcGIS-Pro (and set coordinate system to "Israel TM Grid" that is EPSG:2039), then it presents the 5 DWG layers as 5 groups, where each group contains several "layers", where the "real" DWG 5 layers are the first layer in each group.
As can be seen, EACH one of the standard DWG layers has its standard attribute table with 9 or 10 fields, all of them standard DWG fields for each layer type:
- Annotation layer has next 9 fields - FID, Shape, Entity, Layer, Color, Elevation, RefName, Style, Text
- Point layer has next 10 fields - FID, Shape, Entity, Layer, Color, Linetype, Elevation, LineWt, RefName, Angle
- Polyline layer has next 9 fields - FID, Shape, Entity, Layer, Color, Linetype, Elevation, LineWt, RefName
- Polygon layer has next 9 fields - FID, Shape, Entity, Layer, Color, Linetype, Elevation, LineWt, RefName
- Multipatch layer has next 9 fields - FID, Shape, Entity, Layer, Color, Linetype, Elevation, LineWt, RefName
I assume the workspace could be designed in one of 2 ways:
- By 5 workspaces, each converting ONE of the 5 DWG layers to the proper zipped shapefile for this specific layer,
- By a single workspace that creates a single zip file containing all 5 shpefiles.
Notes -
- DWG "Annotation" layer will be a shapefile layer of type Point, but its data and its attribute table are different from DWG "Point" layer, so both should be converted to separate shapefiles.
- The DWG "Multipatch" layer is not important and could be skipped.
BUT, WHAT IS MOST IMPORTANT -
That each shapefile will contain its related attribute table with all the field names as were in the DWG and with all the values, exactly as were in the DWG.
Help will be appreciated, since I need this for my work job,
Michael