Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle broken sql #2

Closed
wants to merge 214 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
afc7776
Prepare for 1.9.0 release.
warmerdam Dec 29, 2011
3295517
Rasterlite: get exact geotransform (#4413)
rouault Dec 29, 2011
2e59f4c
backport #4412 - r23659
Dec 30, 2011
cd02f06
PG driver: compatibility with latest postgis 2.0 SVN that has removed…
rouault Jan 1, 2012
28e5b06
Fix compilation in SQLite and GML drivers of GDAL1.9.0RC1 with ancien…
rouault Jan 1, 2012
f28cc31
OGR SQL: fix issue with ORDER BY if GetFeatureCount() < number of fea…
rouault Jan 1, 2012
df7eb92
GML .xsd parser: recognize simpleTypes not inlined, but defined elsew…
rouault Jan 2, 2012
fd00cbc
Unix configure: Fix --with-freexl failure on MacOS X with static free…
rouault Jan 3, 2012
7b86746
Add compatibility when compiling against libwebp 0.1.3 (#4422)
rouault Jan 3, 2012
bc40fdd
XLS: fix behaviour of OGRXLSLayer::DetectColumnTypes() in -O2 optimiz…
rouault Jan 3, 2012
e42e1fb
makegdalXX.vcproj : update 71,80 and 90 version. Drop 10 version --> …
rouault Jan 3, 2012
ca823c6
GML: make filtering of features based on OGR_GEOMETRY work (#4428)
rouault Jan 6, 2012
d9b91fb
Fix MinGW build when pthread is also available (#4430)
rouault Jan 8, 2012
2738389
GML .xsd parser: recognize type='date' or type='dateType' as a string…
rouault Jan 12, 2012
f4e09ed
WFS: don't use field width and precision when only deduced from the a…
rouault Jan 12, 2012
2825383
PGeo/MDB: fix crash when reading polygon with 0 rings, such as in Top…
rouault Jan 13, 2012
b302990
set --tag=LD for link macro (#4436)
warmerdam Jan 13, 2012
285668e
make sure netcdf file is in data mode in IReadBlock and only set data…
etiennesky Jan 14, 2012
21a4f62
avoid point duplication concatenating gml curve segments (#4451)
warmerdam Jan 18, 2012
3a010ca
TIGER: Fix opening TIGER datasource by full file name (#4443)
rouault Jan 20, 2012
3b25548
ACE2: fix typo that prevented dataset to be opened with explicit /vsi…
rouault Jan 21, 2012
ccca70e
Fix build of gdalsrsinfo when OGR support is disabled (#4459)
rouault Jan 21, 2012
857d813
FileGDB: do compulsory field name laundering. Add a LAUNDER_RESERVED_…
rouault Jan 21, 2012
b371654
FileGDB: un-document LAUNDER_RESERVED_KEYWORDS option. Setting it to …
rouault Jan 22, 2012
a33493c
gdalwarp: assign color interpretation of source bands to target datas…
rouault Jan 23, 2012
a5de27a
use nc-config to detect netcdf compilation and linking parameters (#4…
etiennesky Jan 24, 2012
9cd5a23
FileGDB: do appropriate layer name laundering in CreateLayer() (patch…
rouault Jan 24, 2012
1db7bbd
ensure that rowsperstrip is never larger than ysize (#4468)
warmerdam Jan 26, 2012
c29b95b
GML: be tolerant about valid constructs for empty geometries (#4473)
rouault Jan 28, 2012
2fe82a9
Report DeleteFeature/DeleteLayer capabilities for the MSSQL Spatial d…
szekerest Jan 29, 2012
52f2c90
FileGDB: define CLSID/EXTCLSID to fix Feature Class alias being ignor…
rouault Jan 31, 2012
5b28fbc
FileGDB: make test for use of reserved keywords case insensitive (#4458)
rouault Feb 1, 2012
23106d1
gml2ogrgeometry : make sure to use provided control points in linear …
rouault Feb 3, 2012
ba42803
Shapefile: fix GetFeatureCount() when spatial filter set, especially …
rouault Feb 4, 2012
bf4d776
gdalsrsinfo - try to open with GDAL and OGR even if argument is not a…
etiennesky Feb 6, 2012
c6e15a3
gdalsrsinfo - try to open with GDAL and OGR even if argument is not a…
etiennesky Feb 6, 2012
c52f7c7
apply patch in #4497 to (optionally) put back OCI index creation when…
hobu Feb 9, 2012
d7f3930
ensure scaleFactor defaults to 1 (#4499)
warmerdam Feb 9, 2012
f752b18
PGeo / Geomedia : remove heuristics that tried to identify if a MDB f…
rouault Feb 9, 2012
e1a9bd8
ogr2ogr: fix -select with shapefile output when specified field name …
rouault Feb 9, 2012
e39d02b
Fix statistics computation when nodata value is +/- infinity (#4506)
rouault Feb 10, 2012
496c213
Fix segfault when running 'ogr2ogr target src -select AFIELD -where F…
rouault Feb 11, 2012
febe53a
Fix bad AND priority when spatial and attribute filter are combined i…
rouault Feb 11, 2012
cba9963
OGR SQL: fix segfault on SELECT DISTINCT(foo) when first feature has …
rouault Feb 11, 2012
e3a3a4a
SQLite: fix temporary names creation in OGRSQLiteVFS (#4510)
rouault Feb 12, 2012
abd72c5
netcdf: convert longitude values in [180,360] interval to [-180,180] …
etiennesky Feb 13, 2012
599818a
revert changes in r23970 - buggy fix that may cause regressions (#4512)
etiennesky Feb 14, 2012
6e29093
SQLite: fix compilation problem with SQLite >= 3.6.0 and < 3.6.7 (#4515)
rouault Feb 14, 2012
7ec2db8
fix gdalrsrsinfo --formats (#4518) : report formats supported by GDAL…
etiennesky Feb 14, 2012
250e11f
FileGDB: Add OBJECTID as a reserved word for FGDB field names (#4517)…
rcoup Feb 15, 2012
15581b6
PDF: Fix crashes on some PDF files with poppler >= 0.17.0 (#4520)
rouault Feb 15, 2012
d2a39e1
OGR SQL: fix incorrect result with more than 2 JOINs and SELECT with …
rouault Feb 16, 2012
479e80e
Unix build: fix compilation failure with iconv on FreeBSD (#4525)
rouault Feb 21, 2012
0d41e71
KMLSuperOverlay: remove bogus code that limited generation to one zoo…
rouault Feb 22, 2012
10e8fa6
Add test-case for multi-level KMLSUPEROVERLAY. #4527
rcoup Feb 23, 2012
a572dcd
Added BASEDATA support for EPT_u1 (#4537)
warmerdam Mar 1, 2012
d1fa527
back out the evil globbing stuff (#2783, #4542)
warmerdam Mar 4, 2012
b4abae4
Ili: Backport of Interlis fixes and enhancements in trunk (r23874, r2…
pka Mar 5, 2012
6a19d32
backport libkml stylemap support into 1.9 branch. r23959 r23960 r23965
winkey Mar 7, 2012
06f0b50
add .hdf extension to the HDF4 driver metadata (#4559)
etiennesky Mar 9, 2012
861d907
fix int32 overflow, add some error checking (#4565)
warmerdam Mar 15, 2012
4089832
avoid win32 build issue with sizeof, remove debug output (#4565)
warmerdam Mar 15, 2012
22bce1c
Unix configure: make FileGDBAPI detection work with FileGDBAPI v1.1 a…
rouault Mar 18, 2012
dd95f4c
Rasterlite: fix overview building with multi-table datasets (#4568)
rouault Mar 18, 2012
cdf006e
#3853. Fix the unwanted changes in data types while converting a data…
chaitanyach Mar 19, 2012
06869f3
Unix configure: fix r24125 when no --with-fgdb option is specified an…
rouault Mar 19, 2012
da68c86
backport r24098 #4529, #4552
Mar 23, 2012
2b376b3
fix OGR VRT sensitive to whitespace and <?xml> nodes (#4582)
warmerdam Mar 23, 2012
ce28dc3
Add missing copyright notice (#4584)
rouault Mar 24, 2012
4a95872
Fix L100 macro
warmerdam Mar 28, 2012
b60b0ff
a bit hard to validate, but I've mapped methods 1028 and 1029 to norm…
warmerdam Mar 28, 2012
0ebd579
ogr2ogr: correctly deal with filenames that begin with 'polygon' or '…
rouault Mar 29, 2012
744e4ab
KML: avoid potential out-of-range string access (#4592)
rouault Mar 30, 2012
9344d01
KML: simplify ParseCoordinate() implementation (#4592)
rouault Mar 31, 2012
28fc39b
JPEG: don't return junk content when requesting xml:XMP but no XMP me…
rouault Mar 31, 2012
245bbbe
revert r23755, aparently not the right solution (#4436)
warmerdam Apr 3, 2012
f80508e
fix fgetc signed/unsigned problem for Grib format VSI*L reader (#4603)
warmerdam Apr 6, 2012
cbe0171
ogr2ogr: correctly deal with filenames that begin with 'polygon' or '…
rouault Apr 6, 2012
6fd05cf
HFA: fix crash on dataset closing when .ige file header is corrupted …
rouault Apr 7, 2012
cf4b105
properly close datasets in error conditions (#4554)
etiennesky Apr 8, 2012
76480a6
Fix incorrect rounding in OGRFormatDouble (#4614)
rouault Apr 14, 2012
e3f305a
TSX: fix crashes in Identify() with certain filenames, and the file i…
rouault Apr 17, 2012
27a58eb
CSV: Detect and remove UTF-8 BOM marker if found (#4623)
rouault Apr 18, 2012
aab2bc6
Avoid fatal error when the public schema is absent. #4611
chaitanyach Apr 19, 2012
857eb0a
various improvements to man page generation for releases (#4629)
warmerdam Apr 20, 2012
756fb22
Unix VSI*L: correctly set current offset after a failed read (#4583)
rouault Apr 20, 2012
388506d
Spatialite: make sure C locale is loaded when building spatial filter…
rouault Apr 21, 2012
f48ec96
Spatialite: spatial index can be used even when linking against regul…
rouault Apr 21, 2012
00eb18a
reverseWindingOrder(): don't force coordinate dimension to 3 (#4621)
rouault Apr 21, 2012
d92f7d4
GenSQL: fix 'SELECT MAX(OGR_GEOM_AREA) FROM XXXX' (#4633)
rouault Apr 22, 2012
dd542a5
GenSQL: fix invalid conversion from float to integer (#4634)
rouault Apr 22, 2012
4ebb1c7
Make sure Geomedia is registered after MDB (due to change for #4498)
rouault Apr 26, 2012
5a1c35b
MSSQL driver: Fixed the parser to swap coordinates with geography dat…
szekerest Apr 28, 2012
2d5dfba
Add guess for the directory where to find openjdk on Ubuntu 12.04 (#4…
rouault Apr 28, 2012
1a91553
PG: differ SRS evaluation on SQL layers (#4644)
rouault Apr 28, 2012
b12a025
Avoid stalling on unresponsive test server
rouault Apr 28, 2012
898f933
maximize EPSG compatability where PCS is defined (#4607)
warmerdam Apr 29, 2012
87b427f
do not expect citation looking in non-ESRI builds (#4607)
warmerdam Apr 29, 2012
fedd66d
bulk back port of INGRES changes driver from trunk
warmerdam Apr 29, 2012
a58d862
Complementary fix for #4644 : previous optimization was a bit too agg…
rouault Apr 30, 2012
b7502c2
Northwood: fix wrong file offset computation over 2 GB (#4645)
rouault May 1, 2012
fbc0b25
Fix crash in VSICachedFile::Read() when the amount to read exceeds th…
rouault May 1, 2012
6d7cfd6
DXF Writer: set values in and with geometry extent (#4618)
rouault May 1, 2012
ab4ddbe
DXF Reader: fix crash in OGRDXFLayer::TranslatePOLYLINE() on empty ge…
rouault May 1, 2012
4aeced4
MITAB: missing break when dealing with Mollweide projection (#4628)
rouault May 2, 2012
492acbf
fix problem identifying some connected-8 polygons (#4647)
warmerdam May 4, 2012
ab710bc
CSV: fix handling of empty column names in header (#4654)
rouault May 4, 2012
544fd4b
update from upstream - fixes user defined linear units reading suppor…
warmerdam May 6, 2012
128e933
Backport 1.9: Fixed DIMAP2 driver to get the proper absolute path in …
May 7, 2012
5a9412a
escape percent sign in gdal_translate docs, #4602
May 8, 2012
237e29e
Backport 1.9: Jpeg2000 Embedded GML Interpretation Bad when Lat/Long …
May 11, 2012
86e9d32
Backport 1.9: Added autotest for #4657
May 11, 2012
0e4a3a5
Ili2: Backport fix for reading with models
pka May 11, 2012
94197a7
Ili1: Remove unfinished support for reading model enums
pka May 11, 2012
72fc646
Start 1.9.1 release notes ...
warmerdam May 15, 2012
b933de1
update for 1.9.1 release
warmerdam May 15, 2012
7841c9a
update python bindings for 1.9.1 release
warmerdam May 17, 2012
8ec74e5
ensure that unusual units with an authority node are saved nicely (li…
warmerdam May 17, 2012
02a93c2
prepare for 1.9.1RC2
warmerdam May 17, 2012
8c2da7b
Backport support for Poppler 0.20 in 1.9 branch (#4668)
rouault May 17, 2012
08fa7db
Fix compilation issue with SWIG 2.0.6 on Java bindings (#4669)
rouault May 17, 2012
9c7e4e4
ensure we do not try to use the grid tile api for non-tilesized chunk…
warmerdam May 18, 2012
013bb0e
MorphFromESRI() fix wkt : compare SPHEROID and PRIMEM parameters inst…
etiennesky May 19, 2012
81f5497
GML: fix typo for geometry type name of MultiLineString in GML3 .XSD.…
rouault May 20, 2012
9cd3a05
GIF driver: add support for libgif 4.2.0 (#4675)
rouault May 21, 2012
73a5564
OGRDataSource::CopyLayer(): take into account field renaming by outpu…
rouault May 21, 2012
f081ecd
minimal change to avoid picking up geog units as projcs units (#4677)
warmerdam May 23, 2012
79e8b45
Add testing for setting a SRS without linear units defined in GeoTIFF…
rouault May 24, 2012
07abe72
GRIB: avoid caching more than 100 MB in case of dataset with many ban…
rouault May 24, 2012
408049b
SQLite: return empty layer when SELECT returns 0 rows (#4684)
rouault May 27, 2012
bf38a67
DXF: ignore Spline frame control points for VERTEX of POLYLINE (#4683)
rouault May 28, 2012
0342305
fix copy/paste typo for factor_c #4689
hobu May 30, 2012
f6e33d1
DTED: write the updated value of the partial cell indicator to the fi…
rouault May 30, 2012
34d5ec8
get projection before metadata (#4691)
etiennesky May 31, 2012
3e580b8
PG: optimize SRID fetching on SQL result layer; compatibility with Po…
rouault Jun 7, 2012
1e40977
Shape: make TestCapability(OLCStringsAsUTF8) more robust by actually …
rouault Jun 10, 2012
03838da
Additional fix for #4650
rouault Jun 10, 2012
a0969c5
Add missing flags in CPLClearRecodeStubWarningFlags() (#4650)
rouault Jun 10, 2012
0f42f07
Fix EOF test. #3031
chaitanyach Jun 12, 2012
183432c
Look for geotiff headers in /usr/include/libgeotiff too (#4706)
rouault Jun 15, 2012
b59f73c
netCDF: fix use of free'd memory in NCDFAddGDALHistory() (#4709)
rouault Jun 16, 2012
a52c2cf
fix Solaris compilation bug (#4705)
etiennesky Jun 16, 2012
eb017fb
Fix compilation issue with Gentoo modified zlib 1.2.6, backport of tr…
rouault Jun 27, 2012
a4c55e6
Shapefile driver: avoid assert() if SetFeature() is called on a featu…
rouault Jun 30, 2012
4d4ad94
Add compatibility with giflib 5.0 (#4675)
rouault Jun 30, 2012
ce9a450
Fix double free in OGRTABDataSource::Create() when exiting with error…
rouault Jul 2, 2012
e9b370d
Geomedia: fix loading of 'boundary' geometries when they are 2.5D or …
rouault Jul 3, 2012
337137f
Rasterlite: fix for 'creating internal overviews on a table prevent r…
rouault Jul 6, 2012
3beb80f
Fix clean target
szekerest Jul 12, 2012
ab8b0e8
Shape: correctly deal with .cpg files containing 8859xx string (#4743)
rouault Jul 20, 2012
c3018cf
gdal_rasterize: fix segfault in -i case when the datasource has no fe…
rouault Jul 20, 2012
7abaa8d
/vsizip: fix handling of Eof() that could cause missed last feature(s…
rouault Jul 20, 2012
4344137
Shapefile: fix memory leak when IsGeometryIgnored() is set (#4749)
rouault Jul 20, 2012
f70145b
backport fix for #4755 to 1.9 branch -- CPLGetErrorHandlerUserData no…
hobu Jul 24, 2012
3ab017f
Fixed syntax error in CPLGetErrorHandlerUserData decl - backported to…
mloskot Jul 24, 2012
69c29d9
CSV: Fix export of real values with non-C locale (#4760)
rouault Jul 28, 2012
505c54a
KML and LIBKML: fix export of fields of type Real with non C-locale (…
rouault Jul 28, 2012
bfc30f6
gdaldem: fix color-relief output with driver that has only CreateCopy…
rouault Jul 31, 2012
1769f97
RMF: fix incorrect zone number detection for Transverse Mercator (#4766)
rouault Aug 3, 2012
1fb9408
fix handling of 2G+ files (#4765)
warmerdam Aug 3, 2012
7b7007b
fix handling of km units in netcdf driver and importFromProj4() (#4769)
etiennesky Aug 12, 2012
e182ffa
fix name of km units netcdf driver and importFromProj4() (#4769)
etiennesky Aug 13, 2012
f2069be
Fix for MSSQL to read multipoint geometries correctly (#4781)
szekerest Aug 18, 2012
9fa5c83
SQLite: add compatibility for newer SQLite versions when using the VF…
rouault Aug 19, 2012
43decfb
ECW: improve picking performance on large datasets (#4790)
rouault Aug 24, 2012
fc495c2
RPFTOC: relax SanityCheckOK() to avoid rejecting valid CIB datasets (…
rouault Aug 26, 2012
537468e
do not trust pabSuccess in geolocation transformer (#4794)
warmerdam Aug 30, 2012
8a889c4
do not stop collecting chunks to operate on just because some subchun…
warmerdam Aug 30, 2012
0c5f75e
declare CPLErr - fixes last fix
warmerdam Aug 30, 2012
bd6d00e
WFS: fix issues when querying the WFSLayerMetadata and that one of th…
rouault Aug 30, 2012
75585d1
RPFTPC: Add missing NITF series code 'TF' for 'TFC' (and fix typo in …
rouault Sep 1, 2012
9637895
Properly parse NaN values even if there are leading spaces in the str…
rouault Sep 3, 2012
abe5b51
Minor update in gdalinfo docs.
chaitanyach Sep 4, 2012
13c9f74
OGR SDE: Add support for CLOB and NCLOB data type (#4801)
szekerest Sep 5, 2012
e9afcf4
Backport r24911. Fix #4803 -- don't escape DESDATA for sizes >10mb
hobu Sep 5, 2012
42ff85a
Tweak r24912 for #4803 -- don't escape DESDATA for sizes >10mb
hobu Sep 5, 2012
befe264
Tweak r24913 for #4803 -- don't escape DESDATA for sizes >10mb
hobu Sep 5, 2012
2125b7d
MSSQL: Fix for the parser to read 3D geometries correctly (#4806)
szekerest Sep 7, 2012
da34779
ESRI JSon: parse double values in a locale-insensitive way (#4814)
rouault Sep 16, 2012
8c6246c
OGR SDE: Fix for the crash with CLOB type (#4801)
szekerest Sep 17, 2012
2ce82db
GTiff: avoid crash on metadata that isn't formatted like key=value (#…
rouault Sep 17, 2012
cd921be
VRT: avoid crashes due to int overflow when dealing with requests fil…
rouault Sep 18, 2012
d586e4c
OGR SDE: Fix reading CLOB strings (#4801)
szekerest Sep 20, 2012
d4a5719
ODBC: Make SetAttributeFilter(NULL) work (#4821)
rouault Sep 23, 2012
8e63f7c
CSV: allow creating a new .csv file in a directory where there are in…
rouault Sep 24, 2012
fb458e0
Fix MSSQL Spatial and 3D issue (#4626)
szekerest Sep 24, 2012
0019772
fix serious problems with tiled images, particularly when not multipl…
warmerdam Sep 25, 2012
d50fb8b
Java bindings: fix values of gdalconst.DCAP_* and gdalconst.DMD_* con…
rouault Sep 26, 2012
9a7096e
GML: select Xerces parser for files encoded in ISO-8859-15 (#4829)
rouault Sep 26, 2012
95a0a98
.aux overviews: avoid destroying existing overviews when asking twice…
rouault Sep 27, 2012
f9b7472
DXF: Write HACH (Polygon) compatible with other DXF viewers; Add colo…
rouault Sep 29, 2012
01516f1
KMLSuperOverlay: fix bad placing of tiles with raster of the extent o…
rouault Sep 29, 2012
db96cff
Fix infinite recursion in GDALOpen() (#4835)
rouault Sep 29, 2012
00c1dde
Fix and test for #4833
Sep 30, 2012
2a2a049
FileGDB: use ESRI SRS DB to find the WKT definition to use when creat…
rouault Sep 30, 2012
6396b9f
FileGDB: backport trunk fixes for tolerance and scale parameters when…
rouault Sep 30, 2012
82e61d9
FileGDB: add the FGDB_BULK_LOAD configuration option that can be set …
rouault Sep 30, 2012
764f64c
DXF: take into account extruction vector to transform from OCS to WCS…
rouault Oct 2, 2012
01ae9c8
update for 1.9.2 release
warmerdam Oct 3, 2012
74f6c63
Tag 1.9.2 release candidate 1.
warmerdam Oct 3, 2012
32bf967
Fix LIBGDAL_REVISION for 1.9.2 release.
warmerdam Oct 3, 2012
e68ba18
Add WRITE_BOM option to CSV driver to write UTF8 BOM for improved Exc…
rcoup Oct 3, 2012
17ccd8f
Fix thread-safety of CPLOpenShared() (#4848)
rouault Oct 3, 2012
8844791
avoid iffy casting of OGRwkbGeometryType to int while avoiding a swit…
warmerdam Oct 3, 2012
a88ea66
Don't turn \r\n into \n in CSV field output, regardless of LINEFORMAT…
rcoup Oct 4, 2012
1742a49
Don't left-pad numbers in CSV output when a width is set. Fixes #4469.
rcoup Oct 4, 2012
5d190b3
Revert "Don't left-pad numbers in CSV output when a width is set. Fix…
rcoup Oct 4, 2012
8d24a0d
GXF: avoid having big buffer on stack (#4852)
warmerdam Oct 5, 2012
f4dd7ea
OpenCL warper: fix segmentation fault related to source/destination v…
rouault Oct 7, 2012
1e6f9fb
#4832 FileGDB: cast empty geometries to nulls on write. Use Row.SetNu…
rcoup Oct 7, 2012
cd68a93
add support for GEO_NORMALIZE_DISABLE_TOWGS84 (#3309)
warmerdam Oct 9, 2012
26c181c
Prepare 1.9.2 RC2
warmerdam Oct 9, 2012
c971545
1.9.2RC2 cut.
warmerdam Oct 9, 2012
55aa7ab
Have ogr2ogr exit with FAILURE code on broken -sql (#4870)
Oct 17, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions autotest/gcore/tiff_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ def tiff_grads():
# Check Erdas Citation Parsing for coordinate system.

def tiff_citation():

return 'skip'

ds = gdal.Open('data/citation_mixedcase.tif')
wkt = ds.GetProjectionRef()
Expand Down
31 changes: 31 additions & 0 deletions autotest/gcore/tiff_srs.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,34 @@ def test( self ):

return 'success'

###############################################################################
# Test fix for #4677:
def tiff_srs_without_linear_units():

sr = osr.SpatialReference()
sr.ImportFromProj4('+proj=vandg +datum=WGS84')

ds = gdal.GetDriverByName('GTiff').Create('/vsimem/tiff_srs_without_linear_units.tif',1,1)
ds.SetProjection(sr.ExportToWkt())
ds = None

ds = gdal.Open('/vsimem/tiff_srs_without_linear_units.tif')
wkt = ds.GetProjectionRef()
sr2 = osr.SpatialReference()
sr2.SetFromUserInput(wkt)
ds = None

gdal.Unlink('/vsimem/tiff_srs_without_linear_units.tif')

if sr.IsSame(sr2) != 1:

gdaltest.post_reason('did not get expected SRS')
print(sr)
print(sr2)
return 'fail'

return 'success'


gdaltest_list = []

Expand Down Expand Up @@ -121,6 +149,9 @@ def test( self ):
ut = TestTiffSRS( epsg_code, 0, epsg_proj4_broken )
gdaltest_list.append( (ut.test, "tiff_srs_proj4_of_epsg_%d" % epsg_code) )

gdaltest_list.append( tiff_srs_without_linear_units )


if __name__ == '__main__':

gdaltest.setup_run( 'tiff_srs' )
Expand Down
38 changes: 38 additions & 0 deletions autotest/gdrivers/jp2kak.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,43 @@ def jp2kak_16():

return 'success'

###############################################################################
# Test reading a file with axis orientation set properly for an alternate
# axis order coordinate system (urn:...:EPSG::4326).
# In addition, the source .jp2 file's embedded GML has the alternate order
# between the offsetVector tags, and the "GDAL_JP2K_ALT_OFFSETVECTOR_ORDER"
# option is turned on to match that situation.
# This test case was adapted from the "jp2kak_7()" case above.

def jp2kak_17():

if gdaltest.jp2kak_drv is None:
return 'skip'

gdal.SetConfigOption( 'GDAL_JP2K_ALT_OFFSETVECTOR_ORDER', 'YES' )

ds = gdal.Open( 'data/gmljp2_dtedsm_epsg_4326_axes_alt_offsetVector.jp2' )

gt = ds.GetGeoTransform()
gte = (42.999583333333369,0.008271349862259,0,
34.000416666666631,0,-0.008271349862259)

if abs(gt[0] - gte[0]) > 0.0000001 or abs(gt[3] - gte[3]) > 0.000001 \
or abs(gt[1] - gte[1]) > 0.000000000005 \
or abs(gt[2] - gte[2]) > 0.000000000005 \
or abs(gt[4] - gte[4]) > 0.000000000005 \
or abs(gt[5] - gte[5]) > 0.000000000005:
gdaltest.post_reason( 'did not get expected geotransform' )
print('got: ', gt)
gdal.SetConfigOption( 'GDAL_JP2K_ALT_OFFSETVECTOR_ORDER', 'NO' )
return 'fail'

ds = None

gdal.SetConfigOption( 'GDAL_JP2K_ALT_OFFSETVECTOR_ORDER', 'NO' )

return 'success'

###############################################################################
# Cleanup.

Expand All @@ -416,6 +453,7 @@ def jp2kak_cleanup():
jp2kak_14,
jp2kak_15,
jp2kak_16,
jp2kak_17,
jp2kak_cleanup ]

if __name__ == '__main__':
Expand Down
39 changes: 30 additions & 9 deletions autotest/gdrivers/kmlsuperoverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# Project: GDAL/OGR Test Suite
# Purpose: Test write functionality for KMLSUPEROVERLAY driver.
# Author: Even Rouault <even dot rouault at mines dash paris dot org>
#
#
###############################################################################
# Copyright (c) 2010, Even Rouault <even dot rouault at mines dash paris dot org>
#
#
# Permission is hereby granted, free of charge, to any person oxyzaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
Expand All @@ -18,7 +18,7 @@
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
Expand Down Expand Up @@ -65,16 +65,37 @@ def kmlsuperoverlay_1():

def kmlsuperoverlay_2():

src_ds = gdal.Open('data/small_world.tif')
src_ds = gdal.Open('data/utm.tif')
ds = gdal.GetDriverByName('KMLSUPEROVERLAY').CreateCopy('tmp/tmp.kml', src_ds)
ds = None
src_ds = None

os.remove('tmp/0/0/0.jpg')
os.remove('tmp/0/0/0.kml')
os.rmdir('tmp/0/0')
os.rmdir('tmp/0')
os.remove('tmp/tmp.kml')
try:
os.remove('tmp/0/0/0.jpg')
os.remove('tmp/0/0/0.kml')

os.remove('tmp/1/0/0.jpg')
os.remove('tmp/1/0/0.kml')
os.remove('tmp/1/0/1.jpg')
os.remove('tmp/1/0/1.kml')

os.remove('tmp/1/1/0.jpg')
os.remove('tmp/1/1/0.kml')
os.remove('tmp/1/1/1.jpg')
os.remove('tmp/1/1/1.kml')

os.rmdir('tmp/0/0')
os.rmdir('tmp/1/0')
os.rmdir('tmp/1/1')
os.rmdir('tmp/0')
os.rmdir('tmp/1')
os.remove('tmp/tmp.kml')
except OSError, e:
if e.errno == 2: # no such file or directory
gdaltest.post_reason("Missing file: %s" % e.filename)
return 'fail'
else:
raise

return 'success'

Expand Down
19 changes: 19 additions & 0 deletions autotest/ogr/data/circle.dxf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
0
SECTION
2
ENTITIES
0
CIRCLE
10
1.0
20
2.0
30
3.0
40
4.0
0
ENDSEC
0
EOF

3 changes: 3 additions & 0 deletions autotest/ogr/data/csv_with_utf8_bom.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,WKT
426,Colac Bay/Ōraka,LOC,POINT (1205949.55535 4853065.413164)
427,Colac Bay/Ōraka,BAY,POINT (1208242.531016 4852284.8976)
Loading