im using GEOSERVER for long time..but i want is this.i generate shape file using geoserver and it contains different features (In provice shape file,Provinces are features...it allocate via attribute table) i want to specifically highlight (with different colour) a perticuler province from anyway..pls help me to do that... thanx
Alessio Fabiani wrote: > > MapBuilder GetFeatureInfo FIX > > On 11/9/05, Ryan D Taylor <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Would you mind sending me a copy of the fix you made to the xsl? I've >> been running into the same problem and just made some ugly patches to the >> getfeatureinfo.js file to get it to work. >> >> Thanks, >> >> Ryan >> >> >> >> On Wed, 9 Nov 2005, Alessio Fabiani wrote: >> >> > Sorry, I forgot that MapBuilder has some bugs and is not fully >> compliant >> > with GeoServer and again is on a very early state, it needs a lot of >> work to >> > be a useful client. >> > >> > In order to get the query working you have to edit the "i" widget xsl >> adding >> > the FORMAT and TYPENAME variables to the result query. >> > >> > I can send you the fix if you want. >> > >> > On 11/9/05, Alessio Fabiani <[EMAIL PROTECTED]> wrote: >> > > >> > > You simply first have to click on the (i) of one of the queriable >> layers >> > > !! >> > > >> > > On 11/8/05, Doug Fils <[EMAIL PROTECTED] > wrote: >> > > > >> > > > All, >> > > > I have been enjoying looking through the new >> geoserver.org<http://geoserver.org> >> <http://geoserver.org>site >> > > > (very nice). I have a working geoserver installed and connecting to >> > > > our Postgis database and have been able to make entries in the >> server >> > > > and then get data out and visualize both WFS and WMS calls into the >> > > > system. I have been using uDig, ESRI ARC* and mapbuilder clients >> for >> > > > the WMS and WFS services it now serves. >> > > > >> > > > This is *great*! thank you geoserver team.... >> > > > >> > > > Now I would like to add a query layer to this. You can see what >> > > > we are trying at: >> > > > http://test.chronos.org:9090/mapbuilder/demo/simple/ where we just >> > > > modded the simple demo with mapbuilder. If I select the "i" info >> > > > button and try for example the Diatons (that should be Diatoms.. >> btw) >> > > > I get an error. >> > > > >> > > > I assume this is because I have not set up anything on geoserver >> > > > to recognize this querry and send results back? Is this a geoserver >> > > > thing? Or should I be I be digging around on the mapbuilder side of >> > > > things to get this aspect working? >> > > > >> > > > thanks for your time >> > > > take care >> > > > doug >> > > > >> > > > >> > > > ------------------------------------------------------- >> > > > SF.Net email is sponsored by: >> > > > Tame your development challenges with Apache's Geronimo App Server. >> > > > Download >> > > > it for free - -and be entered to win a 42" plasma tv or your very >> own >> > > > Sony(tm)PSP. Click here to play: >> http://sourceforge.net/geronimo.php >> > > > _______________________________________________ >> > > > Geoserver-users mailing list >> > > > [EMAIL PROTECTED] >> > > > https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > > > >> > > >> > > >> > >> > > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!-- > Description: parses an OGC context document to generate a GetFeatureInfo > url > Author: Nedjo > Licence: LGPL as specified in http://www.gnu.org/copyleft/lesser.html > . > > $Id: wms_GetFeatureInfo.xsl,v 1.3 2005/08/03 19:06:59 mattdiez Exp $ > $Name: mapbuilder-lib-0_4 $ > --> > <xsl:stylesheet version="1.0" xmlns:cml="http://www.opengis.net/context" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <xsl:output method="xml"/> > <!--xsl:strip-space elements="*"/--> > > <!-- parameters to be passed into the XSL --> > <!-- The name of the WMS GetFeatureInfo layer --> > <xsl:param name="layer"/> > <xsl:param name="queryLayer"/> > <xsl:param name="xCoord"/> > <xsl:param name="yCoord"/> > <xsl:param name="format" select="text/html"/> > <xsl:param name="infoFormat" select="text/html"/> > <xsl:param name="featureCount" select="1"/> > > <!-- Global variables --> > <xsl:variable name="bbox"> > <xsl:value-of > select="/cml:ViewContext/cml:General/cml:BoundingBox/@minx"/>,<xsl:value-of > select="/cml:ViewContext/cml:General/cml:BoundingBox/@miny"/>,<xsl:value-of > select="/cml:ViewContext/cml:General/cml:BoundingBox/@maxx"/>,<xsl:value-of > select="/cml:ViewContext/cml:General/cml:BoundingBox/@maxy"/> > </xsl:variable> > <xsl:variable name="width"> > <xsl:value-of > select="/cml:ViewContext/cml:General/cml:Window/@width"/> > </xsl:variable> > <xsl:variable name="height"> > <xsl:value-of > select="/cml:ViewContext/cml:General/cml:Window/@height"/> > </xsl:variable> > <xsl:variable name="srs" > select="/cml:ViewContext/cml:General/cml:BoundingBox/@SRS"/> > > <!-- Root template --> > <xsl:template match="/"> > <xsl:apply-templates > select="cml:ViewContext/cml:LayerList/cml:Layer[cml:Name=$queryLayer]"/> > </xsl:template> > > <!-- Layer template --> > <xsl:template match="cml:Layer"> > > <!-- Layer variables --> > <xsl:variable name="version"> > <xsl:value-of select="cml:Server/@version"/> > </xsl:variable> > <xsl:variable name="baseUrl"> > <xsl:value-of select="cml:Server/cml:OnlineResource/@xlink:href"/> > </xsl:variable> > <xsl:variable name="firstJoin"> > <xsl:choose> > <xsl:when > test="substring($baseUrl,string-length($baseUrl))='?'"></xsl:when> > <xsl:when test="contains($baseUrl, '?')">&</xsl:when> > <xsl:otherwise>?</xsl:otherwise> > </xsl:choose> > </xsl:variable> > > <!-- Print the URL --> > <url> > <xsl:value-of select="$baseUrl"/><xsl:value-of > select="$firstJoin"/>VERSION=<xsl:value-of > select="$version"/>&REQUEST=GetFeatureInfo&SRS=<xsl:value-of > select="$srs"/>&BBOX=<xsl:value-of > select="$bbox"/>&WIDTH=<xsl:value-of > select="$width"/>&HEIGHT=<xsl:value-of > select="$height"/>&FORMAT=<xsl:value-of > select="$format"/>&INFO_FORMAT=<xsl:value-of > select="$infoFormat"/>&FEATURE_COUNT=<xsl:value-of > select="$featureCount"/>&LAYERS=<xsl:value-of > select="$layer"/>&QUERY_LAYERS=<xsl:value-of > select="$queryLayer"/>&X=<xsl:value-of > select="$xCoord"/>&Y=<xsl:value-of select="$yCoord"/> > </url> > </xsl:template> > </xsl:stylesheet> > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!-- > Description: parses an OGC context document to generate a GetFeatureInfo > url > Author: Nedjo > Licence: LGPL as specified in http://www.gnu.org/copyleft/lesser.html > . > > $Id: wms_GetFeatureInfo.xsl,v 1.3 2005/08/03 19:06:59 mattdiez Exp $ > $Name: mapbuilder-lib-0_4 $ > --> > <xsl:stylesheet version="1.0" xmlns:cml="http://www.opengis.net/context" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <xsl:output method="xml"/> > <!--xsl:strip-space elements="*"/--> > > <!-- parameters to be passed into the XSL --> > <!-- The name of the WMS GetFeatureInfo layer --> > <xsl:param name="layer"/> > <xsl:param name="queryLayer"/> > <xsl:param name="xCoord"/> > <xsl:param name="yCoord"/> > <xsl:param name="format" select="text/html"/> > <xsl:param name="infoFormat" select="text/html"/> > <xsl:param name="featureCount" select="1"/> > > <!-- Global variables --> > <xsl:variable name="bbox"> > <xsl:value-of > select="/cml:OWSContext/cml:General/cml:BoundingBox/@minx"/>,<xsl:value-of > select="/cml:OWSContext/cml:General/cml:BoundingBox/@miny"/>,<xsl:value-of > select="/cml:OWSContext/cml:General/cml:BoundingBox/@maxx"/>,<xsl:value-of > select="/cml:OWSContext/cml:General/cml:BoundingBox/@maxy"/> > </xsl:variable> > <xsl:variable name="width"> > <xsl:value-of select="/cml:OWSContext/cml:General/cml:Window/@width"/> > </xsl:variable> > <xsl:variable name="height"> > <xsl:value-of > select="/cml:OWSContext/cml:General/cml:Window/@height"/> > </xsl:variable> > <xsl:variable name="srs" > select="/cml:OWSContext/cml:General/cml:BoundingBox/@SRS"/> > > <!-- Root template --> > <xsl:template match="/"> > <xsl:apply-templates > select="cml:OWSContext/cml:ResourceList/cml:Layer[cml:Name=$queryLayer]"/> > </xsl:template> > > <!-- Layer template --> > <xsl:template match="cml:Layer"> > > <!-- Layer variables --> > <xsl:variable name="version"> > <xsl:value-of select="cml:Server/@version"/> > </xsl:variable> > <xsl:variable name="baseUrl"> > <xsl:value-of select="cml:Server/cml:OnlineResource/@xlink:href"/> > </xsl:variable> > <xsl:variable name="firstJoin"> > <xsl:choose> > <xsl:when > test="substring($baseUrl,string-length($baseUrl))='?'"></xsl:when> > <xsl:when test="contains($baseUrl, '?')">&</xsl:when> > <xsl:otherwise>?</xsl:otherwise> > </xsl:choose> > </xsl:variable> > > <!-- Print the URL --> > <url> > <xsl:value-of select="$baseUrl"/><xsl:value-of > select="$firstJoin"/>VERSION=<xsl:value-of > select="$version"/>&REQUEST=GetFeatureInfo&SRS=<xsl:value-of > select="$srs"/>&BBOX=<xsl:value-of > select="$bbox"/>&WIDTH=<xsl:value-of > select="$width"/>&HEIGHT=<xsl:value-of > select="$height"/>&FORMAT=<xsl:value-of > select="$format"/>&INFO_FORMAT=<xsl:value-of > select="$infoFormat"/>&FEATURE_COUNT=<xsl:value-of > select="$featureCount"/>&LAYERS=<xsl:value-of > select="$layer"/>&QUERY_LAYERS=<xsl:value-of > select="$queryLayer"/>&X=<xsl:value-of > select="$xCoord"/>&Y=<xsl:value-of select="$yCoord"/> > </url> > </xsl:template> > </xsl:stylesheet> > > -- View this message in context: http://www.nabble.com/Re%3A--Geoserver-users--Any-resources-for-how-to-make-query-layers-work-tp1401389p17730436.html Sent from the GeoServer - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
