Next changeset 1:7bdf6ee695a8 (2019-02-28) |
Commit message:
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tools/gdal commit b964e8f7d7bb076d63a1c7bdfbbdba0f9074d517 |
added:
gdal_macros.xml ogrinfo.xml test-data/custom.geo.json test-data/ogrinfo_test1_out2.txt test-data/ogrinfo_test2_out2.txt |
b |
diff -r 000000000000 -r edd99ac6d4a4 gdal_macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdal_macros.xml Tue Feb 26 11:50:33 2019 -0500 |
b |
b'@@ -0,0 +1,164 @@\n+<macros>\n+ <token name="@VERSION@">2.4.0</token> \n+ <xml name="gdal_requirements">\n+ <requirements>\n+ <requirement type="package" version="2.1.0">gdal</requirement>\n+ <requirement type="package" version="3.5.0">geos</requirement>\n+ </requirements>\n+ </xml>\n+\n+ <xml name="gdal_advanced_params_select">\n+ <param name="advanced" type="select" label="Specify advanced parameters">\n+ <option value="simple" selected="true">No, use program defaults.</option>\n+ <option value="advanced">Yes, see full parameter list.</option>\n+ </param> \n+ <when value="simple">\n+ </when>\n+ </xml>\n+\n+ <xml name="gdal_param_te">\n+ <conditional name="condi_te">\n+ <param name="te" type="select" label="Georeferenced extents of output file" help="-te xmin ymin xmax ymax">\n+ <option value="no_te" selected="true">Don\'t use the -te option</option>\n+ <option value="te">Use the -te option</option>\n+ </param>\n+ <when value="no_te">\n+ </when>\n+ <when value="te">\n+ <param name="xmin" type="float" label="xmin" value="0" min="0" help="In target SRS by default, or in the SRS specified with -te_srs"/>\n+ <param name="ymin" type="float" label="ymin" value="0" min="0" help="In target SRS by default, or in the SRS specified with -te_srs"/>\n+ <param name="xmax" type="float" label="xmax" value="0" min="0" help="In target SRS by default, or in the SRS specified with -te_srs"/>\n+ <param name="ymax" type="float" label="ymax" value="0" min="0" help="In target SRS by default, or in the SRS specified with -te_srs"/>\n+ </when>\n+ </conditional> \n+ </xml>\n+\n+ <xml name="gdal_param_r">\n+ <conditional name="condi_resample">\n+ <param label="Use a resampling method" help="-r resampling algorithm" name="resample" type="select">\n+ <option value="no_resampling" selected="true">Don\'t use a resampling method</option>\n+ <option value="resampling">Use a resampling method, option -r</option>\n+ </param>\n+ <when value="resampling">\n+ <param name="r" type="select" label="Reseampling algorithm" >\n+ <option value="nearest" selected="true"/>\n+ <option value="bilinear"/>\n+ <option value="cubic"/>\n+ <option value="cubicspline"/>\n+ <option value="lanczos"/>\n+ <option value="average"/>\n+ <option value="mode"/>\n+ <option value="max"/>\n+ <option value="min"/>\n+ <option value="med">Median resampling</option>\n+ <option value="q1">First quartile resampling</option>\n+ <option value="q2">Third quartile resampling</option>\n+ </param>\n+ </when>\n+ <when value="no_resampling">\n+ </when>\n+ </conditional>\n+ </xml>\n+\n+ <xml name="gdal_param_tr">\n+ <conditional name="condi_tr">\n+ <param name="tr" type="select" label="Set the ouput file resolution" help="-tr xres yres. Set output file resolution (in target georeferenced units)"> \n+ <option value="no_tr" selected="true">Don\'t use the -tr option</option>\n+ <option value="tr">Use the -tr option</option>\n+ </param>\n+ <when value="no_tr">\n+ </when>\n+ <when value="tr">\n+ <param name="xres" type="float" label="xres" value="0" min="0"/>\n+ <param name="yres" type="float" label="yres" value="0" min="0"/>\n+ </when>\n+ </conditional>\n+ </xml>\n+\n+ <xml name="gdal_param_b">\n+ <param name="b" type="text" label="Select an input band band for output" help="eg : -b band -b 1'..b'falsevalue="" checked="false" label="Place each input file into a separate band" help="-separate. In that case, only the first band of each dataset will be placed into a new band. Contrary to the default mode, it is not required that all bands have the same datatype" />\n+ </xml>\n+\n+ <xml name="gdal_param_a_srs">\n+ <param name="a_srs" type="text" label="Override the projection for the output file" help="-a_srs srs_def. The srs_def may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT. No reprojection is done" value="" />\n+ </xml>\n+\n+ <xml name="gdal_param_stats">\n+ <param name="stats" type="boolean" truevalue="-stats" falsevalue="" checked="false" label="Force (re)computation of statistics" help="-stats. Read and display image statistics. Force computation if no statistics are sto.red in an image."/>\n+ </xml>\n+ \n+ <xml name="gdal_param_norat">\n+ <param name="norat" type="boolean" truevalue="-norat" falsevalue="" checked="false" help="-norat. Do not copy source RAT into destination dataset." label="Suppress printing of raster attribute table."/>\n+ </xml>\n+\n+ <xml name="gdal_param_of">\n+ <param name="of" type="select" label="Output format -of" value="Gtiff" help="Select the output format. The default is GeoTIFF (GTiff). A short list of raster formats is currently enable in GalaxyE : GTiff, netCDF and VRT.">\n+ <option value="GTiff">GTiff</option>\n+ <option value="netCDF">Network Common Data Format - netCDF</option>\n+ <option value="VRT">GDAL Virtual - VRT</option>\n+ </param>\n+ </xml>\n+\n+ <xml name="gdal_param_co">\n+ <param name="co" type="text" label="Pass a creation option to the output format driver" help="-co NAME=VALUE. eg : COMPRESS=JPEG" value="" />\n+ </xml> \n+\n+ <xml name="gdal_param_ot">\n+ <param name="ot" type="select" label="Datatype of the output bands" help="-ot Datatype">\n+ <option value="byte">Byte</option>\n+ <option value="int16">Int16</option>\n+ <option value="uint16">UInt16</option>\n+ <option value="uint32">UInt32</option>\n+ <option value="int32">Int32</option>\n+ <option value="float32">Float32</option>\n+ <option value="float64">Float64</option>\n+ <option value="cint16">CInt16</option>\n+ <option value="cint32">CInt32</option>\n+ <option value="cfloat32">CFloat32</option>\n+ <option value="cfloat64">CFloat64</option>\n+ <option value="" selected="true">Select a datatype for the output bands (default)</option>\n+ </param>\n+ </xml>\n+\n+<!-- need to upgrade gdal version to use\n+ <xml name="gdal_param_oo">\n+ <param name="oo" type="text" label="-oo NAME=VALUE" value="" />\n+ </xml>\n+-->\n+\n+ <xml name="gdal_input_raster_multiple">\n+ <param type="data" name="input" format="gtiff,tiff,netcdf,VRT,txt,xml" help="Formats currently supported are : GTiff, netCDF and VRT" label="Gdal supported input file" multiple="true"/>\n+ </xml>\n+\n+ <xml name="gdal_output_change_format">\n+ <data name="output" format="GTiff" label="${on_string}.${of}">\n+ <change_format>\n+ <when input="of" value="GTiff" format="tiff"/>\n+ <when input="of" value="netCDF" format="netcdf"/>\n+ <when input="of" value="VRT" format="txt"/>\n+ </change_format>\n+ </data>\n+ </xml>\n+\n+ <xml name="gdal_citation">\n+ <citations>\n+ <citation type="bibtex">\n+ @Manual{,\n+ title = {{GDAL/OGR} Geospatial Data Abstraction software Library},\n+ author = {{GDAL/OGR contributors}},\n+ organization = {Open Source Geospatial Foundation},\n+ year = {2018},\n+ url = {http://gdal.org},\n+ }\n+ </citation>\n+ </citations> \n+ </xml>\n+</macros>\n' |
b |
diff -r 000000000000 -r edd99ac6d4a4 ogrinfo.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ogrinfo.xml Tue Feb 26 11:50:33 2019 -0500 |
[ |
@@ -0,0 +1,88 @@ +<tool id="gdal_ogrinfo" name="OGR Informations" version="@VERSION@"> + <description>lists information about an OGR supported data source</description> + <macros> + <import>gdal_macros.xml</import> + </macros> + <expand macro="gdal_requirements" /> + <command detect_errors="exit_code"><![CDATA[ + ogrinfo -ro '$input1' -al + #if $settings.advanced=='advanced' + #if $settings.condi_sql.sql=='sql': + #if str($settings.condi_sql.sql_statement).strip()!='': + -sql '$settings.condi_sql.sql_statement' + #end if + #end if + $settings.so + #end if + > '$output' + ]]></command> + <inputs> + <param type="data" name="input1" format="xml,txt,netcdf" label="Gdal supported vector input file" help="Currently supported format are GeoJSON GML KML and WFS"/> + <conditional name="settings"> + <expand macro="gdal_advanced_params_select"/> + <when value="advanced"> + <conditional name="condi_sql"> + <param name="sql" type="select" label="Use a sql query on the file" help="-sql. Execute the indicated SQL statement and return the result"> + <option value="no_sql" selected="true">Don't use the -sql option</option> + <option value="sql">Use the -sql option</option> + </param> + <when value="no_sql"> + </when> + <when value="sql"> + <param name="sql_statement" type="text" label="Execute the indicated SQL" help="-sql statement eg : SELECT * FROM layer WHERE X>10." value=""> + <sanitizer sanitize="False"/> + <validator type="regex" message="Type a valid SQL query">^(?ims)\s*select\s+.*\s+from\s+.*$</validator> + </param> + </when> + </conditional> + <param name="so" label="Summary Only" help="-so. Suppress listing of features, show only the summary information like projection, schema, feature count and extents" type="boolean" truevalue="-so" falsevalue="" checked="true"/> + </when> + </conditional> + </inputs> + <outputs> + <data name="output" format="txt" label="OGR Info file on ${on_string}"/> + </outputs> + <tests> + <test> + <param name="input1" value="custom.geo.json"/> + <param name="advanced" value="simple"/> + <output name="output" file="ogrinfo_test1_out2.txt" lines_diff="4"/> + </test> + <test> + <param name="input1" value="custom.geo.json"/> + <param name="advanced" value="advanced"/> + <param name="sql" value="sql"/> + <param name="sql_statement" value="SELECT * FROM OGRGeoJSON"/> <!-- WARNING the FROM here is fixed to pass travis test, the dataset number changes depending of the input --> + <param name="so" value="-so"/> + <output name="output" file="ogrinfo_test2_out2.txt" lines_diff="4"/> + </test> + </tests> + <help><![CDATA[ +======== +Ogrinfo +======== + +**What it does** + +The Ogrinfo program lists various information about an OGR supported vector dataset. + +| + +**How to use it** + +Select from history a suported vector file. + +| + +**Advanced options and sources** + +To see complete details and help section please check the official gdal sources. + +http://www.gdal.org + +http://www.gdal.org/ogr_utilities.html + +http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf + ]]></help> + <expand macro="gdal_citation"/> +</tool> |
b |
diff -r 000000000000 -r edd99ac6d4a4 test-data/custom.geo.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/custom.geo.json Tue Feb 26 11:50:33 2019 -0500 |
[ |
b'@@ -0,0 +1,1 @@\n+{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","labelrank":6,"sovereignt":"Albania","sov_a3":"ALB","adm0_dif":0,"level":2,"type":"Sovereign country","admin":"Albania","adm0_a3":"ALB","geou_dif":0,"geounit":"Albania","gu_a3":"ALB","su_dif":0,"subunit":"Albania","su_a3":"ALB","brk_diff":0,"name":"Albania","name_long":"Albania","brk_a3":"ALB","brk_name":"Albania","brk_group":null,"abbrev":"Alb.","postal":"AL","formal_en":"Republic of Albania","formal_fr":null,"note_adm0":null,"note_brk":null,"name_sort":"Albania","name_alt":null,"mapcolor7":1,"mapcolor8":4,"mapcolor9":1,"mapcolor13":6,"pop_est":3639453,"gdp_md_est":21810,"pop_year":-99,"lastcensus":2001,"gdp_year":-99,"economy":"6. Developing region","income_grp":"4. Lower middle income","wikipedia":-99,"fips_10":null,"iso_a2":"AL","iso_a3":"ALB","iso_n3":"008","un_a3":"008","wb_a2":"AL","wb_a3":"ALB","woe_id":-99,"adm0_a3_is":"ALB","adm0_a3_us":"ALB","adm0_a3_un":-99,"adm0_a3_wb":-99,"continent":"Europe","region_un":"Europe","subregion":"Southern Europe","region_wb":"Europe & Central Asia","name_len":7,"long_len":7,"abbrev_len":4,"tiny":-99,"homepart":1,"filename":"ALB.geojson"},"geometry":{"type":"Polygon","coordinates":[[[20.590247430104906,41.855404161133606],[20.463175083099202,41.51508901627533],[20.605181919037364,41.08622630468522],[21.0200403174764,40.84272695572588],[20.999989861747224,40.58000397395397],[20.674996779063633,40.43499990494303],[20.615000441172754,40.11000682225938],[20.15001590341052,39.62499766698397],[19.980000441170144,39.69499339452341],[19.960001661873207,39.91500580500605],[19.406081984136733,40.250773423822466],[19.319058872157143,40.72723012955356],[19.40354983895429,41.40956574153546],[19.540027296637106,41.71998607031276],[19.37176883309496,41.877547512370654],[19.304486118250793,42.19574514420782],[19.738051385179627,42.688247382165564],[19.801613396898688,42.50009349219084],[20.0707,42.58863],[20.283754510181893,42.32025950781508],[20.52295,42.21787],[20.590247430104906,41.855404161133606]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","labelrank":5,"sovereignt":"Bosnia and Herzegovina","sov_a3":"BIH","adm0_dif":0,"level":2,"type":"Sovereign country","admin":"Bosnia and Herzegovina","adm0_a3":"BIH","geou_dif":0,"geounit":"Bosnia and Herzegovina","gu_a3":"BIH","su_dif":0,"subunit":"Bosnia and Herzegovina","su_a3":"BIH","brk_diff":0,"name":"Bosnia and Herz.","name_long":"Bosnia and Herzegovina","brk_a3":"BIH","brk_name":"Bosnia and Herz.","brk_group":null,"abbrev":"B.H.","postal":"BiH","formal_en":"Bosnia and Herzegovina","formal_fr":null,"note_adm0":null,"note_brk":null,"name_sort":"Bosnia and Herzegovina","name_alt":null,"mapcolor7":1,"mapcolor8":1,"mapcolor9":1,"mapcolor13":2,"pop_est":4613414,"gdp_md_est":29700,"pop_year":-99,"lastcensus":1991,"gdp_year":-99,"economy":"6. Developing region","income_grp":"3. Upper middle income","wikipedia":-99,"fips_10":null,"iso_a2":"BA","iso_a3":"BIH","iso_n3":"070","un_a3":"070","wb_a2":"BA","wb_a3":"BIH","woe_id":-99,"adm0_a3_is":"BIH","adm0_a3_us":"BIH","adm0_a3_un":-99,"adm0_a3_wb":-99,"continent":"Europe","region_un":"Europe","subregion":"Southern Europe","region_wb":"Europe & Central Asia","name_len":16,"long_len":22,"abbrev_len":4,"tiny":-99,"homepart":1,"filename":"BIH.geojson"},"geometry":{"type":"Polygon","coordinates":[[[19.00548628101012,44.86023366960916],[19.36803,44.863],[19.11761,44.42307000000011],[19.59976,44.03847],[19.454,43.56810000000013],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674921502358984,43.02856252702361],[17.297373488034452,43.44634064388736],[16.91615644701733,43.66772247982567],[16.456442905348865,44.04123973243128],[16.23966027188453,44.35114329688571],[15.750026075918981,44.81871165626256],[15.959367303133376,45.233776760430935],[16.318156772535872,45.00412669532591],[16.534939406000206,45.21160757097772],[17.00214'..b'ope","region_wb":"Europe & Central Asia","name_len":7,"long_len":7,"abbrev_len":4,"tiny":-99,"homepart":1,"filename":"UKR.geojson"},"geometry":{"type":"Polygon","coordinates":[[[31.785998162571587,52.101677964885454],[32.15941206231267,52.06126699483322],[32.41205813978763,52.28869497334975],[32.71576053236697,52.23846548116205],[33.7526998227357,52.335074571331695],[34.39173058445701,51.76888174092579],[34.14197838719039,51.56641347920623],[34.22481570815427,51.25599315042895],[35.02218305841788,51.20757233337145],[35.37792361831512,50.77395539001034],[35.35611616388795,50.577197374059054],[36.62616784032534,50.225590928745135],[37.39345950699507,50.38395335550359],[38.010631137856905,49.91566152607463],[38.59498823421342,49.92646190042363],[40.06905846533911,49.6010554062817],[40.08078901546935,49.307429917999286],[39.67466393408753,48.78381846780187],[39.89563235856758,48.23240509703143],[39.738277622238826,47.89893707945198],[38.7705847511412,47.825608222029814],[38.25511233902975,47.546400458356814],[38.22353803889942,47.10218984637588],[37.42513715998999,47.022220567404204],[36.75985477066439,46.698700263040934],[35.82368452326483,46.64596446388707],[34.96234174982388,46.27319651954964],[35.020787794745985,45.65121898048466],[35.51000857925317,45.40999339454619],[36.52999799983016,45.46998973243706],[36.33471276219916,45.113215643893966],[35.23999922052812,44.939996242851606],[33.882511020652885,44.36147858334407],[33.326420932760044,44.56487702084489],[33.54692426934946,45.03477081967489],[32.4541744321055,45.32746613217608],[32.630804477679135,45.519185695978905],[33.58816206231839,45.85156850848024],[33.29856733575471,46.080598456397844],[31.74414025241518,46.333347886737386],[31.675307244602408,46.70624502215554],[30.748748813609097,46.583100084004],[30.377608676888883,46.03241018328567],[29.603289015427432,45.293308010431126],[29.149724969201653,45.46492544207245],[28.679779493939378,45.304030870131704],[28.233553501099042,45.48828318946837],[28.485269402792767,45.5969070501459],[28.659987420371575,45.93998688413164],[28.93371748222162,46.2588304713725],[28.862972446414062,46.43788930926383],[29.072106967899295,46.517677720722496],[29.170653924279886,46.3792623968287],[29.75997195813639,46.34998769793536],[30.02465864433537,46.42393667254503],[29.838210076626297,46.52532583270169],[29.908851759569302,46.67436066343146],[29.559674106573112,46.928582872091326],[29.41513512545274,47.34664520933257],[29.05086795422733,47.51022695575249],[29.12269819511303,47.84909516050646],[28.670891147585163,48.1181485052341],[28.259546746541844,48.15556224221342],[27.522537469195154,48.467119452501116],[26.857823520624805,48.368210761094495],[26.619336785597795,48.22072622333347],[26.19745039236693,48.22088125263035],[25.9459411964024,47.987148749374214],[25.20774336111299,47.89105642352747],[24.866317172960578,47.73752574318831],[24.40205610525038,47.98187775328042],[23.76095828623741,47.985598456405455],[23.142236362406802,48.09634105080695],[22.710531447040495,47.88219391538941],[22.640819939878753,48.15023956968735],[22.08560835133485,48.42226430927179],[22.28084191253356,48.82539215758067],[22.558137648211755,49.085738023467144],[22.776418898212626,49.02739533140962],[22.518450148211603,49.47677358661974],[23.426508416444392,50.30850576435745],[23.922757195743262,50.42488108987875],[24.029985792748903,50.70540660257518],[23.52707075368437,51.57845408793023],[24.00507775238421,51.61744395609446],[24.553106316839518,51.888461005249184],[25.327787713327005,51.91065603291855],[26.337958611768556,51.83228872334793],[27.454066196408434,51.59230337178447],[28.24161502453657,51.57222707783907],[28.61761274589225,51.42771393493484],[28.99283532076353,51.602044379271476],[29.254938185347925,51.368234361366895],[30.157363722460897,51.41613841410147],[30.555117221811457,51.31950348571566],[30.619454380014844,51.822806098022376],[30.927549269338982,52.04235342061438],[31.785998162571587,52.101677964885454]]]}}]}\n\\ No newline at end of file\n' |
b |
diff -r 000000000000 -r edd99ac6d4a4 test-data/ogrinfo_test1_out2.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/ogrinfo_test1_out2.txt Tue Feb 26 11:50:33 2019 -0500 |
[ |
b'@@ -0,0 +1,2695 @@\n+INFO: Open of `/tmp/tmposJdsx/files/000/dataset_5.dat\'\n+ using driver `GeoJSON\' successful.\n+\n+Layer name: OGRGeoJSON\n+Geometry: Unknown (any)\n+Feature Count: 39\n+Extent: (-180.000000, 2.053389) - (180.000000, 81.250400)\n+Layer SRS WKT:\n+GEOGCS["WGS 84",\n+ DATUM["WGS_1984",\n+ SPHEROID["WGS 84",6378137,298.257223563,\n+ AUTHORITY["EPSG","7030"]],\n+ AUTHORITY["EPSG","6326"]],\n+ PRIMEM["Greenwich",0,\n+ AUTHORITY["EPSG","8901"]],\n+ UNIT["degree",0.0174532925199433,\n+ AUTHORITY["EPSG","9122"]],\n+ AUTHORITY["EPSG","4326"]]\n+scalerank: Integer (0.0)\n+featurecla: String (0.0)\n+labelrank: Integer (0.0)\n+sovereignt: String (0.0)\n+sov_a3: String (0.0)\n+adm0_dif: Integer (0.0)\n+level: Integer (0.0)\n+type: String (0.0)\n+admin: String (0.0)\n+adm0_a3: String (0.0)\n+geou_dif: Integer (0.0)\n+geounit: String (0.0)\n+gu_a3: String (0.0)\n+su_dif: Integer (0.0)\n+subunit: String (0.0)\n+su_a3: String (0.0)\n+brk_diff: Integer (0.0)\n+name: String (0.0)\n+name_long: String (0.0)\n+brk_a3: String (0.0)\n+brk_name: String (0.0)\n+brk_group: String (0.0)\n+abbrev: String (0.0)\n+postal: String (0.0)\n+formal_en: String (0.0)\n+formal_fr: String (0.0)\n+note_adm0: String (0.0)\n+note_brk: String (0.0)\n+name_sort: String (0.0)\n+name_alt: String (0.0)\n+mapcolor7: Integer (0.0)\n+mapcolor8: Integer (0.0)\n+mapcolor9: Integer (0.0)\n+mapcolor13: Integer (0.0)\n+pop_est: Integer (0.0)\n+gdp_md_est: Integer (0.0)\n+pop_year: Integer (0.0)\n+lastcensus: Integer (0.0)\n+gdp_year: Integer (0.0)\n+economy: String (0.0)\n+income_grp: String (0.0)\n+wikipedia: Integer (0.0)\n+fips_10: String (0.0)\n+iso_a2: String (0.0)\n+iso_a3: String (0.0)\n+iso_n3: String (0.0)\n+un_a3: String (0.0)\n+wb_a2: String (0.0)\n+wb_a3: String (0.0)\n+woe_id: Integer (0.0)\n+adm0_a3_is: String (0.0)\n+adm0_a3_us: String (0.0)\n+adm0_a3_un: Integer (0.0)\n+adm0_a3_wb: Integer (0.0)\n+continent: String (0.0)\n+region_un: String (0.0)\n+subregion: String (0.0)\n+region_wb: String (0.0)\n+name_len: Integer (0.0)\n+long_len: Integer (0.0)\n+abbrev_len: Integer (0.0)\n+tiny: Integer (0.0)\n+homepart: Integer (0.0)\n+filename: String (0.0)\n+OGRFeature(OGRGeoJSON):0\n+ scalerank (Integer) = 1\n+ featurecla (String) = Admin-0 country\n+ labelrank (Integer) = 6\n+ sovereignt (String) = Albania\n+ sov_a3 (String) = ALB\n+ adm0_dif (Integer) = 0\n+ level (Integer) = 2\n+ type (String) = Sovereign country\n+ admin (String) = Albania\n+ adm0_a3 (String) = ALB\n+ geou_dif (Integer) = 0\n+ geounit (String) = Albania\n+ gu_a3 (String) = ALB\n+ su_dif (Integer) = 0\n+ subunit (String) = Albania\n+ su_a3 (String) = ALB\n+ brk_diff (Integer) = 0\n+ name (String) = Albania\n+ name_long (String) = Albania\n+ brk_a3 (String) = ALB\n+ brk_name (String) = Albania\n+ brk_group (String) = (null)\n+ abbrev (String) = Alb.\n+ postal (String) = AL\n+ formal_en (String) = Republic of Albania\n+ formal_fr (String) = (null)\n+ note_adm0 (String) = (null)\n+ note_brk (String) = (null)\n+ name_sort (String) = Albania\n+ name_alt (String) = (null)\n+ mapcolor7 (Integer) = 1\n+ mapcolor8 (Integer) = 4\n+ mapcolor9 (Integer) = 1\n+ mapcolor13 (Integer) = 6\n+ pop_est (Integer) = 3639453\n+ gdp_md_est (Integer) = 21810\n+ pop_year (Integer) = -99\n+ lastcensus (Integer) = 2001\n+ gdp_year (Integer) = -99\n+ economy (String) = 6. Developing region\n+ income_grp (String) = 4. Lower middle income\n+ wikipedia (Integer) = -99\n+ fips_10 (String) = (null)\n+ iso_a2 (String) = AL\n+ iso_a3 (String) = ALB\n+ iso_n3 (String) = 008\n+ un_a3 (String) = 008\n+ wb_a2 (String) = AL\n+ wb_a3 (String) = ALB\n+ woe_id (Integer) = -99\n+ adm0_a3_is (String) = ALB\n+ adm0_a3_us (String) = ALB\n+ adm0_a3_un (Integer) = -99\n+ adm0_a3_wb (Integer) = -99\n+ continent (String) = Europe\n+ region_un (String) = Europe\n+ subregion (String) = Southern Europe\n+ region_wb (String) = Europe & Central Asia\n+ name_len (Integer) = 7\n+ long_len (Integer) = 7\n+ abbrev_len (Integer) = 4\n+ tiny (Integer) = -99\n+ homepart ('..b'income\n+ wikipedia (Integer) = -99\n+ fips_10 (String) = (null)\n+ iso_a2 (String) = UA\n+ iso_a3 (String) = UKR\n+ iso_n3 (String) = 804\n+ un_a3 (String) = 804\n+ wb_a2 (String) = UA\n+ wb_a3 (String) = UKR\n+ woe_id (Integer) = -99\n+ adm0_a3_is (String) = UKR\n+ adm0_a3_us (String) = UKR\n+ adm0_a3_un (Integer) = -99\n+ adm0_a3_wb (Integer) = -99\n+ continent (String) = Europe\n+ region_un (String) = Europe\n+ subregion (String) = Eastern Europe\n+ region_wb (String) = Europe & Central Asia\n+ name_len (Integer) = 7\n+ long_len (Integer) = 7\n+ abbrev_len (Integer) = 4\n+ tiny (Integer) = -99\n+ homepart (Integer) = 1\n+ filename (String) = UKR.geojson\n+ POLYGON ((31.7859981625716 52.1016779648855,32.1594120623127 52.0612669948332,32.4120581397876 52.2886949733497,32.715760532367 52.2384654811621,33.7526998227357 52.3350745713317,34.391730584457 51.7688817409258,34.1419783871904 51.5664134792062,34.2248157081543 51.2559931504289,35.0221830584179 51.2075723333715,35.3779236183151 50.7739553900103,35.3561161638879 50.5771973740591,36.6261678403253 50.2255909287451,37.3934595069951 50.3839533555036,38.0106311378569 49.9156615260746,38.5949882342134 49.9264619004236,40.0690584653391 49.6010554062817,40.0807890154693 49.3074299179993,39.6746639340875 48.7838184678019,39.8956323585676 48.2324050970314,39.7382776222388 47.898937079452,38.7705847511412 47.8256082220298,38.2551123390298 47.5464004583568,38.2235380388994 47.1021898463759,37.42513715999 47.0222205674042,36.7598547706644 46.6987002630409,35.8236845232648 46.6459644638871,34.9623417498239 46.2731965195496,35.020787794746 45.6512189804847,35.5100085792532 45.4099933945462,36.5299979998302 45.4699897324371,36.3347127621992 45.113215643894,35.2399992205281 44.9399962428516,33.8825110206529 44.3614785833441,33.32642093276 44.5648770208449,33.5469242693495 45.0347708196749,32.4541744321055 45.3274661321761,32.6308044776791 45.5191856959789,33.5881620623184 45.8515685084802,33.2985673357547 46.0805984563978,31.7441402524152 46.3333478867374,31.6753072446024 46.7062450221555,30.7487488136091 46.583100084004,30.3776086768889 46.0324101832857,29.6032890154274 45.2933080104311,29.1497249692017 45.4649254420724,28.6797794939394 45.3040308701317,28.233553501099 45.4882831894684,28.4852694027928 45.5969070501459,28.6599874203716 45.9399868841316,28.9337174822216 46.2588304713725,28.8629724464141 46.4378893092638,29.0721069678993 46.5176777207225,29.1706539242799 46.3792623968287,29.7599719581364 46.3499876979354,30.0246586443354 46.423936672545,29.8382100766263 46.5253258327017,29.9088517595693 46.6743606634315,29.5596741065731 46.9285828720913,29.4151351254527 47.3466452093326,29.0508679542273 47.5102269557525,29.122698195113 47.8490951605065,28.6708911475852 48.1181485052341,28.2595467465418 48.1555622422134,27.5225374691952 48.4671194525011,26.8578235206248 48.3682107610945,26.6193367855978 48.2207262233335,26.1974503923669 48.2208812526303,25.9459411964024 47.9871487493742,25.207743361113 47.8910564235275,24.8663171729606 47.7375257431883,24.4020561052504 47.9818777532804,23.7609582862374 47.9855984564055,23.1422363624068 48.0963410508069,22.7105314470405 47.8821939153894,22.6408199398788 48.1502395696874,22.0856083513349 48.4222643092718,22.2808419125336 48.8253921575807,22.5581376482118 49.0857380234671,22.7764188982126 49.0273953314096,22.5184501482116 49.4767735866197,23.4265084164444 50.3085057643574,23.9227571957433 50.4248810898788,24.0299857927489 50.7054066025752,23.5270707536844 51.5784540879302,24.0050777523842 51.6174439560945,24.5531063168395 51.8884610052492,25.327787713327 51.9106560329186,26.3379586117686 51.8322887233479,27.4540661964084 51.5923033717845,28.2416150245366 51.5722270778391,28.6176127458922 51.4277139349348,28.9928353207635 51.6020443792715,29.2549381853479 51.3682343613669,30.1573637224609 51.4161384141015,30.5551172218115 51.3195034857157,30.6194543800148 51.8228060980224,30.927549269339 52.0423534206144,31.7859981625716 52.1016779648855))\n+\n' |
b |
diff -r 000000000000 -r edd99ac6d4a4 test-data/ogrinfo_test2_out2.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/ogrinfo_test2_out2.txt Tue Feb 26 11:50:33 2019 -0500 |
[ |
@@ -0,0 +1,83 @@ +INFO: Open of `/tmp/tmpEj2FAw/files/000/dataset_6.dat' + using driver `GeoJSON' successful. + +Layer name: OGRGeoJSON +Geometry: Unknown (any) +Feature Count: 39 +Extent: (-180.000000, 2.053389) - (180.000000, 81.250400) +Layer SRS WKT: +GEOGCS["WGS 84", + DATUM["WGS_1984", + SPHEROID["WGS 84",6378137,298.257223563, + AUTHORITY["EPSG","7030"]], + AUTHORITY["EPSG","6326"]], + PRIMEM["Greenwich",0, + AUTHORITY["EPSG","8901"]], + UNIT["degree",0.0174532925199433, + AUTHORITY["EPSG","9122"]], + AUTHORITY["EPSG","4326"]] +Geometry Column = _ogr_geometry_ +scalerank: Integer (0.0) +featurecla: String (0.0) +labelrank: Integer (0.0) +sovereignt: String (0.0) +sov_a3: String (0.0) +adm0_dif: Integer (0.0) +level: Integer (0.0) +type: String (0.0) +admin: String (0.0) +adm0_a3: String (0.0) +geou_dif: Integer (0.0) +geounit: String (0.0) +gu_a3: String (0.0) +su_dif: Integer (0.0) +subunit: String (0.0) +su_a3: String (0.0) +brk_diff: Integer (0.0) +name: String (0.0) +name_long: String (0.0) +brk_a3: String (0.0) +brk_name: String (0.0) +brk_group: String (0.0) +abbrev: String (0.0) +postal: String (0.0) +formal_en: String (0.0) +formal_fr: String (0.0) +note_adm0: String (0.0) +note_brk: String (0.0) +name_sort: String (0.0) +name_alt: String (0.0) +mapcolor7: Integer (0.0) +mapcolor8: Integer (0.0) +mapcolor9: Integer (0.0) +mapcolor13: Integer (0.0) +pop_est: Integer (0.0) +gdp_md_est: Integer (0.0) +pop_year: Integer (0.0) +lastcensus: Integer (0.0) +gdp_year: Integer (0.0) +economy: String (0.0) +income_grp: String (0.0) +wikipedia: Integer (0.0) +fips_10: String (0.0) +iso_a2: String (0.0) +iso_a3: String (0.0) +iso_n3: String (0.0) +un_a3: String (0.0) +wb_a2: String (0.0) +wb_a3: String (0.0) +woe_id: Integer (0.0) +adm0_a3_is: String (0.0) +adm0_a3_us: String (0.0) +adm0_a3_un: Integer (0.0) +adm0_a3_wb: Integer (0.0) +continent: String (0.0) +region_un: String (0.0) +subregion: String (0.0) +region_wb: String (0.0) +name_len: Integer (0.0) +long_len: Integer (0.0) +abbrev_len: Integer (0.0) +tiny: Integer (0.0) +homepart: Integer (0.0) +filename: String (0.0) |