TRANSCODING OF 3D SHAPE
OBJECTS IN SHAPEFILE
INDUSTRIAL PROJECT - XC5711
NAME OF CANDIDATE : Anbuselvi. S NAME OF THE COMPANY : Spheruler
Solutions
REGISTER NUMBER : 2020239001 INTERNAL SUPERVISOR :
Dr. G. Sumathi
ABSTRACT
The transcoding of 3D shape data stored in .shp (Shapefile) format is an area of growing interest
in the field of Geographic Information Systems (GIS) and spatial data management.
This project focuses on the development of a transcoding system to convert 3D shape data stored
in .shp (Shapefile) format into alternative formats that is the Comma Separated Values (CSV).
This improves the compatibility and functionality for 3D visualization and data analysis.
2
EXISTING SYTEM
The Geospatial Data Abstraction Library (GDAL) and its vector data extension, OGR (OGR
Simple Features Library), Quantum GIS (QGIS) are the popular open-source tools for working
with geospatial data.
The above mentioned are the existing system in the transcoding of the shapefile.
Since all of them are third party libraries there might be various potential risks and the handling
of geometry properties becomes complex to the application.
Using the ESRI format of the GIS shapefile the application will be in a standard approach to
overcome all these issues. 3
PROPOSED SYSTEM
The alternate to this existing system is that of using the header of the Environmental Systems
Research Institute (ESRI) GIS shapefile.
The header and record values are an integral part of the Shapefile format itself.
They are not an independent system but rather a fundamental component of how shapefiles
store and organize data.
4
PROPOSED SYSTEM (Continued…)
To get the required output for the system, the header and record values of all the fields in the
shapefile must be read.
The binary reading of data in the files are used and hence the data are interpreted.
In the decoding process of the shapefile each bytes in shapefile are read and using Basestream it
helps to access and manipulate the raw data that a higher-level stream is processing.
In case of encoding the input csv file data which consists of all information about the shapefile is
encoded such that the geometries and the shape data must be handled correctly.
5
SYSTEM ARCHITECTURE
i. Decode Shapefile
6
SYSTEM ARCHITECTURE
ii. Encode Shapefile
7
DESCRIPTION OF THE MAIN FILE HEADER
Position Field Value
Type Order
Byte 0 File Code 9994
Integer Big
Byte 4 Unused 0
Integer Big
Byte 8 Unused 0
Integer Big
Byte 12 Unused 0
Integer Big
Byte 16 Unused 0
Integer Big
Byte 20 Unused 0
Integer Big
Byte 24 File Length File Length
Integer Big
Byte 28 Version 1000
Integer Little 8
Byte 32 Shape Type Shape Type
DESCRIPTION OF THE MAIN FILE RECORD
HEADERS
Position Field Value
Type Byte Order
Byte 0 Record Number Record Number Integer
Big
Byte 4 Content Length Content Length
Integer Big
9
PLATFORM/TOOLS USED
IDE : Visual Studio 2022
Framework : Windows Forms .Net 6.0 Framework
Language : C#
10
WORK PLAN
To learn about all the shape type data that are presented in the shapefile
ESRI GIS Shapefile specifications should be read from various reference resources.
Read all the shapefile data using basestream and write them in csv after extracting them from
the binary file
Generate test beds for the robustness of the output data.
Geometry and region of all the data are drawn to display them as a shapefile and 3D engine 11
WORK DONE
Learnt about the specifications of the ESRI GIS shapefile format and how to interpret with the 3D
shape data.
Binary reading of shapefile is done and csv writer of the data is on progress.
Decoding of few shape data is completed.
12
REFERENCES
• "ESRI Shapefile Technical Description ", An ESRI White Paper—July 1998
• "Geographic Information Science and Systems" by Paul A. Longley, Michael F.
Goodchild, David J. Maguire, and David W. Rhind
• "3D Engine Design for Virtual Globes" by Patrick Cozzi and Kevin Ring
• Shapefile - GIS Wiki | The GIS Encyclopedia
• Geographic information system – Wikipedia
13
THANK YOU.