Hi,
I’m having a problem and would like to know if someone
went through something similar and could give me a “light”.
I have an application that uses Geoserver + OpenLayers. This
application, I have a layer of road, which have information
as beginning km, km purpose, identifier code. So far no
issue.
But the problem is, I give an example: I have a piece of
SC-401 highway that runs from KM 0 to Km 30, but I just want to paint the Km
5 to KM 20. So I have an algorithm that returns the coordinates
part of this piece, but until now could not find whether it is
can perform a filter passing the coordinates.
Best Regards,
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile! Crie já o seu!
Hi Fernando,
As far as I know there is no way to render only parts of a geometry, or a section of a line string in this case. So I can't really think of a good solution for you. Hopefully someone better at SLD and knows more about rendering can help you.
-Justin
Fernando Quadro wrote:
Hi,
I'm having a problem and would like to know if someone
went through something similar and could give me a "light".
I have an application that uses Geoserver + OpenLayers. This
application, I have a layer of road, which have information
as beginning km, km purpose, identifier code. So far no
issue.
But the problem is, I give an example: I have a piece of
SC-401 highway that runs from KM 0 to Km 30, but I just want to paint the Km
5 to KM 20. So I have an algorithm that returns the coordinates
part of this piece, but until now could not find whether it is
can perform a filter passing the coordinates.
Best Regards,
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com
------------------------------------------------------------------------
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile! Crie já o seu! <http://mobile.live.com/signup/signup2.aspx?lc=pt-br>
------------------------------------------------------------------------
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
Well, I know you can draw with coordinates in SLD - It's InlineFeature
as in this example:
http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_featur
e&s=sld
So you can show features that are not actually in your database at all.
So if you have the coordinates of the piece of the line you could draw
the piece.
I guess you'd have to do a WFS query to get the coordinates in hand
first, then do a
WMS request to draw just the part you wanted to draw.
Fernando Quadro ha scritto:
Hi,
I'm having a problem and would like to know if someone
went through something similar and could give me a "light".
I have an application that uses Geoserver + OpenLayers. This
application, I have a layer of road, which have information
as beginning km, km purpose, identifier code. So far no
issue.
But the problem is, I give an example: I have a piece of
SC-401 highway that runs from KM 0 to Km 30, but I just want to paint the Km
5 to KM 20. So I have an algorithm that returns the coordinates
part of this piece, but until now could not find whether it is
can perform a filter passing the coordinates.
I can confirm there is no way to do so, SLD does not have the
idea of partial symbolizing.
It would be possible to deal with such requests if SLD allowed
to specify a generic expression for the geometry, instead of just
the geometry attribute name, in the <sld:Geometry> element that each
symbolizer has. This would open up the possibilities to make
some constructive geometry operation using functions, stuff like
offsetting the geometry (to create drop shadow effects), buffering it,
or cutting it out so that only part of the geometry is returned
to the renderer.
We could add this feature, but it would require significant changes
in the parser and in the SLD api, as now all symbolizers just
have a String field for the geometry, instead of an Expression
one. We can think of adding this to GeoServer 2.0, provided the
"standards police" in GeoTools does not arrests me for diverging
from the holy OGC specifications.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi,
And how shows this link sent by Aleda, I can do? () ttp://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_feature&s=sld
I tried various ways of passing the SLD in the layer (I did the download from WFS) and could not.
Is it possible?
Best Regards,
Fernando Quadro
Well, I know you can draw with coordinates in SLD - It’s InlineFeature
as in this example:
http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_featur
e&s=sld
So you can show features that are not actually in your database at all.
So if you have the coordinates of the piece of the line you could draw
the piece.
I guess you’d have to do a WFS query to get the coordinates in hand
first, then do a
WMS request to draw just the part you wanted to draw.
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com
Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! Confira já!