[mapguide-users] Layer(oracle package) Selection Problem
padmini godavarthi
godavarthi.padmini at gmail.com
Wed Mar 4 21:56:09 EST 2009
Hi,
Thanks for u r reply.
layer selection is not happening in oracle package loaded from data base.
While selecting one feature with file based data iam able to get
layerlength as 1, layer id and class id
But While selecting feature from Oracle package i got the layer length as 0
and didn't get layer id and class id
i think the problem is with the following function in ajaxmappane.tmpl
function QueryFeatureInfo(geom, append, maxfeatures, which)
{
alert('query');
var url = webAgent;
var req = url +
"?OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" +
encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" +
Math.random();
req += "&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) +
"&GEOMETRY=" + geom + "&SELECTIONVARIANT=INTERSECTS";
if(maxfeatures != 0)
req += "&MAXFEATURES=" + maxfeatures;
alert(req);
var selRequest = CreateRequestHandler();
selRequest.open("GET", req, false);
selRequest.send(null);
if(selRequest.responseXML)
{
ProcessFeatureInfo(selRequest.responseXML.documentElement, append,
which);
alert(selRequest.responseText);
}
else
RequestFailed("No response");
}
function CompareProperties(p1, p2)
{
var n1 = p1.name;
var n2 = p2.name;
if(n1 < n2)
return -1;
else if(n1 > n2)
return 1;
return 0;
}
can u plz telll me the solution for selecting features in oracle packages.
Thanks in advance
Regards,
Padmini.
zspitzer wrote:
>
> try reading your error message
>
> fdo can't connect to oracle, there is a an oracle error code in the
> message
> which you can google and find the answer
>
> z
>
> On Mon, Mar 2, 2009 at 1:40 PM, padmini godavarthi
> <godavarthi.padmini at gmail.com> wrote:
>>
>>
>>
>> Hi,
>> iam using mapguide opensourc 2.0 (with .net 2.0 +IIS 5.1)
>> i have created a package using oracle data
>>
>> i got an error while selecting this layer on the viewer
>>
>> i think the error comes in ajaxmappane.tmpl ,error is as
>> follows............................................
>>
>>
>> http://n2.nabble.com/file/n2407236/Error.jpeg
>>
>> can u plz tell me the solution
>>
>>
>> Thanks and Regards,
>> Padmini.
>> --
>> View this message in context:
>> http://n2.nabble.com/Layer%28oracle-package%29-Selection-Problem-tp2407236p2407236.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
http://n2.nabble.com/file/n2427073/filebased%2Bdata.jpeg
http://n2.nabble.com/file/n2427073/filebased%2Bdata.jpeg
http://n2.nabble.com/file/n2427073/filebased%2Bdata.jpeg
http://n2.nabble.com/file/n2427073/oracle%2Bdata.jpeg
--
View this message in context: http://n2.nabble.com/Layer%28oracle-package%29-Selection-Problem-tp2407236p2427073.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list