[MS4W-Users] DrawQuery with Oracle Spatial -RFC 52(?)

Jeff McKenna jmckenna at gatewaygeomatics.com
Sat Apr 24 09:30:04 EST 2010


Pano,

I think you should send this message to the mapserver-dev email list 
(subscribe at http://lists.osgeo.org/mailman/listinfo/mapserver-dev). 
You may have found a valid issue in the oracle driver for MapServer, 
which may have been caused by the RFC 52 changes, and the best way to 
ask is to ask the MapServer devs through that list.  Also, in your 
message there, instead of referring to 'ms4w v3' or 'ms4w v2.3.1' be 
sure to mention 'MapServer 5.6.3' (for ms4w 3.0-beta11) and 'MapServer 
5.2.1' (for ms4w 2.3.1) instead.  Thanks.

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




Pano Voudouris wrote:
> All, (and Jeff),
> I sent this a couple of weeks back but didn't get any replies? With the beta
> 11 out and the final release looming, I thought I should resend it. Is this
> a bug? Me doing something wrong? Should I raise a ticket?
> 
> Thanks,
> Pano
> 
> -----Original Message-----
> From: ms4w-users-bounces at lists.maptools.org
> [mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Pano Voudouris
> Sent: 08 April 2010 14:05
> To: ms4w-users at lists.maptools.org
> Subject: [MS4W-Users] DrawQuery with Oracle Spatial -RFC 52(?)
> 
> Hi All,
> I have just upgraded my app to use the v3.0 Beta 10 binaries and seem to
> have a problem with DrawQuery request on oracle spatial layers (native
> oracle connection). 
> The error is: 
> 
> msDrawMap(): Image handling error. Failed to draw layer named
> 'STREETS'.;msOracleSpatialLayerResultGetShape(): OracleSpatial error.
> msOracleSpatialLayerResultGetShape record out of range
> 
> The bit of code that gives the error is:
> 
> layerObj active_layer = aMapObj.getLayer(active_layer_index);
> active_layer.open();
> resultCacheObj results = active_layer.getResults();
> imageObj image=aMapObj.drawQuery(); // This throws the error
> 
> I also tried using the layerObj.DrawQuery but this gives a different error:
> 
> msOracleSpatialLayerResultGetShape(): OracleSpatial error.
> msOracleSpatialLayerResultGetShape called on unopened layer (layerinfo)
>  although the layer IS opened!
> 
> Code is:
> layerObj active_layer = aMapObj.getLayer(active_layer_index);
> active_layer.open();
> resultCacheObj results = active_layer.getResults();
> imageObj image = aMapObj.draw();
> active_layer.drawQuery(aMapObj, image); //This throws the error
> 
> Does this have to do with the RFC 52? And is there a workaround?
> 
> BTW, the open/close layer methods seemed to be required on the v3 version? I
> didn't have to open the layer in  v2.3.1. If I don't open the layers I was
> getting the unopened layer error even on shapefiles.
> 
> Thanks,


More information about the MS4W-Users mailing list