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

Pano Voudouris pvoudouris at gaiocorp.com
Thu Apr 8 06:05:28 EST 2010


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,
Pano



More information about the MS4W-Users mailing list