[mapserver-dev] DrawQuery with Oracle Spatial -RFC 52(?)
Pano Voudouris
pvoudouris at gaiocorp.com
Mon Apr 26 09:43:05 EDT 2010
Hi All,
I originally posted this on the MS4W list but they advised I should send it
here. I seem to have a problem with MapServer 5.6.3 DrawQuery request on
oracle spatial layers (native oracle connection). I am working with
mapscript csharp (ms4w 3.0-beta11)
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 RFC 52? And is there a workaround?
BTW, the open/close layer methods seemed to be required on the 5.6.3
version? I
didn't have to open the layer in 5.2.1 (ms4w 2.3.1). If I don't open the
layers I was
getting the unopened layer error even on shapefiles.
Thanks,
Pano Voudouris
More information about the mapserver-dev
mailing list