The SDO_GEOM.sdo_buffer function is used for buffer query. It has three parameters: the smaller the arc_tolerance function, the more precise the buffer image.
The SDO_GEOM.sdo_buffer function is used for buffer query. It has three parameters: the smaller the arc_tolerance function, the more precise the buffer image.
The SDO_GEOM.sdo_buffer function is used for buffer query. It has three parameters:
Param1: the geometric element to be queried.
Param2: the geometric elements used for filtering.
Param3: used to control the buffer radius value, buffer arc tolerance, and unit.
Now, I have a requirement to query the buffer zone of the first-line figure and draw the buffer zone on the map. The following is my code:
Public String getBufferLine (String lineWKT, double distance ){
String response = "";
// The smaller the tolerace value, the more accurate the image is. likehua 20121114.
StringBuffer SQL = new StringBuffer ("select SDO_UTIL.to_wktgeometry (SDO_GEOM.sdo_buffer (SDO_GEOMETRY ('" + lineWKT + "', 8307)," + distance + ", 0.0002, 'arc _ tolerance = 0.02 unit = M') as wkt from dual ");
ListResult = this. getListByArg (SQL. toString (), null );
If (result! = Null & result. size ()> 0 ){
Map one = result. get (0 );
Response = one. get ("WKT"). toString ();
}
Return response;
}
The smaller arc_tolerance, the more precise the buffer image, and the larger the sdo_geoemtry, the slower the response time for drawing the image at the front end.