aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-15Integrate into .rst doxygen-generated doc for custom I/O and network ↵Even Rouault
functionality
2020-01-14Add test/unit/test_grids.cpp to improve testing coverageEven Rouault
2020-01-14Add proj_context_set_fileapi() and proj_context_set_sqlite3_vfs_name() ↵Even Rouault
(fixes #866)
2020-01-14Fix reading resources from user-writable directory & test itEven Rouault
2020-01-13cct doc: mention use or remote gridsEven Rouault
2020-01-13Horizontal grid shift: fix failures on points slightly outside a subgrid ↵Even Rouault
(fixes #209)
2020-01-11Use Win32 Unicode APIs and expect all strings to be UTF-8 (fixes #1765)Even Rouault
For backward compatibility, if PROJ_LIB content is found to be not UTF-8 or pointing to a non existing directory, then an attempt at interpretating it in the ANSI page encoding is done. proj_context_set_search_paths() now assumes strings to be in UTF-8, and functions returning paths will also return values in UTF-8.
2020-01-09Add proj_is_download_needed() and proj_download_file()Even Rouault
2020-01-08Add capability to read resource files from the user writable directoryEven Rouault
2020-01-08NTv2GridSet::open(): reject files with GS_TYPE!=SECONDS (fixes #1294)Even Rouault
2020-01-07pj_bilinear_interpolation_three_samples(): fix MSVC warning about ↵Even Rouault
uninitialized variables
2020-01-07Doc: address code review commentsEven Rouault
2020-01-07network: handle opening remote grids whose local name has no extensionEven Rouault
2020-01-07deformation.cpp and xyzgridshift.cpp: factor out common code (addresses ↵Even Rouault
https://github.com/OSGeo/PROJ/pull/1790#discussion_r363748615)
2020-01-07CMake: use more neutral DISABLE_TIFF switch (refs ↵Even Rouault
https://github.com/OSGeo/PROJ/pull/1790#discussion_r363750361)
2020-01-07geotiff_grids.gie: add commentEven Rouault
2020-01-07xyzgridshift.rst: fix typoEven Rouault
2020-01-07Remote grid: add mechanism to re-open a grid if it has changed while being ↵Even Rouault
opened
2020-01-07DiskChunkCache::closeAndUnlink(): avoid use-after-free in the destructorEven Rouault
2020-01-07Grid refactoring: address review comments of ↵Even Rouault
https://github.com/OSGeo/PROJ/pull/1777 - Move content of legacy apply_gridshift.cpp and apply_vgridshift.cpp in grids.cpp - Rename nad_ functions to pj_hgrid_ - Rename internal proj_hgrid_/proj_vgrid_ functions to pj_
2020-01-01curl implementation: add retry logic on some HTTP errorsEven Rouault
2020-01-01Merge branch 'deformation_with_geotiff_file' into rfc4_network_disk_cacheEven Rouault
2020-01-01deformation.cpp: check that unit in TIFF file is 'millimetres per year' ↵Even Rouault
which is the official name in EPSG
2019-12-31CMake build: install proj.iniEven Rouault
2019-12-31Add a SQLite3 local cache of downloaded chunksEven Rouault
2019-12-30deformation: add support for +grids= for GeoTIFF gridsEven Rouault
This option is to load grid(s) that have both the horizontal and vertical velocities in the same file. Can be tested with the following grid https://github.com/rouault/sample_proj_gtiff_grids/blob/master/nkgrf03vel_realigned.tif converted from the original .ct2 and .gtx with ``` gdal_translate nkgrf03vel_realigned.vrt nkgrf03vel_realigned.tif -co COMPRESS=DEFLATE -co PREDICTOR=3 -co BLOCKYSIZE=241 -co INTERLEAVE=BAND ``` where nkgrf03vel_realigned.vrt is ``` <VRTDataset rasterXSize="223" rasterYSize="241"> <SRS dataAxisToSRSAxisMapping="2,1">GEOGCRS["Unknown based on GRS80", DATUM["Unknown based on GRS80", ELLIPSOID["GRS 1980",6378137,298.257222101, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["geodetic latitude (Lat)",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["geodetic longitude (Lon)",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]]] </SRS> <GeoTransform> 2.9166666666666670e+00, 1.6666666666666666e-01, 0.0000000000000000e+00, 7.3041666666666686e+01, 0.0000000000000000e+00, -8.3333333333333329e-02</GeoTransform> <Metadata> <MDI key="DESCRIPTION"></MDI> <MDI key="area_of_use">Nordic and Baltic countries</MDI> <MDI key="AREA_OR_POINT">Point</MDI> <MDI key="TIFFTAG_COPYRIGHT">The Nordic Geodetic Commission. Creative Commons Attribution 4.0 https://creativecommons.org/licenses/by/4.0/</MDI> <MDI key="TIFFTAG_DATETIME">2019:12:30 00:00:00</MDI> <MDI key="TIFFTAG_IMAGEDESCRIPTION">Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries</MDI> <MDI key="TYPE">VELOCITY</MDI> </Metadata> <VRTRasterBand dataType="Float32" band="1"> <Description>east_velocity</Description> <UnitType>mm/year</UnitType> <SimpleSource> <SourceFilename relativeToVRT="0">/home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_xy.ct2</SourceFilename> <SourceBand>2</SourceBand> <!-- GDAL exposes the first physical component of the file (longitude offset normally, here east velocity) as the second band --> <SrcRect xOff="0" yOff="0" xSize="223" ySize="241" /> <DstRect xOff="0" yOff="0" xSize="223" ySize="241" /> </SimpleSource> </VRTRasterBand> <VRTRasterBand dataType="Float32" band="2"> <Description>north_velocity</Description> <UnitType>mm/year</UnitType> <SimpleSource> <SourceFilename relativeToVRT="0">/home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_xy.ct2</SourceFilename> <SourceBand>1</SourceBand> <!-- and the second physical component (latitude offset normally, here north velocity) as the first band --> <SrcRect xOff="0" yOff="0" xSize="223" ySize="241" /> <DstRect xOff="0" yOff="0" xSize="223" ySize="241" /> </SimpleSource> </VRTRasterBand> <VRTRasterBand dataType="Float32" band="3"> <Description>up_velocity</Description> <UnitType>mm/year</UnitType> <SimpleSource> <SourceFilename relativeToVRT="0">/home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_z.gtx</SourceFilename> <SourceBand>1</SourceBand> <SrcRect xOff="0" yOff="0" xSize="223" ySize="241" /> <DstRect xOff="0" yOff="0" xSize="223" ySize="241" /> </SimpleSource> </VRTRasterBand> </VRTDataset> ```
2019-12-30Travis: fix OSX buildsEven Rouault
2019-12-29proj_hgrid_value(): do not apply compensation for west-oriented ↵Even Rouault
longitude_offset. Fixes regression due to grid refactoring work on proj=deformation use case
2019-12-27CurlFileHandle: set UserAgentEven Rouault
2019-12-27CurlFileHandle: code improvement. No functional changeEven Rouault
2019-12-27xyzgridshift: implement defered grid loading in network contextEven Rouault
2019-12-27Handle context reassignment for Grid/GridSet/File objectsEven Rouault
2019-12-27Network: rework error handlingEven Rouault
2019-12-27Network: make CDN endpoint configurable either in proj.ini, ↵Even Rouault
PROJ_NETWORK_ENDPOINT or proj_context_set_url_endpoint()
2019-12-27Network: automatically use CDN resources when local resources not available, ↵Even Rouault
and networking enabled
2019-12-23Network: only enable it if PROJ_NETWORK=ON or ↵Even Rouault
proj_context_set_enable_network(ctx, true)
2019-12-23Network: remove dedicated get_file_size() callback to use ↵Even Rouault
get_header_value(), and test
2019-12-23Add testing of network functionalityEven Rouault
2019-12-22Network: add a memory cache and I/O chunking strategyEven Rouault
2019-12-19Add very minimalistic and slow libcurl implementationEven Rouault
2019-12-19Add proj_context_set_network_callbacks() with an empty implementationEven Rouault
2019-12-19travis/osx/before_install.sh: do not install md5sha1sum from brewEven Rouault
2019-12-19Build: add optional curl dependencyEven Rouault
2019-12-19grids.cpp: use FileManager/File interfacesEven Rouault
2019-12-19Add a FileManager and File classEven Rouault
2019-12-19Add test for legacy proj_api.h fileapi before further reworksEven Rouault
2019-12-18Rename PJ_CONTEXT::fileapi member as fileapi_legacyEven Rouault
2019-12-14Horizontal grid shift: fix issue on iterative inverse computation when ↵Even Rouault
switching between (sub)grids (fixes #1663) Given in.txt with 53.999759140 5.144478208 252.6995 Before the fix, cct -t 0 -d 4 +proj=pipeline +step +proj=axisswap +order=2,1,3,4 +step +proj=hgridshift +inv +grids=rdtrans2018.gsb +step +proj=vgridshift +grids=naptrans2018.gtx +step +proj=sterea +lat_0=52.156160556 +lon_0=5.387638889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel in.txt returned: 139079.8814 668306.0302 212.1724 0.0000 It now returns: 139079.8850 668306.0458 212.1724 0.0000 which meets with the 1mm accuracy the expected result of test point ``` 30010049 53.999759140 5.144478208 252.6995 139079.8850 668306.0460 212.1723 ```
2019-12-14Grid class: add a name() methodEven Rouault
2019-12-13Add configure/CMake option, strongly discouraged, to disable TIFF supportEven Rouault