PostGIS support
sommergis opened this issue · comments
Hi @shortishly,
I learned about this project from Scaling Postgres#254 - very interesting work!
I tried to replace the test data with my own data and encountered an issue. I'm using PostGIS (geometry and raster) data, which basically worked in the REST API, but unfortunately was encoded binary in the output:
Maybe this is how pgec handles all non-simple UDTs.
It would be great to add ST_AsBinary(), ST_AsText() or ST_AsGEOJSON() for the output PostGIS vector geometries of pgec (REST, Memcached and Redis API) and maybe ST_AsBinary() for PostGIS raster objects.
I'm happy to contribute if you point me to the code - although I don't have any knowledge in Erlang.
Best regards,
Johannes
Hi Johannes,
Thanks! Yes, that looks like the default handling for an "unknown" type. The "value" is the encoded type (which is showing as binary). I'll take a look at what is required to support postgis types - do you have a schema (and small sample data) that you could share to use as an example?
Thanks!
Peter.
Hi Peter,
thank you for looking into this!
I attached two open data samples in PostgreSQL SQL format:
- PostGIS vector geometry from Openstreetmap
- PostGIS raster clipping from Sentinel 2 data
010_init_postgis_extensions.sql.gz
011_osm_rivers_sample.sql.gz
012_S2_T32ULU_20190823T103029.sql.gz
Best regards,
Johannes
Thanks for the data!
Decoding the OSM rivers sample with output from pgec encoding into JSON (some details from the WKB are little rough: endian, format/etc are still present right now).
Does this look useful? If so, I need to tidy a couple of things up, but could push onto develop sooner than later.
Raster - I need to understand a bit more.
➜ pgec git:(develop) ✗ curl -s http://localhost:8080/pub/osm_rivers_sample/1 | jq
{
"country": "TZA",
"geom": {
"endian": "little",
"format": "extended",
"m": false,
"points": [
{
"endian": "little",
"format": "standard",
"points": [
{
"type": "point",
"x": 30.78103150000379,
"y": -2.3894540996269598
},
{
"type": "point",
"x": 30.780984200160788,
"y": -2.3889098002470632
},
...lots more points...
{
"type": "point",
"x": 30.86863800024355,
"y": -2.1394782001587487
}
],
"type": "line_string"
}
],
"srid": 4326,
"type": "multi_line_string",
"z": false
},
"name": "Akagera",
"ogc_fid": 1,
"osm_id": "25470351",
"type": "river"
}
Maybe I don't understand the principles of postgres logical streaming decoding but it seems to me that you'll have to decode the binary with own written code. Wouldn't it be possible to access regular PostgreSQL/PostGIS functions?
The regular approach for decoding internal binary format for PostGIS vector geometry to Text representation is with ST_AsText(geometry). I could also imagine WKB as on option (ST_AsBinary function)
For the PostGIS raster type I don't think its feasible to convert this to text representation in a REST API someone could use afterwards. But I think WKB ; WKB Format description would be a good approch.
Both WKB formats are much better than the internal PostgreSQL binary format, because they are known in the GIS ecosystem and for their tools.
Thanks for all the links, they're very useful :)
Would the following work? The "geom" attribute is the WKB provided by the replication process.
➜ pgec git:(develop) ✗ curl -s http://localhost:8080/pub/osm_rivers_sample/1 | jq
{
"country": "TZA",
"geom": "0105000020E61000000100000001020000000402000080A92DAEF1C73E400087691C9A1D03C020629E94EEC73E40803DC9BD7C1C03C0B0795783E6C73E4000A7BDA02A1B03C0D0548C55DEC73E4080E4C5902A1A03C0E02AF245D6C73E4080D7ED06541903C0F057DA62C8C73E40008039EBF21703C0D05C2CC3B8C73E400054260E891603C0604C12ACAAC73E4080A391C7451503C0806891C2ABC73E40807B8F26501403C0D08F8520ACC73E4080FA1851FC1303C0E0D349ABB5C73E4080AD0E9E6A1303C0F01D92ADD3C73E4000B3D2D5FB1203C0106FFE2CF1C73E4080A8BB34B71203C0308BBCB31BC83E40807D4F3F4D1203C0300961D042C83E400062E545A31103C090EACBC05CC83E40003A19F7FD1003C080D2C3E281C83E4080B7BA152E1003C090F425A886C83E4080CC839DF60F03C0A08AD2A288C83E40003AE4E69E0F03C0D02ABC0276C83E4080440448890D03C0A0754BD070C83E40005D396F7A0C03C090E960E06FC83E4000F4297DFF0B03C0403629266FC83E40800BB52F4B0B03C0C046BE9767C83E4000BABCCDC60A03C0A036562767C83E4080DBF385790A03C0E07199756BC83E40801B26AF340A03C0C03D8DDB79C83E4000D0CDB5CE0903C0B031896C8CC83E400082B4D3D60803C0D0A8601F9DC83E4000A42220CB0703C000152DD5AAC83E408030FA41570703C0A0202AB1C6C83E40008A0AC5B70603C010066B11F6C83E4080956D5CA40503C060E0B18410C93E400075804FE50403C0C0D6E97C2EC93E4000798D2E1F0403C0707A47263BC93E4000A76378FD0303C030A5F50247C93E4000C5F34D280403C0A0B14CE152C93E4000267E1F800403C090E2D5485CC93E400083354C3A0503C0B073A25170C93E4000F24858D10503C0D0F92E3883C93E40007CBBC4140603C020828D3BA5C93E4080B397351D0603C08040D219CEC93E4080ACB7EA730503C0904539D8F6C93E4080B7D95DE40403C0C00F574B3ACA3E40809809A62E0403C000BAF52576CA3E4000CAADF57E0303C0E02F9F419ECA3E408075BF61DB0203C030E6E81EC8CA3E408028160CD00103C04028B17AD1CA3E4080C2989A760103C000A79C62D5CA3E40800802DC260103C040CBBD0DD6CA3E4000C74DA3A10003C090D8BC15D3CA3E400002616A450003C0A074DA50D6CA3E4080B2C68146FF02C080A88FD7DECA3E40002AA1146EFE02C080BD5CDFE2CA3E4080864DA82AFE02C0C0734B29E8CA3E4000DE0B8DF4FD02C0A0551840F8CA3E4080B4EFEA6CFD02C0306FAB6F05CB3E4000D3249611FD02C04077E5E02DCB3E4080E69E0CE9FB02C03048BB5F4FCB3E4080EEC0BDFFFA02C020E19DC47BCB3E4080013B34D7F902C040A03CA594CB3E4080C57BE607F902C0D094CF819BCB3E40808A0365A3F802C0805D2D7EAECB3E4080E8363267F702C08044C976BECB3E4000D4175872F502C030AA08FBC0CB3E400089C960A3F102C0F0B10B20C6CB3E4080841BCD69F002C08035277ACFCB3E4080F1E35D78EF02C010217663D5CB3E4000D2D28146EF02C0C048AAF9E0CB3E40001DF2D4E4EE02C0800B387E03CC3E4080B8F56992EE02C0D04D042857CC3E40801CB43D0EEE02C0B00CB79EC6CC3E400018D6FF72ED02C0B06FFB84FDCC3E40002F868AF4EC02C05049305239CD3E400002303E5AEC02C0B0119C19B3CD3E4000CB6235E6EA02C030F2E950E1CD3E4080F0456F4CEA02C03081983C0ACE3E408074F046C4E902C0E055C7A931CE3E400046B3F770E902C090096BD553CE3E4000A0FEBD30E902C0400FF7706ECE3E400069FB293EE902C04023002C86CE3E40803FE09079E902C0D0BF4C8FA6CE3E4000B3D57014EA02C00045A3BACACE3E40807B5EBACCEA02C050587A083ECF3E40803C6E8522ED02C07045CF9D60CF3E4080018C71A3ED02C0801140857ECF3E40808ABA65F3ED02C080309C99AACF3E4000BBEA92EEED02C0D02DAD6D2FD03E4080E3C54928ED02C000360F74A3D03E400023916D6EEC02C0B0634E4EFED03E4080497B91B4EB02C070C412BF62D13E40808086A35BEA02C020E6B54DA7D13E4000363D128AE802C0F0068258ECD13E4080B72D7661E502C0E0A57C911AD23E4080A914013DE302C080ED42F740D23E40009418B4C9E102C0A08AE4F0A4D23E40805F15548DDE02C0A0AEEDF8E5D23E4000368F5819DD02C020ECCF6520D33E4080399E8207DC02C040A894CE76D33E4000AEDE4F87DA02C010E1C12396D33E4000EB12029DD902C02049AF7DA6D33E4000176052D1D802C020D9C849BCD33E40803642FFC0D602C0E0402A6BE5D33E408060747ECED302C0F08D452003D43E40008085932ED202C0708607D91ED43E40001AA36714D102C010B5693755D43E40802A245855CF02C0E0B5E2E2A8D43E40009D1514E4CC02C000D4083CE6D43E4080AB14F55ACA02C0F012508C2CD53E40800B349D31C702C0A03FFE1774D53E4080258B4369C402C0B02AFE1197D53E4000961F8F35C302C0B0C2F6BBB0D53E40805E4EF058C202C08034757BFFD53E4080259687F1BF02C040E4E9CA0CD63E400012B8984ABF02C08049FC4D17D63E4000E6A2702CBE02C0C0843F9C1BD63E4000CBE0A073BD02C09074A2061DD63E4080D5C23159BC02C0B07881621AD63E4080368D1E6ABB02C0707E75210CD63E4080C113E450BA02C0407632C4FBD53E40804DE175A2B902C0407F6380E9D53E400079F137C3B802C0E0F2C6E9DAD53E4000645CF0C4B702C0603B4F75C8D53E4000AE70AA65B602C0E062AD1DC5D53E4000F0FF43E3B402C020C79AF5CED53E4000273718A0B302C080482C8FDAD53E4080423B4EC6B202C0301B4C96EED53E4080E5E91DBEB102C030302CD505D63E4000532274E7AE02C0707E75210CD63E40006B52FCACAD02C0C04D10CF12D63E40804FBFCD92AB02C0D09056421CD63E408086C6301CA902C00076605628D63E4080C4DC46BFA702C090941BD434D63E4000F8A427DCA602C0106433034BD63E40800E23F675A502C000658F2C60D63E400082889B2BA402C0506CEAF582D63E4000C9699599A202C0E0D6B47FAFD63E400086722612A102C0C0204D02E5D63E4000C1EC2B599F02C02004923314D73E40002E161AEE9D02C030929EC03BD73E40008A5854BE9C02C04000CA5C74D73E4000F5C3AD389B02C050D71243BCD73E400008D71E9B9902C0A050E28002D83E40805F2F40E19702C060AA65F228D83E400006BC4D749702C0607D37A04AD83E40002E23E2589702C05053A7DB6DD83E400077F5358C9702C0B036EC0C9DD83E4080FBA2617B9702C0E0B64F0FC0D83E408073E998439702C0B009B12A0CD93E4080CFF43ED29602C010AB2D0032D93E4000996382809602C0602A15127AD93E4000E670C2B79502C0505E0909ACD93E40808961BFEE9402C0D03E3E3ED7D93E4080D5F9D30D9402C0B0A70C6712DA3E40801343E8899202C090F1A4E947DA3E4080BC95B6089102C0601CF48E64DA3E4080829648089002C01090DEC490DA3E408012D900FA8D02C0702CC1DDB4DA3E4000131813F08B02C0003141D0D1DA3E408041C772128A02C0A0F3F866E5DA3E408013C1B7008902C0D08E28430BDB3E4000E258262F8702C0906A460834DB3E40804DD2A54C8502C050F5CD3B4EDB3E400086542EC08302C080E244BF5BDB3E40800177919D8202C0F044474662DB3E4000C957EA928102C060088E0464DB3E408018CBE8D58002C050F1C4CD5FDB3E4000DDDF860D8002C02028771959DB3E40801757FFAE7F02C04091B65153DB3E40807992816F7F02C0E08642A044DB3E4000226D97307F02C0A0E50D2730DB3E4080E01F64207F02C04065E76D11DB3E4080261C6D5B7F02C0E06B571DDEDA3E4000ECAAEE8B8002C08043056FA3DA3E4080C9FF13848102C050649F9971DA3E4080936D15418202C0B0B7322262DA3E400068C59A868202C04029F99342DA3E4000EFA33BF48202C0600058F624DA3E40005698231A8302C020D45D3810DA3E408008B1FD098302C030532EC5FAD93E4080CAA4B0CF8202C0909659DDEAD93E4080B16886498202C0C0C89E6DDAD93E408096A6B6908102C03033FB2CCFD93E4000A674ABB48002C0107F96A3C7D93E40009AB28C078002C0908CFFF5C0D93E400049614BB17E02C010B4B60ABDD93E408010817D6E7D02C08050A8DAB8D93E40808F72EF807C02C0C0D8AB4AB6D93E400011F38D3D7B02C0C0C2602BB2D93E400079C3DF1E7A02C090A2904AB1D93E400026224BE67802C03016AE7EB6D93E400093E890407802C080F7D012BFD93E40804CE4427F7702C080DEC577CED93E4080A9FD0EB17602C080EEB28DE4D93E4000AF5A41CD7502C010E10306FFD93E40009542E6B97402C0D06AFAEA05DA3E400042D5581D7402C0A067F21208DA3E4000B25ED2BD7302C0704D3A0609DA3E400036D6AB5C7302C0503D2B0208DA3E4000752FF8017302C0301ABD9305DA3E400060CEB79F7202C0508CE75201DA3E40801D3F57507202C0F0FF4ABCF2D93E4000D4A3E9417102C050BEAF61E1D93E4080A9DE14067002C080DEC577CED93E4080A914A0846E02C0002C8F53BED93E40803168A5386D02C05082C069B0D93E4000F9B88A1A6C02C0B0C8BE34A0D93E4000226F691E6B02C0F0FB81DC8FD93E408091C4DB226A02C0304ED49684D93E40007BAE8D1D6902C0A0FD24D181D93E40007E4BE06A6802C000B62B6D82D93E40807F98DFD56702C090AABE4989D93E40004F03F8196702C09070769494D93E400008F8BF786602C020513F26ADD93E4080968531996502C060BE2ABCCBD93E4080D956F8556402C080E319FFE3D93E40009651632B6302C09074B1E2F9D93E4000BD135BC46102C030FCBECF13DA3E4080FE9D55166002C08079710D22DA3E4000ABBDE7155F02C0B0AA77F63ADA3E4080237983245D02C0B019AD144CDA3E4080F3EB191D5B02C0C01877595DDA3E4080A34B892F5902C030FC23AE63DA3E400082B89D335802C0C0C70C0165DA3E40809C785B665702C030748A8862DA3E40002682B0AE5502C0806CBC885BDA3E4080341105395302C080E422635ADA3E4080927B663E5102C0E0AFA16B5FDA3E4000450406494F02C0D0D6F65965DA3E4000D0BE0BFA4C02C01032A03E6EDA3E400048A806B64A02C05094DF0E79DA3E4080ACDB3E784802C090617E8D7FDA3E40009853145A4602C0F08456467EDA3E40000E86B6BE4302C0B02B02FD74DA3E408089A5C5244202C0F0FCA9E969DA3E4000D047E6CA4002C03004911D65DA3E4000F69267973F02C050572CCA5BDA3E40808916065F3D02C0F09463235ADA3E4080258A60273B02C080E422635ADA3E40002F30A5EA3802C060CF92A45ADA3E40802CDD36BF3602C030BF83A059DA3E408004A8D01E3402C03037EA7A58DA3E4080A3EB7B0D3102C0407B9BCE4EDA3E408088F5A4B82F02C0C04BBD7F3DDA3E400005262E392E02C0F0059C352EDA3E4080608D403F2D02C060F4BBAA0EDA3E4000980539782B02C0B0747499F5D93E4000DA2937182A02C0E099246CE4D93E4080F0D8B8D62802C0B05B4390DED93E40004FAA1F512702C0D0BD9370D7D93E40809B8004752502C0A0844C51D3D93E4080C328BDD52402C0D080F362CDD93E4080E4E558612402C0607F3513C2D93E4080B72B5BC92302C070264B14B5D93E4080F838AC4E2302C0409BDC148FD93E400082A9060C2202C0F06376FB62D93E40000D9A5E0D2002C03065A4924BD93E4000C02FE2C91E02C040C3907131D93E40000744DA101D02C0709A966714D93E400095CF39AB1A02C0204ACC46F8D83E4000B250199E1802C0F0589855D8D83E4080483585621602C0C0D418AEB3D83E4000E4D9924F1402C06008F61F88D83E40006FCAEA501202C0F074350C7AD83E4000067E6AC21102C0B023A79E71D83E400058E79A241102C0A0DA615969D83E4000EADF697C1002C070413B1867D83E4000ECA194FF0F02C0D05C4DF564D83E4000E1E4147E0F02C06027B83066D83E40805B5BB8010F02C0E0B7332372D83E40807AC7F7E70D02C0805EBDEB7DD83E40006976EA360D02C0A0A8AC819CD83E400024564BB70B02C02001355AB3D83E4000B7681BA10A02C0F0A8715FBDD83E4000A6170EF00902C000C88E03C0D83E4000321653660902C000C88E03C0D83E408017EE86FB0802C0F0248270BBD83E400028A5C98C0702C080A0C4B7B0D83E4080FE8860330502C000034299A1D83E4080FEF9673F0202C0E0F5647F8FD83E40802AE448670002C05014C56977D83E4080FDF43A70FE01C0C06758F267D83E400067469358FD01C0300DD4EA50D83E40803BD88B68FB01C0A0985A8D36D83E40002297FBE4F801C0707B4A2822D83E4000832CD896F601C0206BBEA211D83E4080DCDC9145F501C040586824F8D73E400020ED31CAF301C0F0D08738D6D73E4000D8CA853CF201C0E0E8B35DB2D73E4080C20137A2F001C090D8BB348FD73E400097932FB2EE01C000514F1086D73E4080DD9A0A19EE01C0E01A69357FD73E4000D922C92FED01C07061E4817ED73E4000FDB6F1A4EB01C0600C295F86D73E408016D109C9E801C0C044CE1F89D73E4080152A22C9E701C080C9D1DB8ED73E4080275DCC35E601C09024B8099CD73E40806B39651EE401C0B084C685A8D73E40800BF6985FE201C0F0F47197B3D73E4080A65982D0E001C030DD4E5EBFD73E4080A735EC8BDF01C0F01FB02CE2D73E4000369C73F0DC01C0F06BAC01EFD73E4080C2A58A92DB01C060CB6967F3D73E4080932AA468DA01C0802E385FECD73E4080F8662A74D901C090DF0F6BE0D73E400090BD34ABD801C0F0C7897AC1D73E408034BEA239D701C010D65DDF98D73E40009582E75BD501C0A0588F7E8FD73E4080ED1D3FA4D401C070279CCC89D73E4080FACC930AD401C01060E0FC86D73E4000FDC1BC66D301C03066866286D73E40807E7662BFD201C0B04D84818CD73E40804524BDDBD101C04050839F93D73E4080220E8024D101C0B0680A26A3D73E400010D31B43D001C0108CF515B5D73E40804415C7A3CF01C0D0FBB06FCCD73E4000B6EE9326CF01C0C08E68C9E3D73E4000582941C9CE01C0D0BCAE3610D83E4080C9020E4CCE01C0F0D701DD4DD83E4080EED96CC3CD01C0D044AD3A61D83E400080394190CD01C06003A29872D83E4000BB4C0834CD01C030D0858483D83E408090AF5FA5CC01C080558C2F90D83E4080482FFCEBCB01C03052C1A096D83E4000BBB23D14CB01C05069186998D83E4000BFF56E9ECA01C0306B38DF99D83E40009B6A06CFC901C0405F565E97D83E4000E627F323C901C0100DF16C8FD83E40007EBDD622C801C0E03280E783D83E4080861E6101C701C060C959E37DD83E4080C01BBD7BC601C05086137074D83E4080AC02DD58C501C0204AF99D70D83E4000782C0FC7C401C09091164971D83E40806EF7D10FC401C0F008E6D77BD83E4080FB6DCF43C201C0E08D1EB97FD83E40806423D929C101C02041567380D83E40804A389BD2C001C020ADA5A77ED83E4000D8203779C001C01082FFEE78D83E4080FB109337C001C0706564E76DD83E40806FE091D9BF01C0F0AE575348D83E40805C09DFF5BE01C01048989020D83E4080768C0E15BE01C0F043EC32FCD73E4000955AB444BD01C0B0B2EA04EAD73E40003356C6C5BC01C0F077B070DCD73E4000A8D42A1CBC01C0306B138FD5D73E4000AA8A7AB0BB01C040D86E6CD1D73E4080B6C9422ABB01C080ED3350CFD73E408000D32A9FBA01C0C087663ACFD73E40008DDD4A04BA01C0A09CFE1CD5D73E4000160D8145B901C08054A392DFD73E4000D349195AB801C0400B95CBEBD73E4080889B9499B701C0F04E85C1FCD73E40808CA873D3B601C050DB21580BD83E40805873E552B601C02035DAEE2FD83E4080CECEBC27B501C0A06A297E42D83E4000BB547F7EB401C020F2607D4DD83E40007E8EF5EBB301C070AD771552D83E408078C9B497B301C0B0DDAF6653D83E4000BDE4ED19B301C0903A6EAE50D83E4080C0B792B7B201C010DEDC674BD83E400059BE0B66B201C0504FBE3445D83E4000F6051907B201C020F1CF2E3AD83E4080AC9EB294B101C0C0AB827923D83E4080F5CEBDF3B001C0C0C9803D15D83E40806C6F167FB001C01086E9B303D83E400046EC30DCAF01C0A08D6F57F9D73E400042DBF467AF01C0D0EBA392F0D73E40806A1FFCCAAE01C0D05D992CEED73E4000C4CE7388AE01C0C04D31BCEDD73E4000F04ADA49AE01C0302555FCF0D73E4080D39C68ACAD01C0203D6725F7D73E40800281D82DAD01C0F0F3585E03D83E40802E9D753DAC01C0B0F906E808D83E40802F1637BEAB01C0D03397F90ED83E408058CACA0DAB01C0D0B786E810D83E408018CA9668AA01C0D0B786E810D83E40803E1621F8A901C010C240CF0BD83E40005C3EE8EAA801C050926AA400D83E4080DDBE86A7A701C0B08EED6EF9D73E40009CA348ADA601C0505CB9EEF7D73E4080907D7802A601C090F6EBD8F7D73E40001786C9FFA401C0A015097DFAD73E40806CBE0897A401C0904692E403D83E4080E6606E30A401C0004E7B3F24D83E40800977E415A301C0505DAF1B5BD83E4080E40F4BB9A101C020F89EBF75D83E4000322966DFA001C0F04DF35487D83E40003AE51A44A001C0E0200B3895D83E4080B7EF899D9F01C0E048F174AED83E4080C2DF40269E01C010DB3B95C2D83E4000C0B4FEA79C01C0101F598CCBD83E40006EEF9AFC9B01C0D0566701DAD83E40000794AD619B01C0106913FDEBD83E40000E4487D79A01C010F18C5B27D93E408033832DB59901C0C078B34A44D93E4080EB6B1A259901C000BA21A45DD93E400015BCFC769801C07067307A6ED93E408014ECA6D89701C0709DE12F77D93E4080904211529701C0F0A6411482D93E4000E597E3989601C030EC466D87D93E40802A2A93E79501C0F06AA4C38DD93E40800EF397169501C090C94D5C8ED93E4000C7AC1C169401C0306B9C9F87D93E40005126FE4A9201C020D5EFA485D93E4080120F18139101C0C03144A286D93E4080A57C12839001C0E0489B6A88D93E4080894517B28F01C0F0EB4E918DD93E4000A4D2D60B8F01C050015CD19CD93E40001575487B8D01C0B0A87E0CC2D93E4080C0EA9E038B01C0402FF2BEE0D93E4080A96E8D7A8801C0802B539BEED93E4000DCF8D6C08601C04078633DFFD93E4000BFE7F5168501C030E074DE10DA3E400076EC6C738301C0402D7D5C1BDA3E40009F6CF9268201C0E096D8851FDA3E4000F063C4447E01C0305D88AC24DA3E4000F70CB4DA7D01C0504292C030DA3E4000096BDE6B7D01C010784B9A3FDA3E4000CB2DDE0C7D01C07059C9C16CDA3E40000891F8927C01C03091D7367BDA3E40009E69503A7C01C0B021FABC87DA3E4080AB5042A57B01C0806A472696DA3E4000A0906EAC7A01C000A9DAA8A9DA3E408077E8EE797901C01032ACB0BEDA3E40009A2DCDCF7801C060EB0E76D4DA3E4000DB13FB6A7801C04098530218DB3E40004B05BC717701C01040CF774BDB3E40004D93DF587601C03082DF2F66DB3E400045A21A957501C0800F534A74DB3E4000E2F2AEAD7401C0209D30AF7EDB3E4000D02EC1987301C050020E0D8BDB3E400046BD96467201C0E01369F294DB3E40804B81CED77101C050FD4052B0DB3E40004F5473757101C0F0FEA75CE1DB3E4080A0E27B0D7101C0A00B2350FDDB3E4080B1D019B27001C0D0FDC1210ADC3E4080338F4F457001C0D00DF56C0CDC3E40805941D6866F01C0905A4B4409DC3E4000E7C021046F01C0407928B000DC3E40005A1BF58D6E01C0502553C8DFDB3E4080E46677156D01C0D000B59BCFDB3E400071A495536C01C0609F8998C8DB3E4080B4DA16D16B01C0E0B4B8C6C2DB3E4000BE4C1BCA6A01C040FAF244C6DB3E4080A6BF56F86901C0A011FCB3D5DB3E40800EFEE9116901C0E0251082FADB3E4080957A5D646701C070B4DD6C07DC3E4000556E4ED06601C000CE709C14DC3E4080BFA213096601C0E0A0E1EB21DC3E4080EF3734F36401C030F993D629DC3E40807F79AAF36301C0C03C3C7029DC3E40801D3F6A246301C08009BFFD25DC3E40806E90E4A86201C0A06A385A1FDC3E4080A11E8B296201C050F734F0FEDB3E40801B2499FD6001C030432F9EE6DB3E400037F27CD35F01C0408662DADCDB3E408059375B295F01C0901B8999D8DB3E4080ECB030885E01C0104E80D0D5DB3E4080E1CA7B965C01C0D0DFD0EDCADB3E4080D978927A5A01C0C0C3DF68C7DB3E4000CB83B39A5901C0B03C8F35C8DB3E4080F66077E25801C0201EE7EECEDB3E4000D314E8DA5701C0901B8999D8DB3E4080EE49D1255701C0E0D93FE603DC3E4080D5AE1FDF5401C0B08EEFBA23DC3E408097A20BD35201C050F85D1B3BDC3E4080908EB98D5101C030CAF7E648DC3E400089AE6EE45001C06041CF9959DC3E408006B9DD3D5001C090A8CE948CDC3E408048DDDBDD4E01C0609F338EA2DC3E4000B5CA44224E01C0E0B59A9EB0DC3E4080CC22F9944D01C0C06CC1FCBADC3E400066D3E6E84C01C08010AD37C5DC3E4000B7BFA6AC4B01C020D7FBCDC4DC3E40800B1E006B4A01C010933743BBDC3E4080869839574901C0B071A1EEA8DC3E4080937492C44701C050EB75989BDC3E408072867C424601C030E9EBD79DDC3E4000A61CA1774401C0406009C09ADC3E408065B5675D4301C0309945CC91DC3E40806064495E4201C0806A7B4A84DC3E40805ED65EA54101C020071D9A68DC3E40006A6E3F1F4001C050CFD9FF5BDC3E40806333CAEF3E01C050370D8F58DC3E4000A0C9E24E3E01C020B521F35CDC3E40000917A5CE3D01C060BF607F6DDC3E40809EEA5D4A3D01C0F055950E8CDC3E4000D57C5C8D3C01C030AFB659BCDC3E4000E1143D073B01C0D019A3D1D3DC3E408007A2EB123A01C070DC5A68E7DC3E400048109A1E3901C0C0AD5DE800DD3E40802757CD293701C0A084917010DD3E4080B51634603501C060DFD82E23DD3E4000A1F7596B3301C0C043A2BF2BDD3E4080BE1DD6A93201C0506008A238DD3E4000130FF7F23101C0E0FC41CE45DD3E40004A7887973101C01091F4C06CDD3E4080586D9FA53001C00049AC6D8ADD3E400033942EA82F01C090E04BDD95DD3E4080AA0A10D22E01C000817FC0B9DD3E4080592BDF4A2B01C02091E730BADD3E40003F9C0D6B2A01C0B0156E6BB0DD3E4080E7AB6CB92901C0D05D5787A3DD3E40807754E82E2901C0101A326C94DD3E4080C49EB6792801C080A4F4C18DDD3E4080B428D1922701C0804B1DFA93DD3E40802F0C5BA82601C000FF43A4A6DD3E4080B9B7F8C42501C080BE3BBFCDDD3E4080B50E04B72401C02086411207DE3E4080CEE800222301C0E0CD296618DE3E4080264CBB652201C0200C40671CDE3E4080754A8E902101C090E090F41FDE3E4000B6F366461F01C0103F77D624DE3E4080556BE0A21E01C000128FB932DE3E40806A9A641D1E01C0603C109546DE3E4080E9BFDDCB1D01C0E01B5B0F5FDE3E40807E21BFA61D01C0",
"name": "Akagera",
"ogc_fid": 1,
"osm_id": "25470351",
"type": "river"
}
Great! I appreciate your quick feedback! Looks like WKB for geometry - thank you! This could also be the option for the raster binary.
Would the WKB also be part of the Redis & Memcached API?
Awesome! :) Yes, that will be available on all API.
Redis version is below, but memcached will be the same as the REST above.
I'll take a look at the raster short(ish)ly.
redis-cli hgetall pub.osm_rivers_sample.1
- "type"
- "river"
- "osm_id"
- "25470351"
- "ogc_fid"
- "1"
- "name"
- "Akagera"
- "geom"
- "0105000020E61000000100000001020000000402000080A92DAEF1C73E400087691C9A1D03C020629E94EEC73E40803DC9BD7C1C03C0B0795783E6C73E4000A7BDA02A1B03C0D0548C55DEC73E4080E4C5902A1A03C0E02AF245D6C73E4080D7ED06541903C0F057DA62C8C73E40008039EBF21703C0D05C2CC3B8C73E400054260E891603C0604C12ACAAC73E4080A391C7451503C0806891C2ABC73E40807B8F26501403C0D08F8520ACC73E4080FA1851FC1303C0E0D349ABB5C73E4080AD0E9E6A1303C0F01D92ADD3C73E4000B3D2D5FB1203C0106FFE2CF1C73E4080A8BB34B71203C0308BBCB31BC83E40807D4F3F4D1203C0300961D042C83E400062E545A31103C090EACBC05CC83E40003A19F7FD1003C080D2C3E281C83E4080B7BA152E1003C090F425A886C83E4080CC839DF60F03C0A08AD2A288C83E40003AE4E69E0F03C0D02ABC0276C83E4080440448890D03C0A0754BD070C83E40005D396F7A0C03C090E960E06FC83E4000F4297DFF0B03C0403629266FC83E40800BB52F4B0B03C0C046BE9767C83E4000BABCCDC60A03C0A036562767C83E4080DBF385790A03C0E07199756BC83E40801B26AF340A03C0C03D8DDB79C83E4000D0CDB5CE0903C0B031896C8CC83E400082B4D3D60803C0D0A8601F9DC83E4000A42220CB0703C000152DD5AAC83E408030FA41570703C0A0202AB1C6C83E40008A0AC5B70603C010066B11F6C83E4080956D5CA40503C060E0B18410C93E400075804FE50403C0C0D6E97C2EC93E4000798D2E1F0403C0707A47263BC93E4000A76378FD0303C030A5F50247C93E4000C5F34D280403C0A0B14CE152C93E4000267E1F800403C090E2D5485CC93E400083354C3A0503C0B073A25170C93E4000F24858D10503C0D0F92E3883C93E40007CBBC4140603C020828D3BA5C93E4080B397351D0603C08040D219CEC93E4080ACB7EA730503C0904539D8F6C93E4080B7D95DE40403C0C00F574B3ACA3E40809809A62E0403C000BAF52576CA3E4000CAADF57E0303C0E02F9F419ECA3E408075BF61DB0203C030E6E81EC8CA3E408028160CD00103C04028B17AD1CA3E4080C2989A760103C000A79C62D5CA3E40800802DC260103C040CBBD0DD6CA3E4000C74DA3A10003C090D8BC15D3CA3E400002616A450003C0A074DA50D6CA3E4080B2C68146FF02C080A88FD7DECA3E40002AA1146EFE02C080BD5CDFE2CA3E4080864DA82AFE02C0C0734B29E8CA3E4000DE0B8DF4FD02C0A0551840F8CA3E4080B4EFEA6CFD02C0306FAB6F05CB3E4000D3249611FD02C04077E5E02DCB3E4080E69E0CE9FB02C03048BB5F4FCB3E4080EEC0BDFFFA02C020E19DC47BCB3E4080013B34D7F902C040A03CA594CB3E4080C57BE607F902C0D094CF819BCB3E40808A0365A3F802C0805D2D7EAECB3E4080E8363267F702C08044C976BECB3E4000D4175872F502C030AA08FBC0CB3E400089C960A3F102C0F0B10B20C6CB3E4080841BCD69F002C08035277ACFCB3E4080F1E35D78EF02C010217663D5CB3E4000D2D28146EF02C0C048AAF9E0CB3E40001DF2D4E4EE02C0800B387E03CC3E4080B8F56992EE02C0D04D042857CC3E40801CB43D0EEE02C0B00CB79EC6CC3E400018D6FF72ED02C0B06FFB84FDCC3E40002F868AF4EC02C05049305239CD3E400002303E5AEC02C0B0119C19B3CD3E4000CB6235E6EA02C030F2E950E1CD3E4080F0456F4CEA02C03081983C0ACE3E408074F046C4E902C0E055C7A931CE3E400046B3F770E902C090096BD553CE3E4000A0FEBD30E902C0400FF7706ECE3E400069FB293EE902C04023002C86CE3E40803FE09079E902C0D0BF4C8FA6CE3E4000B3D57014EA02C00045A3BACACE3E40807B5EBACCEA02C050587A083ECF3E40803C6E8522ED02C07045CF9D60CF3E4080018C71A3ED02C0801140857ECF3E40808ABA65F3ED02C080309C99AACF3E4000BBEA92EEED02C0D02DAD6D2FD03E4080E3C54928ED02C000360F74A3D03E400023916D6EEC02C0B0634E4EFED03E4080497B91B4EB02C070C412BF62D13E40808086A35BEA02C020E6B54DA7D13E4000363D128AE802C0F0068258ECD13E4080B72D7661E502C0E0A57C911AD23E4080A914013DE302C080ED42F740D23E40009418B4C9E102C0A08AE4F0A4D23E40805F15548DDE02C0A0AEEDF8E5D23E4000368F5819DD02C020ECCF6520D33E4080399E8207DC02C040A894CE76D33E4000AEDE4F87DA02C010E1C12396D33E4000EB12029DD902C02049AF7DA6D33E4000176052D1D802C020D9C849BCD33E40803642FFC0D602C0E0402A6BE5D33E408060747ECED302C0F08D452003D43E40008085932ED202C0708607D91ED43E40001AA36714D102C010B5693755D43E40802A245855CF02C0E0B5E2E2A8D43E40009D1514E4CC02C000D4083CE6D43E4080AB14F55ACA02C0F012508C2CD53E40800B349D31C702C0A03FFE1774D53E4080258B4369C402C0B02AFE1197D53E4000961F8F35C302C0B0C2F6BBB0D53E40805E4EF058C202C08034757BFFD53E4080259687F1BF02C040E4E9CA0CD63E400012B8984ABF02C08049FC4D17D63E4000E6A2702CBE02C0C0843F9C1BD63E4000CBE0A073BD02C09074A2061DD63E4080D5C23159BC02C0B07881621AD63E4080368D1E6ABB02C0707E75210CD63E4080C113E450BA02C0407632C4FBD53E40804DE175A2B902C0407F6380E9D53E400079F137C3B802C0E0F2C6E9DAD53E4000645CF0C4B702C0603B4F75C8D53E4000AE70AA65B602C0E062AD1DC5D53E4000F0FF43E3B402C020C79AF5CED53E4000273718A0B302C080482C8FDAD53E4080423B4EC6B202C0301B4C96EED53E4080E5E91DBEB102C030302CD505D63E4000532274E7AE02C0707E75210CD63E40006B52FCACAD02C0C04D10CF12D63E40804FBFCD92AB02C0D09056421CD63E408086C6301CA902C00076605628D63E4080C4DC46BFA702C090941BD434D63E4000F8A427DCA602C0106433034BD63E40800E23F675A502C000658F2C60D63E400082889B2BA402C0506CEAF582D63E4000C9699599A202C0E0D6B47FAFD63E400086722612A102C0C0204D02E5D63E4000C1EC2B599F02C02004923314D73E40002E161AEE9D02C030929EC03BD73E40008A5854BE9C02C04000CA5C74D73E4000F5C3AD389B02C050D71243BCD73E400008D71E9B9902C0A050E28002D83E40805F2F40E19702C060AA65F228D83E400006BC4D749702C0607D37A04AD83E40002E23E2589702C05053A7DB6DD83E400077F5358C9702C0B036EC0C9DD83E4080FBA2617B9702C0E0B64F0FC0D83E408073E998439702C0B009B12A0CD93E4080CFF43ED29602C010AB2D0032D93E4000996382809602C0602A15127AD93E4000E670C2B79502C0505E0909ACD93E40808961BFEE9402C0D03E3E3ED7D93E4080D5F9D30D9402C0B0A70C6712DA3E40801343E8899202C090F1A4E947DA3E4080BC95B6089102C0601CF48E64DA3E4080829648089002C01090DEC490DA3E408012D900FA8D02C0702CC1DDB4DA3E4000131813F08B02C0003141D0D1DA3E408041C772128A02C0A0F3F866E5DA3E408013C1B7008902C0D08E28430BDB3E4000E258262F8702C0906A460834DB3E40804DD2A54C8502C050F5CD3B4EDB3E400086542EC08302C080E244BF5BDB3E40800177919D8202C0F044474662DB3E4000C957EA928102C060088E0464DB3E408018CBE8D58002C050F1C4CD5FDB3E4000DDDF860D8002C02028771959DB3E40801757FFAE7F02C04091B65153DB3E40807992816F7F02C0E08642A044DB3E4000226D97307F02C0A0E50D2730DB3E4080E01F64207F02C04065E76D11DB3E4080261C6D5B7F02C0E06B571DDEDA3E4000ECAAEE8B8002C08043056FA3DA3E4080C9FF13848102C050649F9971DA3E4080936D15418202C0B0B7322262DA3E400068C59A868202C04029F99342DA3E4000EFA33BF48202C0600058F624DA3E40005698231A8302C020D45D3810DA3E408008B1FD098302C030532EC5FAD93E4080CAA4B0CF8202C0909659DDEAD93E4080B16886498202C0C0C89E6DDAD93E408096A6B6908102C03033FB2CCFD93E4000A674ABB48002C0107F96A3C7D93E40009AB28C078002C0908CFFF5C0D93E400049614BB17E02C010B4B60ABDD93E408010817D6E7D02C08050A8DAB8D93E40808F72EF807C02C0C0D8AB4AB6D93E400011F38D3D7B02C0C0C2602BB2D93E400079C3DF1E7A02C090A2904AB1D93E400026224BE67802C03016AE7EB6D93E400093E890407802C080F7D012BFD93E40804CE4427F7702C080DEC577CED93E4080A9FD0EB17602C080EEB28DE4D93E4000AF5A41CD7502C010E10306FFD93E40009542E6B97402C0D06AFAEA05DA3E400042D5581D7402C0A067F21208DA3E4000B25ED2BD7302C0704D3A0609DA3E400036D6AB5C7302C0503D2B0208DA3E4000752FF8017302C0301ABD9305DA3E400060CEB79F7202C0508CE75201DA3E40801D3F57507202C0F0FF4ABCF2D93E4000D4A3E9417102C050BEAF61E1D93E4080A9DE14067002C080DEC577CED93E4080A914A0846E02C0002C8F53BED93E40803168A5386D02C05082C069B0D93E4000F9B88A1A6C02C0B0C8BE34A0D93E4000226F691E6B02C0F0FB81DC8FD93E408091C4DB226A02C0304ED49684D93E40007BAE8D1D6902C0A0FD24D181D93E40007E4BE06A6802C000B62B6D82D93E40807F98DFD56702C090AABE4989D93E40004F03F8196702C09070769494D93E400008F8BF786602C020513F26ADD93E4080968531996502C060BE2ABCCBD93E4080D956F8556402C080E319FFE3D93E40009651632B6302C09074B1E2F9D93E4000BD135BC46102C030FCBECF13DA3E4080FE9D55166002C08079710D22DA3E4000ABBDE7155F02C0B0AA77F63ADA3E4080237983245D02C0B019AD144CDA3E4080F3EB191D5B02C0C01877595DDA3E4080A34B892F5902C030FC23AE63DA3E400082B89D335802C0C0C70C0165DA3E40809C785B665702C030748A8862DA3E40002682B0AE5502C0806CBC885BDA3E4080341105395302C080E422635ADA3E4080927B663E5102C0E0AFA16B5FDA3E4000450406494F02C0D0D6F65965DA3E4000D0BE0BFA4C02C01032A03E6EDA3E400048A806B64A02C05094DF0E79DA3E4080ACDB3E784802C090617E8D7FDA3E40009853145A4602C0F08456467EDA3E40000E86B6BE4302C0B02B02FD74DA3E408089A5C5244202C0F0FCA9E969DA3E4000D047E6CA4002C03004911D65DA3E4000F69267973F02C050572CCA5BDA3E40808916065F3D02C0F09463235ADA3E4080258A60273B02C080E422635ADA3E40002F30A5EA3802C060CF92A45ADA3E40802CDD36BF3602C030BF83A059DA3E408004A8D01E3402C03037EA7A58DA3E4080A3EB7B0D3102C0407B9BCE4EDA3E408088F5A4B82F02C0C04BBD7F3DDA3E400005262E392E02C0F0059C352EDA3E4080608D403F2D02C060F4BBAA0EDA3E4000980539782B02C0B0747499F5D93E4000DA2937182A02C0E099246CE4D93E4080F0D8B8D62802C0B05B4390DED93E40004FAA1F512702C0D0BD9370D7D93E40809B8004752502C0A0844C51D3D93E4080C328BDD52402C0D080F362CDD93E4080E4E558612402C0607F3513C2D93E4080B72B5BC92302C070264B14B5D93E4080F838AC4E2302C0409BDC148FD93E400082A9060C2202C0F06376FB62D93E40000D9A5E0D2002C03065A4924BD93E4000C02FE2C91E02C040C3907131D93E40000744DA101D02C0709A966714D93E400095CF39AB1A02C0204ACC46F8D83E4000B250199E1802C0F0589855D8D83E4080483585621602C0C0D418AEB3D83E4000E4D9924F1402C06008F61F88D83E40006FCAEA501202C0F074350C7AD83E4000067E6AC21102C0B023A79E71D83E400058E79A241102C0A0DA615969D83E4000EADF697C1002C070413B1867D83E4000ECA194FF0F02C0D05C4DF564D83E4000E1E4147E0F02C06027B83066D83E40805B5BB8010F02C0E0B7332372D83E40807AC7F7E70D02C0805EBDEB7DD83E40006976EA360D02C0A0A8AC819CD83E400024564BB70B02C02001355AB3D83E4000B7681BA10A02C0F0A8715FBDD83E4000A6170EF00902C000C88E03C0D83E4000321653660902C000C88E03C0D83E408017EE86FB0802C0F0248270BBD83E400028A5C98C0702C080A0C4B7B0D83E4080FE8860330502C000034299A1D83E4080FEF9673F0202C0E0F5647F8FD83E40802AE448670002C05014C56977D83E4080FDF43A70FE01C0C06758F267D83E400067469358FD01C0300DD4EA50D83E40803BD88B68FB01C0A0985A8D36D83E40002297FBE4F801C0707B4A2822D83E4000832CD896F601C0206BBEA211D83E4080DCDC9145F501C040586824F8D73E400020ED31CAF301C0F0D08738D6D73E4000D8CA853CF201C0E0E8B35DB2D73E4080C20137A2F001C090D8BB348FD73E400097932FB2EE01C000514F1086D73E4080DD9A0A19EE01C0E01A69357FD73E4000D922C92FED01C07061E4817ED73E4000FDB6F1A4EB01C0600C295F86D73E408016D109C9E801C0C044CE1F89D73E4080152A22C9E701C080C9D1DB8ED73E4080275DCC35E601C09024B8099CD73E40806B39651EE401C0B084C685A8D73E40800BF6985FE201C0F0F47197B3D73E4080A65982D0E001C030DD4E5EBFD73E4080A735EC8BDF01C0F01FB02CE2D73E4000369C73F0DC01C0F06BAC01EFD73E4080C2A58A92DB01C060CB6967F3D73E4080932AA468DA01C0802E385FECD73E4080F8662A74D901C090DF0F6BE0D73E400090BD34ABD801C0F0C7897AC1D73E408034BEA239D701C010D65DDF98D73E40009582E75BD501C0A0588F7E8FD73E4080ED1D3FA4D401C070279CCC89D73E4080FACC930AD401C01060E0FC86D73E4000FDC1BC66D301C03066866286D73E40807E7662BFD201C0B04D84818CD73E40804524BDDBD101C04050839F93D73E4080220E8024D101C0B0680A26A3D73E400010D31B43D001C0108CF515B5D73E40804415C7A3CF01C0D0FBB06FCCD73E4000B6EE9326CF01C0C08E68C9E3D73E4000582941C9CE01C0D0BCAE3610D83E4080C9020E4CCE01C0F0D701DD4DD83E4080EED96CC3CD01C0D044AD3A61D83E400080394190CD01C06003A29872D83E4000BB4C0834CD01C030D0858483D83E408090AF5FA5CC01C080558C2F90D83E4080482FFCEBCB01C03052C1A096D83E4000BBB23D14CB01C05069186998D83E4000BFF56E9ECA01C0306B38DF99D83E40009B6A06CFC901C0405F565E97D83E4000E627F323C901C0100DF16C8FD83E40007EBDD622C801C0E03280E783D83E4080861E6101C701C060C959E37DD83E4080C01BBD7BC601C05086137074D83E4080AC02DD58C501C0204AF99D70D83E4000782C0FC7C401C09091164971D83E40806EF7D10FC401C0F008E6D77BD83E4080FB6DCF43C201C0E08D1EB97FD83E40806423D929C101C02041567380D83E40804A389BD2C001C020ADA5A77ED83E4000D8203779C001C01082FFEE78D83E4080FB109337C001C0706564E76DD83E40806FE091D9BF01C0F0AE575348D83E40805C09DFF5BE01C01048989020D83E4080768C0E15BE01C0F043EC32FCD73E4000955AB444BD01C0B0B2EA04EAD73E40003356C6C5BC01C0F077B070DCD73E4000A8D42A1CBC01C0306B138FD5D73E4000AA8A7AB0BB01C040D86E6CD1D73E4080B6C9422ABB01C080ED3350CFD73E408000D32A9FBA01C0C087663ACFD73E40008DDD4A04BA01C0A09CFE1CD5D73E4000160D8145B901C08054A392DFD73E4000D349195AB801C0400B95CBEBD73E4080889B9499B701C0F04E85C1FCD73E40808CA873D3B601C050DB21580BD83E40805873E552B601C02035DAEE2FD83E4080CECEBC27B501C0A06A297E42D83E4000BB547F7EB401C020F2607D4DD83E40007E8EF5EBB301C070AD771552D83E408078C9B497B301C0B0DDAF6653D83E4000BDE4ED19B301C0903A6EAE50D83E4080C0B792B7B201C010DEDC674BD83E400059BE0B66B201C0504FBE3445D83E4000F6051907B201C020F1CF2E3AD83E4080AC9EB294B101C0C0AB827923D83E4080F5CEBDF3B001C0C0C9803D15D83E40806C6F167FB001C01086E9B303D83E400046EC30DCAF01C0A08D6F57F9D73E400042DBF467AF01C0D0EBA392F0D73E40806A1FFCCAAE01C0D05D992CEED73E4000C4CE7388AE01C0C04D31BCEDD73E4000F04ADA49AE01C0302555FCF0D73E4080D39C68ACAD01C0203D6725F7D73E40800281D82DAD01C0F0F3585E03D83E40802E9D753DAC01C0B0F906E808D83E40802F1637BEAB01C0D03397F90ED83E408058CACA0DAB01C0D0B786E810D83E408018CA9668AA01C0D0B786E810D83E40803E1621F8A901C010C240CF0BD83E40005C3EE8EAA801C050926AA400D83E4080DDBE86A7A701C0B08EED6EF9D73E40009CA348ADA601C0505CB9EEF7D73E4080907D7802A601C090F6EBD8F7D73E40001786C9FFA401C0A015097DFAD73E40806CBE0897A401C0904692E403D83E4080E6606E30A401C0004E7B3F24D83E40800977E415A301C0505DAF1B5BD83E4080E40F4BB9A101C020F89EBF75D83E4000322966DFA001C0F04DF35487D83E40003AE51A44A001C0E0200B3895D83E4080B7EF899D9F01C0E048F174AED83E4080C2DF40269E01C010DB3B95C2D83E4000C0B4FEA79C01C0101F598CCBD83E40006EEF9AFC9B01C0D0566701DAD83E40000794AD619B01C0106913FDEBD83E40000E4487D79A01C010F18C5B27D93E408033832DB59901C0C078B34A44D93E4080EB6B1A259901C000BA21A45DD93E400015BCFC769801C07067307A6ED93E408014ECA6D89701C0709DE12F77D93E4080904211529701C0F0A6411482D93E4000E597E3989601C030EC466D87D93E40802A2A93E79501C0F06AA4C38DD93E40800EF397169501C090C94D5C8ED93E4000C7AC1C169401C0306B9C9F87D93E40005126FE4A9201C020D5EFA485D93E4080120F18139101C0C03144A286D93E4080A57C12839001C0E0489B6A88D93E4080894517B28F01C0F0EB4E918DD93E4000A4D2D60B8F01C050015CD19CD93E40001575487B8D01C0B0A87E0CC2D93E4080C0EA9E038B01C0402FF2BEE0D93E4080A96E8D7A8801C0802B539BEED93E4000DCF8D6C08601C04078633DFFD93E4000BFE7F5168501C030E074DE10DA3E400076EC6C738301C0402D7D5C1BDA3E40009F6CF9268201C0E096D8851FDA3E4000F063C4447E01C0305D88AC24DA3E4000F70CB4DA7D01C0504292C030DA3E4000096BDE6B7D01C010784B9A3FDA3E4000CB2DDE0C7D01C07059C9C16CDA3E40000891F8927C01C03091D7367BDA3E40009E69503A7C01C0B021FABC87DA3E4080AB5042A57B01C0806A472696DA3E4000A0906EAC7A01C000A9DAA8A9DA3E408077E8EE797901C01032ACB0BEDA3E40009A2DCDCF7801C060EB0E76D4DA3E4000DB13FB6A7801C04098530218DB3E40004B05BC717701C01040CF774BDB3E40004D93DF587601C03082DF2F66DB3E400045A21A957501C0800F534A74DB3E4000E2F2AEAD7401C0209D30AF7EDB3E4000D02EC1987301C050020E0D8BDB3E400046BD96467201C0E01369F294DB3E40804B81CED77101C050FD4052B0DB3E40004F5473757101C0F0FEA75CE1DB3E4080A0E27B0D7101C0A00B2350FDDB3E4080B1D019B27001C0D0FDC1210ADC3E4080338F4F457001C0D00DF56C0CDC3E40805941D6866F01C0905A4B4409DC3E4000E7C021046F01C0407928B000DC3E40005A1BF58D6E01C0502553C8DFDB3E4080E46677156D01C0D000B59BCFDB3E400071A495536C01C0609F8998C8DB3E4080B4DA16D16B01C0E0B4B8C6C2DB3E4000BE4C1BCA6A01C040FAF244C6DB3E4080A6BF56F86901C0A011FCB3D5DB3E40800EFEE9116901C0E0251082FADB3E4080957A5D646701C070B4DD6C07DC3E4000556E4ED06601C000CE709C14DC3E4080BFA213096601C0E0A0E1EB21DC3E4080EF3734F36401C030F993D629DC3E40807F79AAF36301C0C03C3C7029DC3E40801D3F6A246301C08009BFFD25DC3E40806E90E4A86201C0A06A385A1FDC3E4080A11E8B296201C050F734F0FEDB3E40801B2499FD6001C030432F9EE6DB3E400037F27CD35F01C0408662DADCDB3E408059375B295F01C0901B8999D8DB3E4080ECB030885E01C0104E80D0D5DB3E4080E1CA7B965C01C0D0DFD0EDCADB3E4080D978927A5A01C0C0C3DF68C7DB3E4000CB83B39A5901C0B03C8F35C8DB3E4080F66077E25801C0201EE7EECEDB3E4000D314E8DA5701C0901B8999D8DB3E4080EE49D1255701C0E0D93FE603DC3E4080D5AE1FDF5401C0B08EEFBA23DC3E408097A20BD35201C050F85D1B3BDC3E4080908EB98D5101C030CAF7E648DC3E400089AE6EE45001C06041CF9959DC3E408006B9DD3D5001C090A8CE948CDC3E408048DDDBDD4E01C0609F338EA2DC3E4000B5CA44224E01C0E0B59A9EB0DC3E4080CC22F9944D01C0C06CC1FCBADC3E400066D3E6E84C01C08010AD37C5DC3E4000B7BFA6AC4B01C020D7FBCDC4DC3E40800B1E006B4A01C010933743BBDC3E4080869839574901C0B071A1EEA8DC3E4080937492C44701C050EB75989BDC3E408072867C424601C030E9EBD79DDC3E4000A61CA1774401C0406009C09ADC3E408065B5675D4301C0309945CC91DC3E40806064495E4201C0806A7B4A84DC3E40805ED65EA54101C020071D9A68DC3E40006A6E3F1F4001C050CFD9FF5BDC3E40806333CAEF3E01C050370D8F58DC3E4000A0C9E24E3E01C020B521F35CDC3E40000917A5CE3D01C060BF607F6DDC3E40809EEA5D4A3D01C0F055950E8CDC3E4000D57C5C8D3C01C030AFB659BCDC3E4000E1143D073B01C0D019A3D1D3DC3E408007A2EB123A01C070DC5A68E7DC3E400048109A1E3901C0C0AD5DE800DD3E40802757CD293701C0A084917010DD3E4080B51634603501C060DFD82E23DD3E4000A1F7596B3301C0C043A2BF2BDD3E4080BE1DD6A93201C0506008A238DD3E4000130FF7F23101C0E0FC41CE45DD3E40004A7887973101C01091F4C06CDD3E4080586D9FA53001C00049AC6D8ADD3E400033942EA82F01C090E04BDD95DD3E4080AA0A10D22E01C000817FC0B9DD3E4080592BDF4A2B01C02091E730BADD3E40003F9C0D6B2A01C0B0156E6BB0DD3E4080E7AB6CB92901C0D05D5787A3DD3E40807754E82E2901C0101A326C94DD3E4080C49EB6792801C080A4F4C18DDD3E4080B428D1922701C0804B1DFA93DD3E40802F0C5BA82601C000FF43A4A6DD3E4080B9B7F8C42501C080BE3BBFCDDD3E4080B50E04B72401C02086411207DE3E4080CEE800222301C0E0CD296618DE3E4080264CBB652201C0200C40671CDE3E4080754A8E902101C090E090F41FDE3E4000B6F366461F01C0103F77D624DE3E4080556BE0A21E01C000128FB932DE3E40806A9A641D1E01C0603C109546DE3E4080E9BFDDCB1D01C0E01B5B0F5FDE3E40807E21BFA61D01C0"
- "country"
- "TZA"
Very good! As soon this is pushed to the develop branch I am to happy to test it!
PostGIS geometry and raster support are now in develop :)
Please use the develop
branch for the following. The compose has been updated so that POSTGRES_IMAGE
can be overridden to use PostGIS, PGEC_VERSION
must also be overridden to pull the develop
container.
cd pgec
git checkout develop
git pull
# stop old version...
docker compose --profile all down --remove-orphans --volumes
# copy in your startup scripts if not already there...
cp ~/[0-9][0-9][0-9]_*.sql example/initdb.d/
ls example/initdb.d/[0-9][0-9][0-9]_*.sql
example/initdb.d/010_init_postgis_extensions.sql example/initdb.d/011_osm_rivers_sample.sql example/initdb.d/012_S2_T32ULU_20190823T103029.sql
# startup with postgis and pgec with develop
POSTGRES_IMAGE=postgis/postgis PGEC_VERSION=develop docker compose --profile all up --detach
River sample should be the same as discussed above.
Raster:
curl -s http://localhost:8080/pub/raster_sample/1 | jq
{
"raster": "0100000C00000000000000244000000000000024C0CAC342ADB65518411CEBE286034B544100000000000000000000000000000000787F0000440192010600000501050105010501050105011E011...",
"rid": 1
}
Some of the Redis commands have been updated on this branch too (hset, del, hget, hgetall, hlen, hkeys, psubscribe/etc), so there may be some rough edges there, but will be final/released soon.
Great, I can confirm it works with the develop branch! Thank you!