<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Benedikt,<br>
<br>
Thanks for the tip. My problem is that the queries are highly dynamic.
Using views would imply view managment (creation, cleanup). I'll keep
that idea if I run into problem with Andreas' solution.<br>
<br>
Thanks, and regards,<br>
Damien Corpataux<br>
<br>
Benedikt Rothe wrote:
<blockquote
 cite="midOF77BC2851.BDDAC143-ONC1257353.00239D52-C1257353.002A411B@hydrotec.de"
 type="cite"><br>
  <font face="sans-serif" size="2">Hi Emmanuell</font>
  <br>
  <br>
  <font face="sans-serif" size="2">If your project is stuck with this
problem:
In cases like this, I always try to avoid long SQL-statements in
mapfiles</font>
  <br>
  <font face="sans-serif" size="2">anyway. Instead I put the complexity
in a &nbsp;view and use in the mapfile just this view.</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Benedikt Rothe</font>
  <br>
  <br>
  <tt><font size="2">UMN MapServer Users List
<a class="moz-txt-link-rfc2396E" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">&lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;</a>
schrieb am 10.09.2007 18:28:00:<br>
  <br>
&gt; Hi Fernando,<br>
&gt; <br>
&gt; thank you for investigating. We need this for a project, where it
is not<br>
&gt; possible to use PostGIS.<br>
&gt; <br>
&gt; Do you have an idea how long it would take to fix the problem? Can
we<br>
&gt; help you in some manner?<br>
&gt; <br>
&gt; Best regards,<br>
&gt; <br>
&gt; Emmanuel<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Fernando Simon wrote:<br>
&gt; &gt; Hi all,<br>
&gt; &gt; &nbsp; &nbsp;I will investigate the problem. I believe that it's
relate with the<br>
&gt; &gt; msSplitData function in the driver source code.<br>
&gt; &gt; &nbsp; &nbsp;Thanks for the reply about the error.<br>
&gt; &gt; &nbsp; &nbsp;Best regards.<br>
&gt; &gt; <br>
&gt; &gt; ---------------------------------------------------------<br>
&gt; &gt; Fernando Simon<br>
&gt; &gt; UMN Mapserver and Oracle Spatial developer<br>
&gt; &gt; <br>
&gt; &gt; Emmanuel BELO wrote:<br>
&gt; &gt;&gt; After some investigation, we could identify that this
occurs
only with<br>
&gt; &gt;&gt; an Oracle connector. It's not reproducible with a PostGIS
connection.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Here our testcase outline:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp; LAYER<br>
&gt; &gt;&gt; &nbsp; &nbsp; CONNECTION "user/password@myoracleoracle9instance"<br>
&gt; &gt;&gt; &nbsp; &nbsp; CONNECTIONTYPE ORACLESPATIAL<br>
&gt; &gt;&gt; &nbsp; &nbsp; DATA "[Put a query larger than 2037 characters
here]"<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; METADATA<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; NAME "oracle_test_layer"<br>
&gt; &gt;&gt; &nbsp; &nbsp; PROJECTION<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; "init=epsg:4326"<br>
&gt; &gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; SIZEUNITS PIXELS<br>
&gt; &gt;&gt; &nbsp; &nbsp; STATUS ON<br>
&gt; &gt;&gt; &nbsp; &nbsp; TOLERANCEUNITS PIXELS<br>
&gt; &gt;&gt; &nbsp; &nbsp; TYPE POLYGON<br>
&gt; &gt;&gt; &nbsp; &nbsp; UNITS METERS<br>
&gt; &gt;&gt; &nbsp; &nbsp; CLASS<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; METADATA<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ANGLE 360<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR 255 0 0<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; END<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You can build a large sql query by adding a lot of
"always
true"<br>
&gt; &gt;&gt; clauses, or by padding it with a lot of spaces<br>
&gt; &gt;&gt; eg. shape from (select shape from my_table where
'djfksdhfjkdsf'
=<br>
&gt; &gt;&gt; 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf'
[...])<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Best regards,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Emmanuel BELO<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Damien Corpataux wrote:<br>
&gt; &gt;&gt; &nbsp;<br>
&gt; &gt;&gt;&gt; Hello List,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I ran into memory corrption with a long sql query in
the DATA object,<br>
&gt; &gt;&gt;&gt; for an Oracle LAYER. It is obviously due to Mapserver
memory allocation<br>
&gt; &gt;&gt;&gt; mechanism. The corruption occurs when the DATA is
longer
than ca. 2037<br>
&gt; &gt;&gt;&gt; characters.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Do you know if Mapserver has a way of modifying the
possible
allocated<br>
&gt; &gt;&gt;&gt; memory limit? In header files? By applying a patch?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Any idea is welcome!<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Thanks in advance, regards,<br>
&gt; &gt;&gt;&gt; Damien Corpataux<br>
&gt; &gt;&gt;&gt; &nbsp; &nbsp; <br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp; <br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Camptocamp SA<br>
&gt; Emmanuel BELO<br>
&gt; PSE A<br>
&gt; CH-1015 Lausanne<br>
&gt; <br>
&gt; +41 21 619 10 25 (direct)<br>
&gt; +41 21 619 10 10 (centrale)<br>
&gt; +41 21 619 10 00 (fax)<br>
  </font></tt>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
.signature {
  font-family:verdana,helvetica,sans-serif;
  font-size:0.8em;
  line-height: 1.25em;
  color: #9999BB;
  width: 27em;
}

.signature div {
  padding: 0.22em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  border-bottom: 1px dotted lightgray;
  background-color: #FCFCFF;
}

.signature .attention {
  background-color: #FFFAFA;
  color: #FFBBBB;
  font-size: 0.8em;
  font-weight: bold;
}

.header {
}
-->
</style>
<div class="signature">
<div> <span style="font-weight: bold;">Camptocamp SA</span><br>
Damien Corpataux<br>
PSE A<br>
CH-1015 Lausanne<br>
</div>
<div> +41 21 619 10 22 <span class="header">(Direct)</span><br>
+41 21 619 10 10 <span class="header">(Centrale)</span><br>
+41 21 619 10 00 <span class="header">(Fax)</span><br>
</div>
<div style="color: rgb(102, 204, 102);"> <span
 style="position: relative; top: -3px; font-family: Webdings; font-size: 24pt;">P</span>
<span style="">Please consider the environment <br>
Do you really need to print this email?</span>
</div>
</div>
</div>
</body>
</html>