Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Getting Styles from wms capabilities
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ranggalawe  
View profile  
 More options Jan 27, 4:39 pm
From: ranggalawe <ericherlan...@gmail.com>
Date: Fri, 27 Jan 2012 13:39:50 -0800 (PST)
Local: Fri, Jan 27 2012 4:39 pm
Subject: Getting Styles from wms capabilities
Hello,

import org.openscales.core.layer.capabilities.*;
import org.openscales.core.basetypes.maps.HashMap;

var wmsCap:HashMap;
var wmsURL:String = "http://localhost:8080/geoserver/wms";
var wmsGC:GetCapabilities = new GetCapabilities("wms", wmsURL,
this.capabilitiesGetter, "1.1.0");
function capabilitiesGetter(getCap:GetCapabilities):void {
        this.wmsCap = getCap.getAllCapabilities();

        var keys:Array = wmsCap.getKeys().sort();
        for(var i:uint = 0; i < keys.length; i++){
                var layerName:String = wmsCap.getValue(keys[i]).getValue("Name");

                //I need this one to work to enable call to
GetLegendGraphic request
                var layerStyle:Object = wmsCap.getValue(keys[i]).getValue("Style");
        }

}

How to get layer Styles from openscales wms capabilities?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erich Erlangga  
View profile  
 More options Jan 28, 1:58 am
From: Erich Erlangga <ericherlan...@gmail.com>
Date: Sat, 28 Jan 2012 13:58:41 +0700
Local: Sat, Jan 28 2012 1:58 am
Subject: Re: Getting Styles from wms capabilities

Oke i figure it out. I can actually construct the GetLegendGraphic request
from Layer's Tittle
wmsCap.getValue("sf:archsites").getValue("Title");


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »