[Geoserver-users] Custom GTRender

Hello,

Can I configure Geoserver to use custom GTRender implementation class?

Valentin Erastov ha scritto:

Hello,

Can I configure Geoserver to use custom GTRender implementation class?

Nope, you cannot. But the modifications needed should not be that
many, provided your renderer can really do whatever the streaming
renderer does.
Can you share more information about your custom rendering code?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I need to make the realization of a pseudo-3D buildings. Something
similar to this
http://maps.google.com/maps?f=q&source=s_q&hl=ru&geocode=&q=New+York&sll=37.0625,-95.677068&sspn=48.240201,79.101563&ie=UTF8&ll=40.730202,-73.975502&spn=0.002837,0.004828&z=18&iwloc=A

Andrea Aime-4 wrote:

Valentin Erastov ha scritto:

Hello,

Can I configure Geoserver to use custom GTRender implementation class?

Nope, you cannot. But the modifications needed should not be that
many, provided your renderer can really do whatever the streaming
renderer does.
Can you share more information about your custom rendering code?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Custom-GTRender-tp23523268p23523937.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Valentin Yerastov ha scritto:

I need to make the realization of a pseudo-3D buildings. Something
similar to this
http://maps.google.com/maps?f=q&source=s_q&hl=ru&geocode=&q=New+York&sll=37.0625,-95.677068&sspn=48.240201,79.101563&ie=UTF8&ll=40.730202,-73.975502&spn=0.002837,0.004828&z=18&iwloc=A

Hi,
sorry for the late reply. Thought a bit about your problem.
You need to bits in order to make that working:
- a way to declare you want the buildings to be pseudo-3D
   instead of drawn flat
- a way to actually paint them in pseudo-3D

For the first problem I believe you'll need adding
some vendor parameters in a PolygonSymbolizer and change
the parsing code and the in memory code accordingly.

For the latter, I believe you should avoid trying to
redo the whole renderer, since you'd end up rewriting
common parts such, most obviously, data access and
reprojection (and on the fly data generalization, thought
in your specific case it may not be significant, I
guess you want to use pseudo-3d only when closely
zoomed in).
Instead, I would suggest to modify the StyledShapePainter
class and handle drawing the polygons in your specific
way only when the vendor option I was talking about
is used in the style.

Do you plan to make your renderer modifications open
source? In that case I can justify delving a bit more
into details.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hello, Thanks for reply.

Yes, I plan make it open source. Where I can ask more question? (maybe other mail list).

2009/5/15 Andrea Aime <aaime@anonymised.com>

Valentin Yerastov ha scritto:

I need to make the realization of a pseudo-3D buildings. Something
similar to this
http://maps.google.com/maps?f=q&source=s_q&hl=ru&geocode=&q=New+York&sll=37.0625,-95.677068&sspn=48.240201,79.101563&ie=UTF8&ll=40.730202,-73.975502&spn=0.002837,0.004828&z=18&iwloc=A

Hi,
sorry for the late reply. Thought a bit about your problem.
You need to bits in order to make that working:

  • a way to declare you want the buildings to be pseudo-3D
    instead of drawn flat
  • a way to actually paint them in pseudo-3D

For the first problem I believe you’ll need adding
some vendor parameters in a PolygonSymbolizer and change
the parsing code and the in memory code accordingly.

For the latter, I believe you should avoid trying to
redo the whole renderer, since you’d end up rewriting
common parts such, most obviously, data access and
reprojection (and on the fly data generalization, thought
in your specific case it may not be significant, I
guess you want to use pseudo-3d only when closely
zoomed in).
Instead, I would suggest to modify the StyledShapePainter
class and handle drawing the polygons in your specific
way only when the vendor option I was talking about
is used in the style.

Do you plan to make your renderer modifications open
source? In that case I can justify delving a bit more
into details.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Valentin Erastov ha scritto:

Hello, Thanks for reply.

Yes, I plan make it open source. Where I can ask more question? (maybe other mail list).

Humm yeah, the work is to be done in GeoTools and since you expressed
an interest in contributing back what you're doing geotools-devel
would be the most appropriate one

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.