[Mapserver-dev] MapOracleSpatial

Fernando S. simon at inf.univali.br
Tue Aug 17 09:17:09 EDT 2004


This is a multi-part message in MIME format.
--------------050408040306010804010209
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,
    My name is Fernando Simon and I work for G10 (Laboratório de 
Computação Aplicada - Brazil). I am continuing the development of the 
MapOracleSpatial source code, at this moment the 
msOracleSpatialLayerGetItems function and its complements.

    I'm with some problems, I'll try to explain them:

    When the fetched rows are equal to zero, I get a weird message after 
the results, like this one below:
    
    /"Content-type: text/html" /

    And in the source it's like this:

    </table>Content-type: text/html
    <HTML>
    <HEAD><TITLE>MapServer Message</TITLE></HEAD>
    <!-- MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=PDF    SUPPORTS=PROJ SUPPORTS=FREETYPE 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL     
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
    <BODY BGCOLOR="#FFFFFF">
    </BODY></HTML>
   
   I followed the code of the mappostgis as example. I followed the same 
steps, the else of "if (  0 < PQntuples(query_result) )", but I still 
got this message.

    So, what's wrong, am I forgetting any step, anything? What do I need 
to do after rows fetched (equal zero), any more functions? 
(msOracleSpatialLayerFreeItemInfo?)

    Another question is how to use, or what sets the record attribute in 
msOracleSpatialLayerGetShape function? If I use the row_num (layerinfo) 
will I have the same effect?

    Thank's.


Fernando Simon

--------------050408040306010804010209
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
&nbsp;&nbsp;&nbsp; My name is Fernando Simon and I work for G10 (Laborat&oacute;rio de
Computa&ccedil;&atilde;o Aplicada - Brazil). I am continuing the development of the
MapOracleSpatial source code, at this moment the
msOracleSpatialLayerGetItems function and its complements.<br>
<br>
&nbsp;&nbsp;&nbsp; I'm with some problems, I'll try to explain them:<br>
<br>
&nbsp;&nbsp;&nbsp; When the fetched rows are equal to zero, I get a weird message
after the results, like this one below:<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <i>"Content-type: text/html" </i><br>
<br>
&nbsp;&nbsp;&nbsp; And in the source it's like this:<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;/<span class="end-tag">table</span>&gt;Content-type: text/html<br>
&nbsp;&nbsp;&nbsp; &lt;<span class="start-tag">HTML</span>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;<span class="start-tag">HEAD</span>&gt;&lt;<span
 class="start-tag">TITLE</span>&gt;MapServer Message&lt;/<span
 class="end-tag">TITLE</span>&gt;&lt;/<span class="end-tag">HEAD</span>&gt;<br>
<span class="comment">&nbsp;&nbsp;&nbsp; &lt;!-- MapServer version 4.2.2 OUTPUT=GIF
OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF &nbsp;&nbsp; SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7
INPUT=ORACLESPATIAL &nbsp;&nbsp;&nbsp; INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --&gt;</span><br>
&nbsp;&nbsp;&nbsp; &lt;<span class="start-tag">BODY</span><span class="attribute-name">
BGCOLOR</span>=<span class="attribute-value">"#FFFFFF"</span>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/<span class="end-tag">BODY</span>&gt;&lt;/<span class="end-tag">HTML</span>&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; I followed the code of the mappostgis as example. I followed the
same steps, the else of "if (&nbsp; 0 &lt; PQntuples(query_result) )", but I
still got this message. <br>
<br>
&nbsp;&nbsp;&nbsp; So, what's wrong, am I forgetting any step, anything? What do I
need to do after rows fetched (equal zero), any more functions?
(msOracleSpatialLayerFreeItemInfo?)<br>
<br>
&nbsp;&nbsp;&nbsp; Another question is how to use, or what sets the record attribute
in msOracleSpatialLayerGetShape function? If I use the row_num
(layerinfo) will I have the same effect?<br>
<br>
&nbsp;&nbsp;&nbsp; Thank's.<br>
<br>
<br>
Fernando Simon<br>
</body>
</html>

--------------050408040306010804010209--



More information about the mapserver-dev mailing list