{"id":29886092,"url":"https://github.com/pauldzy/dz_wkt","last_synced_at":"2025-07-31T16:23:18.460Z","repository":{"id":27328737,"uuid":"30803270","full_name":"pauldzy/DZ_WKT","owner":"pauldzy","description":"PL/SQL code for the conversion of OGC WKT to and from Oracle Spatial MDSYS.SDO_GEOMETRY","archived":false,"fork":false,"pushed_at":"2019-06-13T08:18:11.000Z","size":122,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-02-26T23:15:44.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pauldzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-14T17:28:46.000Z","updated_at":"2019-06-13T08:18:13.000Z","dependencies_parsed_at":"2022-08-17T17:55:37.925Z","dependency_job_id":null,"html_url":"https://github.com/pauldzy/DZ_WKT","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/pauldzy/DZ_WKT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldzy%2FDZ_WKT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldzy%2FDZ_WKT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldzy%2FDZ_WKT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldzy%2FDZ_WKT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauldzy","download_url":"https://codeload.github.com/pauldzy/DZ_WKT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldzy%2FDZ_WKT/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268070461,"owners_count":24190898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-31T16:23:06.808Z","updated_at":"2025-07-31T16:23:18.455Z","avatar_url":"https://github.com/pauldzy.png","language":"PLSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DZ_WKT\n\nPL/SQL code for the conversion of [OGC Well Known Text](http://www.opengeospatial.org/standards/sfa) and [Extended WKT](http://postgis.refractions.net/documentation/manual-1.3SVN/ch04.html#id2726317) to and from the [Oracle Spatial](http://www.oracle.com/us/products/database/options/spatial/overview/index.html) MDSYS.SDO_GEOMETRY geometry type.\nFor the most up-to-date documentation see the auto-build [dz_wkt_deploy.pdf](https://github.com/pauldzy/DZ_WKT/blob/master/dz_wkt_deploy.pdf).\n\nThis library is provided for testing and feedback.  It may be installed and executed from any schema.  The deployment script creates three packages:\n\n1. DZ\\_WKT\\_MAIN\n2. DZ\\_WKT\\_TEST\n3. DZ\\_WKT\\_UTIL\n\nThe test package is not needed for normal usage but always a good idea to inspect and keep around.\n\nSome simple usage that mirrors the capability of the SDO_UTIL WKT utilities:\n```sql\nSELECT dz_wkt_main.sdo2wkt(\n    MDSYS.SDO_GEOMETRY(2001,8265,SDO_POINT_TYPE(-100,200,NULL),NULL,NULL)\n) \nFROM \ndual;\n\n\u003e\u003e POINT ( -100 200)\n```\n```sql\nSELECT dz_wkt_main.wkt2sdo(\n   'POINT(-100 200)'\n) \nFROM \ndual;\n\n\u003e MDSYS.SDO_GEOMETRY(2001,NULL,MDSYS.SDO_POINT_TYPE(-100,200,NULL),NULL,NULL)\n```\nor some more complicated items you can't do with the included Oracle utilities\n```sql\nSELECT dz_wkt_main.wkt2sdo(\n   'SRID=4269;POINT M(-100 75 30)'\n) \nFROM \ndual;\n\n\u003e\u003e MDSYS.SDO_GEOMETRY(\n       3301\n      ,4269\n      ,NULL\n      ,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1)\n      ,MDSYS.SDO_ORDINATE_ARRAY(-100,75,30)\n   )\n```\n```sql\nSELECT \ndz_wkt_main.wkt2sdo(\n   'SRID=3857;LINESTRING Z(100045 1175 3000, 100050 1180 3010)'\n) \nFROM \ndual;\n\n\u003e\u003e MDSYS.SDO_GEOMETRY(\n       3002\n      ,3857\n      ,NULL\n      ,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1)\n      ,MDSYS.SDO_ORDINATE_ARRAY(100045,1175,3000,100050,1180,3010)\n   )\n```\n```sql\nSELECT \ndz_wkt_main.sdo2wkt(\n    p_input =\u003e MDSYS.SDO_GEOMETRY(\n        3002\n       ,3857\n       ,NULL\n       ,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1)\n       ,MDSYS.SDO_ORDINATE_ARRAY(100045,1175,3000,100050,1180,3010)\n    )\n   ,p_add_ewkt_srid =\u003e 'TRUE'\n) FROM dual;\n\n\u003e SRID=3857;LINESTRING Z(100045 1175 3000,100050 1180 3010)\n```\n```sql\nSELECT dz_wkt_main.sdo2wkt(\n    p_input =\u003e MDSYS.SDO_GEOMETRY(\n        2002\n       ,4269\n       ,NULL\n       ,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1)\n       ,MDSYS.SDO_ORDINATE_ARRAY(\n           -75.123456789012345678901234,40.123456789012345678901234\n          ,-76.123456789012345678901234,41.123456789012345678901234\n        )\n    )\n   ,p_prune_number =\u003e 8\n) FROM dual;\n\n\u003e LINESTRING(-75.12345678 40.12345678,-76.12345678 41.12345678)\n```\n## Installation\nSimply execute the deployment script into the schema of your choice.  Then execute the code using either the same or a different schema.  All procedures and functions are publically executable and utilize AUTHID CURRENT_USER for permissions handling.\n\n## Collaboration\nForks and pulls are **most** welcome.  The deployment script and deployment documentation files in the repository root are generated by my [build system](https://github.com/pauldzy/Speculative_PLSQL_CI) which obviously you do not have.  You can just ignore those files and when I merge your pull my system will autogenerate updated files for GitHub.\n\n## Oracle Licensing Disclaimer\nOracle places the burden of matching functionality usage with server licensing entirely upon the user.  In the realm of Oracle Spatial, some features are \"[spatial](http://download.oracle.com/otndocs/products/spatial/pdf/12c/oraspatitalandgraph_12_fo.pdf)\" (and thus a separate purchased \"option\" beyond enterprise) and some are \"[locator](http://download.oracle.com/otndocs/products/spatial/pdf/12c/oraspatialfeatures_12c_fo_locator.pdf)\" (bundled with standard and enterprise).  This differentiation is ever changing.  Thus the definition for 11g is not exactly the same as the definition for 12c.  If you are seeking to utilize my code **without** a full Spatial option license, I do provide a good faith estimate of the licensing required and when coding I am conscious of keeping repository functionality to the simplest licensing level when possible.  However - as all such things go - the final burden of determining if functionality in a given repository matches your server licensing is entirely placed upon the user.  You should **always** fully inspect the code and its usage of Oracle functionality in light of your licensing.  Any reliance you place on my estimation is therefore strictly at your own risk.\n\nIn my estimation functionality in the DZ_WKT repository should match Oracle Locator licensing for 10g, 11g and 12c.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldzy%2Fdz_wkt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauldzy%2Fdz_wkt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldzy%2Fdz_wkt/lists"}