[gdal-dev] supportive data files for re-projection
Trajce Nikolov NICK
trajce.nikolov.nick at gmail.com
Wed Jun 15 11:12:34 PDT 2016
Thanks Kurt , Even .. This is exactly what I need !
Thanks a bunch again!
Cheers,
Nick
On Wed, Jun 15, 2016 at 8:06 PM, Kurt Schwehr <schwehr at gmail.com> wrote:
> Nick,
>
> 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.
>
> -kurt
>
> Not used only applies to my very funky build env.
>
> "compdcs.csv", // Used by ogr_fromepsg.cpp.
> "coordinate_axis.csv", // Used by ogr_fromepsg.cpp, gt_wkt_srs.cpp.
> "cubewerx_extra.wkt", // Used by epsg.wkt.
> // "datum_shift.csv", // Not used.
> "ecw_cs.wkt", // Used by ogr_srs_erm.cpp, ecwdataset.cpp.
> "ellipsoid.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.
> "epsg.wkt", // Used by ogr_fromepsg.cpp.
> "esri_extra.wkt", // Used by epsg.wkt.
> "esri_StatePlane_extra.wkt", // Used by ogr_srs_esri.cpp.
> "esri_Wisconsin_extra.wkt", // Used by ogr_srs_esri.cpp.
> "gcs.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp,
> // ogr_srs_esri.cpp, sqlite.
> "gcs.override.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.
> "gdal_datum.csv", // Used by geo_normalize.c, ogr_srs_esri.cpp,
> // gt_wkt_srs.cpp.
> "geoccs.csv", // Used by ogr_fromepsg.cpp.
> "gml_registry.xml", // Used by gmlregistry.cpp,
> ogrgmldatasource.cpp.
> "gt_datum.csv", // Used by nitfdataset.cpp.
> "gt_ellips.csv", // Used by nitfdataset.cpp.
> // "header.dxf", // Used by ogrdxfwriterds.cpp, which is not
> used.
> "inspire_cp_BasicPropertyUnit.gfs", // Used by gml_registry.xml.
> "inspire_cp_CadastralBoundary.gfs", // Used by gml_registry.xml.
> "inspire_cp_CadastralParcel.gfs", // Used by gml_registry.xml.
> "inspire_cp_CadastralZoning.gfs", // Used by gml_registry.xml.
> "nitf_spec.xml", // Used by nitffile.c.
> // "nitf_spec.xsd", // Used by nitf_spec.xml, which is not used.
> // "osmconf.ini", // Used by ogrosmdatasource.cpp, which is not
> used.
> "ogrvrt.xsd", // Used by ogrvrtdriver.cpp.
> "ozi_datum.csv", // Used by ogr_srs_ozi.cpp.
> "ozi_ellips.csv", // Used by ogr_srs_ozi.cpp.
> "pci_datum.txt", // Used by ogr_srs_pci.cpp.
> "pci_ellips.txt", // Used by ogr_srs_pci.cpp.
> "pcs.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.
> "pcs.override.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp.
> "prime_meridian.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp,
> rgdal.
> "projop_wparm.csv", // Used by geo_normalize.c.
> "ruian_vf_ob_v1.gfs", // Used by gml_registry.xml.
> "ruian_vf_st_uvoh_v1.gfs", // Used by gml_registry.xml.
> "ruian_vf_st_v1.gfs", // Used by gml_registry.xml.
> "ruian_vf_v1.gfs", // Used by gml_registry.xml.
> // S57 driver.
> // "s57agencies.csv", // Not used.
> // "s57attributes_aml.csv", // Not used.
> // "s57attributes.csv", // Not used.
> // "s57attributes_iw.csv", // Not used.
> // "s57expectedinput.csv", // Not used.
> // "s57objectclasses_aml.csv", // Not used.
> // "s57objectclasses.csv", // Not used.
> // "s57objectclasses_iw.csv", // Not used.
> // "seed_2d.dgn", // DGN driver, not used.
> // "seed_3d.dgn", // DGN driver, not used.
> "stateplane.csv", // Used by ogr_fromepsg.cpp and IDRISI driver.
> // "trailer.dxf", // DXF driver, not used.
> "unit_of_measure.csv", // Used by geo_normalize.c, ogr_fromepsg.cpp,
> etc.
> "vertcs.csv", // Used by gt_wkt_srs.cpp and ogr_fromepsg.cpp.
> "vertcs.override.csv", // Used by ogr_fromepsg.cpp.
>
>
> On Wed, Jun 15, 2016 at 10:13 AM, Even Rouault <even.rouault at spatialys.com
> > wrote:
>
>> Le mercredi 15 juin 2016 18:27:33, Trajce Nikolov NICK a écrit :
>> > Hi Community,
>> >
>> > I am new in town ;-). But using gdal for a decade or so. Never been in
>> > situation as now, when I have to filter the data/files that come with
>> gdal
>> > for the installer of the software from our company.
>> >
>> > There are bunch of files located in the gdal/data folder and I need to
>> know
>> > which are the ones that are needed for re-projecting of source files
>> > (elevation, vector files)
>>
>> Foreword notice: you break the warranty by cherry picking some of the data
>> files
>> Foreword notice 2: GDAL comes without any warranty (unless you pay a
>> service
>> provider)
>>
>> That said, those ones should be sufficient :
>>
>> $ grep CSVFilename ogr/ogr_fromepsg.cpp
>> const char *pszFilename = CSVFilename( "unit_of_measure.csv" );
>> const char *uom_filename = CSVFilename( "unit_of_measure.csv" );
>> const char *pszFilename = CSVFilename("gcs.override.csv");
>> pszFilename = CSVFilename("gcs.csv");
>> const char *PM_FILENAME = CSVFilename("prime_meridian.csv");
>> const char *pszFilename = CSVFilename("gcs.override.csv");
>> pszFilename = CSVFilename("gcs.csv");
>> CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),
>> const int nUOMLength = atoi(CSVGetField( CSVFilename("ellipsoid.csv"
>> ),
>> CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),
>> CPLAtof(CSVGetField( CSVFilename("ellipsoid.csv" ),
>> CPLStrdup(CSVGetField( CSVFilename("ellipsoid.csv" ),
>> CPLString osFilename = CSVFilename( "pcs.override.csv" );
>> osFilename = CSVFilename( "pcs.csv" );
>> const char *pszFilename = CSVFilename( "pcs.override.csv" );
>> pszFilename = CSVFilename( "pcs.csv" );
>> const char *pszFilename = CSVFilename( "coordinate_axis.csv" );
>> const char *pszFilename = CSVFilename( "vertcs.override.csv" );
>> pszFilename = CSVFilename( "vertcs.csv" );
>> // pszFilename = CSVFilename( "compdcs.override.csv" );
>> const char *pszFilename = CSVFilename( "compdcs.csv" );
>> // pszFilename = CSVFilename( "compdcs.override.csv" );
>> const char *pszFilename = CSVFilename( "geoccs.csv" );
>> if( CSVScanFileByName( CSVFilename( "gcs.csv" ),
>> CSVFilename( "gcs.csv" ) );
>> atoi( CSVGetField( CSVFilename( "stateplane.csv" ),
>>
>> gdal_datum.csv might also be needed for shapefiles
>>
>> If you just need to handle a few projections, you could strip much of the
>> information from the above files, but that requires some knowledge...
>>
>> ( you may also need the grids from proj.4 data files )
>>
>> Even
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> --
> --
> http://schwehr.org
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160615/6b6a6403/attachment.html>
More information about the gdal-dev
mailing list