OracleSpatial getFeatureInfo problem against unique column containing text

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Fri Feb 23 06:39:38 EST 2007


It's a restriction from Mapserver side.

You can't change your view SQL so that it has an integer primary key column?

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Sebastian Schmitz <sebastian.schmitz at WHEREGROUP.COM>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: Re: [UMN_MAPSERVER-USERS] OracleSpatial getFeatureInfo problem
against unique column containing text
Datum: 23/02/07 09:32

> Now what do I do?
> 
> Is this a restriction from Oracle-side or from MapServer?
> MapServer I guess?
> 
> Cheers
> 
> Sebastian
> 
> Bart van den Eijnden (OSGIS) schrieb:
> &gt; No this is not possible.
> &gt;
> &gt; You need to use an integer for the unique column. It's a requirement.
> &gt;
> &gt; Best regards,
> &gt; Bart
> &gt;
> &gt; --
> &gt; Bart van den Eijnden
> &gt; OSGIS, Open Source GIS
> &gt; http://www.osgis.nl
> &gt;
> &gt;
> &gt; --------- Oorspronkelijk bericht --------
> &gt; Van: Sebastian Schmitz &lt;sebastian.schmitz at WHEREGROUP.COM&gt;
> &gt; Naar: MAPSERVER-USERS at LISTS.UMN.EDU
&lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;
> &gt; Onderwerp: [UMN_MAPSERVER-USERS] OracleSpatial getFeatureInfo problem
> &gt; against unique column containing text
> &gt; Datum: 23/02/07 08:33
> &gt;
> &gt;   
> &gt;&gt; Hi,
> &gt;&gt;
> &gt;&gt; I have a view in Oracle Spatial 10gR2 with a unique Id, which is
text.
> &gt;&gt; MapServer draws the map OK using oraclespatial CONNECTIONTYPE.
> &gt;&gt; However, MapServer is unable to serve a getFeatureInfo request
against 
> &gt;&gt; that view. If I change the DATA statement to substr(ID, 3,7),
removing 
> &gt;&gt; letters from the ID - getFeatureInfo runs fine for the time
being, but 
> &gt;&gt; without the letters my ID will soon lose its uniqueness.
> &gt;&gt;
> &gt;&gt; Is MapServer able to server a getFeatureInfo request against DATA
that 
> &gt;&gt; uses a unique text-column containing letters?
> &gt;&gt;
> &gt;&gt; Find more detail below:
> &gt;&gt; mapfile:
> &gt;&gt; ...
> &gt;&gt; CONNECTIONTYPE oraclespatial
> &gt;&gt;   CONNECTION &amp;quot;GDI/****@ORCL_HOGGNO&amp;quot;
> &gt;&gt;   #not serving getFeatureInfo
> &gt;&gt;   DATA &amp;quot;GEOM FROM V_*** USING UNIQUE SST_NR SRID 8307
FILTER VERSION
> &gt;&gt;     
> &gt; 10g&amp;quot;
> &gt;   
> &gt;&gt;   #serving getFeatureInfo
> &gt;&gt;   DATA &amp;quot;GEOM FROM V_*** USING UNIQUE substr(SST_NR,3,7)
SRID 8307
> &gt;&gt;     
> &gt; FILTER 
> &gt;   
> &gt;&gt; VERSION 10g&amp;quot;
> &gt;&gt;   FILTER &amp;quot;BEREICHKZ = '3'&amp;quot;
> &gt;&gt; ...
> &gt;&gt;
> &gt;&gt; log:
> &gt;&gt; Fri Feb 23 10:54:40 2007 - msOracleSpatialLayerGetShape():
OracleSpatial 
> &gt;&gt; error. Error: ORA-01722: invalid number
> &gt;&gt;  . Query statement: SELECT ***,***, GEOM FROM V_*** WHERE SST_NR
= 0 AND 
> &gt;&gt; BEREICHKZ = '2' .Check your data statement.
> &gt;&gt;
> &gt;&gt; SST_NR in this case should not be null, but sth. like 'SS0023093
'.
> &gt;&gt;
> &gt;&gt; Cheers
> &gt;&gt;
> &gt;&gt; Sebastian
> &gt;&gt;
> &gt;&gt; -- 
> &gt;&gt; ---------------------------------------
> &gt;&gt; WhereGroup GmbH &amp;amp; Co. KG
> &gt;&gt; Siemensstraße 8
> &gt;&gt; 53121 Bonn
> &gt;&gt; -------------------------------
> &gt;&gt; Fon: +49 (0)228 / 90 90 38 - 24
> &gt;&gt; Fax: +49 (0)228 / 90 90 38 - 11
> &gt;&gt; -------------------------------
> &gt;&gt; mailto:sebastian.schmitz at wheregroup.com
> &gt;&gt; http://www.wheregroup.com
> &gt;&gt; -------------------------------
> &gt;&gt; Komplementärin:
> &gt;&gt; WhereGroup Verwaltungs GmbH
> &gt;&gt; vertreten durch:
> &gt;&gt; Arnulf Christl, Olaf Knopp, Peter Stamm
> &gt;&gt; Amtsgericht Bonn, HRB 9885
> &gt;&gt; ---------------------------------------
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;     
> 
> -- 
> ---------------------------------------
> WhereGroup GmbH &amp; Co. KG
> Siemensstraße 8
> 53121 Bonn
> -------------------------------
> Fon: +49 (0)228 / 90 90 38 - 24
> Fax: +49 (0)228 / 90 90 38 - 11
> -------------------------------
> mailto:sebastian.schmitz at wheregroup.com
> http://www.wheregroup.com
> -------------------------------
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Arnulf Christl, Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> ---------------------------------------
> 
> 



More information about the mapserver-users mailing list