dynamic layers for my search results

55 views
Skip to first unread message

Tania Kirov

unread,
Aug 25, 2010, 7:56:53 PM8/25/10
to openscales-dev
Hello,
I’m looking at creating dynamic layers for my search results. If you
have any info/documentation/explanation how it could be done with
OpenScales it will be highly appreciated
Thank you
Regards,
Tania

Tania Kirov

unread,
Aug 29, 2010, 7:17:39 PM8/29/10
to openscales-dev
I thought I should give a bit more details what I’m tying to do :

I would like to be able to generate a layer which contains just a
specific entities/features. I’ve already have a layers defined in
Geoserver that contains all the features. There is a search screen in
my application which generates a list of features and I want to be
able to provide a map with only those features on it. I thought I
could use a WMS getFeature request passing a filter containing the
features’ Ids, but I do not see how this can be done in OpenScales.

Can you give me any guides how can I achieve this and if I need to do
an “extension” to OpenScales how should I do it, so I can submit my
changes after that?

Thank you

Tania

Simon Lopez

unread,
Aug 30, 2010, 4:54:43 AM8/30/10
to opensca...@googlegroups.com
Hi,
You may try with CQL_FILTER:
var layer:WFS = new WFS();
(layer.params as WFSParams).setAdditionalParam('CQL_FILTER',
'YOUR_CQL_FILTER');

Regards,
Simon L.

* Tania Kirov <tania...@gmail.com> [2010-08-29 16:17:39]:

> --
> You received this message because you are subscribed to the Google Groups "openscales-dev" group.
> To post to this group, send email to opensca...@googlegroups.com.
> To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.
>

--
Simon Lopez

signature.asc

Tania Kirov

unread,
Aug 31, 2010, 2:06:04 AM8/31/10
to openscales-dev
I thought CQL was not supported. Is that a new feature in 1.2 release?

Simon Lopez

unread,
Aug 31, 2010, 3:29:28 AM8/31/10
to opensca...@googlegroups.com
Hi,
it's not supported as there is no specific interface for it, but you can
force CQL in your requests as you can hardcode it in OGCParams/WFSParams

Regards,
Simon L.

* Tania Kirov <tania...@gmail.com> [2010-08-30 23:06:04]:

> I thought CQL was not supported. Is that a new feature in 1.2 release?
>

signature.asc

Tania Kirov

unread,
Sep 1, 2010, 12:42:58 AM9/1/10
to openscales-dev


Thank you for your reply Simon.

I’ve tried the additional WFSParams.setAdditionalParam() but it gives
me an error: "bbox and cql_filter both specified but are mutually
exclusive".
The issue is that in WFS.redraw() there is:
this.params.bbox = projectedBounds.boundsToString();
which inserts the BBOX in my request parameters. I do not have control
over this, so how can I make it check/notify that I do not want the
BBOX parameter.
I’ve tried commenting out just that line in the code of WFS.redraw()
and my request came through properly, containing the right results.


Regards,
Tania
Reply all
Reply to author
Forward
0 new messages