<div dir="ltr"><div><div><div>Hi devs,<br><br></div>I have opened an issue concerning pre-rendering server-side simplification for Oracle provider:<br><a href="http://hub.qgis.org/issues/12298">http://hub.qgis.org/issues/12298</a><br><br></div>Please read and review the proposed patch. Please test it with Oracle data in different environments.<br><br></div><div>This is really a first step and will need more work to be considerd as usefull.<br></div><div><br></div>Here is on extracts of my last comment on the issue :<br><br><br>-------------------------8<-----------------------------<br><p>A patch attached with a first code runnning.</p>
<ul><li>I copy/paste what has been done in PostGreSQL provider, but since
there is no equivalent for the functions used there, I used instead :
<p>- SDO_UTIL.RECTIFY_GEOMETRY instead of ST_SnapToGrid , with the "tolerance" parameters used to snap to grid : <a class="" href="http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_util.htm#BJEICGGA">http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_util.htm#BJEICGGA</a><br> - SDO_UTIL.SIMPLIFY instead of ST_SimplifyPreserverTopology</p></li></ul>
<ul><li>I have tested it with only one POLYON layer, and got awkward
results, which seems to be caused by simplification leading to POINT or
LINSTRING instead of original geometry type. Perhaps the problems lies
also in incorrect geometries in my dataset. If you have experience using Oracle spatial or locator, please help debug this issue<br></li></ul>
<ul><li>I kept the tolerance used for PostGIS :
mRequest.simplifyMethod().tolerance() * 0.8 There is surely a room
for improvement here</li></ul>
<ul><li>I do not know if the patch is suitable for both Oracle Locator and Oracle spatial</li></ul>
<p>Please test the attached diff file and give feedback or advice</p>
<p>NB: This is the first time I work with Oracle. I invite Oracle
Locator/Spatial gurus to participate, since I am a complete newbie here</p>
<p>NB2: You can use the docker/oracle here to set up a test environment : <a class="" href="https://registry.hub.docker.com/u/alexeiled/docker-oracle-xe-11g/">https://registry.hub.docker.com/u/alexeiled/docker-oracle-xe-11g/</a></p><br>-------------------------8<-----------------------------<br></div>