<div dir="ltr"><div>Nick,</div><div><br></div><div>What Even said and here is the list of files I use for a very restricted build of GDAL with just a minimum of drivers. e.g. I don't build support for S57, so I don't include the S57 only data files. But if you include GML, you might need gml_registry.xml and the files that the xml references.</div><div><br></div><div>-kurt</div><div><br></div><div>Not used only applies to my very funky build env.</div><div><br></div><div> "compdcs.csv", // Used by ogr_fromepsg.cpp.</div><div> "coordinate_axis.csv", // Used by ogr_fromepsg.cpp, gt_wkt_srs.cpp.</div><div> "cubewerx_extra.wkt", // Used by epsg.wkt.</div><div> // "datum_shift.csv", // Not used.</div><div> "ecw_cs.wkt", // Used by ogr_srs_erm.cpp, ecwdataset.cpp.</div><div> "ellipsoid.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.</div><div> "epsg.wkt", // Used by ogr_fromepsg.cpp.</div><div> "esri_extra.wkt", // Used by epsg.wkt.</div><div> "esri_StatePlane_extra.wkt", // Used by ogr_srs_esri.cpp.</div><div> "esri_Wisconsin_extra.wkt", // Used by ogr_srs_esri.cpp.</div><div> "gcs.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp,</div><div> // ogr_srs_esri.cpp, sqlite.</div><div> "gcs.override.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.</div><div> "gdal_datum.csv", // Used by geo_normalize.c, ogr_srs_esri.cpp,</div><div> // gt_wkt_srs.cpp.</div><div> "geoccs.csv", // Used by ogr_fromepsg.cpp.</div><div> "gml_registry.xml", // Used by gmlregistry.cpp, ogrgmldatasource.cpp.</div><div> "gt_datum.csv", // Used by nitfdataset.cpp.</div><div> "gt_ellips.csv", // Used by nitfdataset.cpp.</div><div> // "header.dxf", // Used by ogrdxfwriterds.cpp, which is not used.</div><div> "inspire_cp_BasicPropertyUnit.gfs", // Used by gml_registry.xml.</div><div> "inspire_cp_CadastralBoundary.gfs", // Used by gml_registry.xml.</div><div> "inspire_cp_CadastralParcel.gfs", // Used by gml_registry.xml.</div><div> "inspire_cp_CadastralZoning.gfs", // Used by gml_registry.xml.</div><div> "nitf_spec.xml", // Used by nitffile.c.</div><div> // "nitf_spec.xsd", // Used by nitf_spec.xml, which is not used.</div><div> // "osmconf.ini", // Used by ogrosmdatasource.cpp, which is not used.</div><div> "ogrvrt.xsd", // Used by ogrvrtdriver.cpp.</div><div> "ozi_datum.csv", // Used by ogr_srs_ozi.cpp.</div><div> "ozi_ellips.csv", // Used by ogr_srs_ozi.cpp.</div><div> "pci_datum.txt", // Used by ogr_srs_pci.cpp.</div><div> "pci_ellips.txt", // Used by ogr_srs_pci.cpp.</div><div> "pcs.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.</div><div> "pcs.override.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.</div><div> "prime_meridian.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp, rgdal.</div><div> "projop_wparm.csv", // Used by geo_normalize.c.</div><div> "ruian_vf_ob_v1.gfs", // Used by gml_registry.xml.</div><div> "ruian_vf_st_uvoh_v1.gfs", // Used by gml_registry.xml.</div><div> "ruian_vf_st_v1.gfs", // Used by gml_registry.xml.</div><div> "ruian_vf_v1.gfs", // Used by gml_registry.xml.</div><div> // S57 driver.</div><div> // "s57agencies.csv", // Not used.</div><div> // "s57attributes_aml.csv", // Not used.</div><div> // "s57attributes.csv", // Not used.</div><div> // "s57attributes_iw.csv", // Not used.</div><div> // "s57expectedinput.csv", // Not used.</div><div> // "s57objectclasses_aml.csv", // Not used.</div><div> // "s57objectclasses.csv", // Not used.</div><div> // "s57objectclasses_iw.csv", // Not used.</div><div> // "seed_2d.dgn", // DGN driver, not used.</div><div> // "seed_3d.dgn", // DGN driver, not used.</div><div> "stateplane.csv", // Used by ogr_fromepsg.cpp and IDRISI driver.</div><div> // "trailer.dxf", // DXF driver, not used.</div><div> "unit_of_measure.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp, etc.</div><div> "vertcs.csv", // Used by gt_wkt_srs.cpp and ogr_fromepsg.cpp.</div><div> "vertcs.override.csv", // Used by ogr_fromepsg.cpp.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 10:13 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le mercredi 15 juin 2016 18:27:33, Trajce Nikolov NICK a écrit :<br>
> Hi Community,<br>
><br>
> I am new in town ;-). But using gdal for a decade or so. Never been in<br>
> situation as now, when I have to filter the data/files that come with gdal<br>
> for the installer of the software from our company.<br>
><br>
> There are bunch of files located in the gdal/data folder and I need to know<br>
> which are the ones that are needed for re-projecting of source files<br>
> (elevation, vector files)<br>
<br>
</span>Foreword notice: you break the warranty by cherry picking some of the data<br>
files<br>
Foreword notice 2: GDAL comes without any warranty (unless you pay a service<br>
provider)<br>
<br>
That said, those ones should be sufficient :<br>
<br>
$ grep CSVFilename ogr/ogr_fromepsg.cpp<br>
const char *pszFilename = CSVFilename( "unit_of_measure.csv" );<br>
const char *uom_filename = CSVFilename( "unit_of_measure.csv" );<br>
const char *pszFilename = CSVFilename("gcs.override.csv");<br>
pszFilename = CSVFilename("gcs.csv");<br>
const char *PM_FILENAME = CSVFilename("prime_meridian.csv");<br>
const char *pszFilename = CSVFilename("gcs.override.csv");<br>
pszFilename = CSVFilename("gcs.csv");<br>
CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),<br>
const int nUOMLength = atoi(CSVGetField( CSVFilename("ellipsoid.csv" ),<br>
CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),<br>
CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),<br>
CPLStrdup(CSVGetField( CSVFilename("ellipsoid.csv" ),<br>
CPLString osFilename = CSVFilename( "pcs.override.csv" );<br>
osFilename = CSVFilename( "pcs.csv" );<br>
const char *pszFilename = CSVFilename( "pcs.override.csv" );<br>
pszFilename = CSVFilename( "pcs.csv" );<br>
const char *pszFilename = CSVFilename( "coordinate_axis.csv" );<br>
const char *pszFilename = CSVFilename( "vertcs.override.csv" );<br>
pszFilename = CSVFilename( "vertcs.csv" );<br>
// pszFilename = CSVFilename( "compdcs.override.csv" );<br>
const char *pszFilename = CSVFilename( "compdcs.csv" );<br>
// pszFilename = CSVFilename( "compdcs.override.csv" );<br>
const char *pszFilename = CSVFilename( "geoccs.csv" );<br>
if( CSVScanFileByName( CSVFilename( "gcs.csv" ),<br>
CSVFilename( "gcs.csv" ) );<br>
atoi( CSVGetField( CSVFilename( "stateplane.csv" ),<br>
<br>
gdal_datum.csv might also be needed for shapefiles<br>
<br>
If you just need to handle a few projections, you could strip much of the<br>
information from the above files, but that requires some knowledge...<br>
<br>
( you may also need the grids from proj.4 data files )<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>
</div>