Ciao Simone,

No this is not a coverage plugin, it is completely vectoral. The problem is
here that there are lots of s57 files belonging to one SimpleFeatureType in
datastore directory, not just one file. And i should select most
appropriate files (for intance first 5 or 6 files for each WMS request) to
render, so GeoServer reads features from the selected files. So to select
these appropriate files, i should know current scale value, and to
calculate ogc scale value i should know width and height. That is why i
need it. Anyway this solution seems to solve my problem. Thank you for your
response.

Regars
Yasin
On Feb 20, 2015 1:31 PM, "Simone Giannecchini" <
[email protected]> wrote:

> Ciao Yasin,
> I believe you should probably code the plugin as a coverage plugin if
> it generates an image in the output regardless of the fact that the
> underlying data is vector.
> Datastore should not have (but I might be wrong here) any notion of
> screen resolution as it wrap DBMS like api. I know there should be
> some hints but it should no be supposed to know exactly the W and H
> params for the GetMap request.
>
>
> Regards,
> Simone Giannecchini
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:     +39 0584 1660272
> mob:   +39 333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate.
> Il loro utilizzo è consentito esclusivamente al destinatario del
> messaggio, per le finalità indicate nel messaggio stesso. Qualora
> riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
> cortesemente di darcene notizia via e-mail e di procedere alla
> distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
> Conservare il messaggio stesso, divulgarlo anche in parte,
> distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
> diverse, costituisce comportamento contrario ai principi dettati dal
> D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely
> for the attention and use of the named addressee(s) and may be
> confidential or proprietary in nature or covered by the provisions of
> privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
> Data Protection Code).Any use not in accord with its purpose, any
> disclosure, reproduction, copying, distribution, or either
> dissemination, either whole or partial, is strictly forbidden except
> previous formal approval of the named addressee(s). If you are not the
> intended recipient, please contact immediately the sender by
> telephone, fax or e-mail and delete the information in this message
> that has been received in error. The sender does not give any warranty
> or accept liability as the content, accuracy or completeness of sent
> messages and accepts no responsibility  for changes made after they
> were sent or for other risks which arise as a result of e-mail
> transmission, viruses, etc.
>
>
> On Fri, Feb 20, 2015 at 12:27 PM, yasin motcu <[email protected]>
> wrote:
> > Ciao Simone,
> >
> > Thank you for your response and sorry for incomplete information. It is a
> > vectoral plugin like shapefile that implements DataStore api, and the
> data
> > itself is vectoral which is s57/s63 data. In fact, after i wrote my
> message,
> > i have found a way. I took ScreenMap object from hints, and access its
> > private width and height fields via reflection. But still I don't know if
> > there is a legal way to pass -user requested WMS- width and height
> > parameters to this plugin.
> >
> > Regards,
> > Yasin
> >
> > On Feb 20, 2015 11:58 AM, "Simone Giannecchini"
> > <[email protected]> wrote:
> >>
> >> Ciao Yasin,
> >> please, find my answer inline below....
> >>
> >> Regards,
> >> Simone Giannecchini
> >> ==
> >> GeoServer Professional Services from the experts! Visit
> >> http://goo.gl/NWWaa2 for more information.
> >> ==
> >> Ing. Simone Giannecchini
> >> @simogeo
> >> Founder/Director
> >>
> >> GeoSolutions S.A.S.
> >> Via Poggio alle Viti 1187
> >> 55054  Massarosa (LU)
> >> Italy
> >> phone: +39 0584 962313
> >> fax:     +39 0584 1660272
> >> mob:   +39 333 8128928
> >>
> >> http://www.geo-solutions.it
> >> http://twitter.com/geosolutions_it
> >>
> >> -------------------------------------------------------
> >> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
> >> Le informazioni contenute in questo messaggio di posta elettronica e/o
> >> nel/i file/s allegato/i sono da considerarsi strettamente riservate.
> >> Il loro utilizzo è consentito esclusivamente al destinatario del
> >> messaggio, per le finalità indicate nel messaggio stesso. Qualora
> >> riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
> >> cortesemente di darcene notizia via e-mail e di procedere alla
> >> distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
> >> Conservare il messaggio stesso, divulgarlo anche in parte,
> >> distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
> >> diverse, costituisce comportamento contrario ai principi dettati dal
> >> D.Lgs. 196/2003.
> >>
> >> The information in this message and/or attachments, is intended solely
> >> for the attention and use of the named addressee(s) and may be
> >> confidential or proprietary in nature or covered by the provisions of
> >> privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
> >> Data Protection Code).Any use not in accord with its purpose, any
> >> disclosure, reproduction, copying, distribution, or either
> >> dissemination, either whole or partial, is strictly forbidden except
> >> previous formal approval of the named addressee(s). If you are not the
> >> intended recipient, please contact immediately the sender by
> >> telephone, fax or e-mail and delete the information in this message
> >> that has been received in error. The sender does not give any warranty
> >> or accept liability as the content, accuracy or completeness of sent
> >> messages and accepts no responsibility  for changes made after they
> >> were sent or for other risks which arise as a result of e-mail
> >> transmission, viruses, etc.
> >>
> >>
> >> On Mon, Feb 16, 2015 at 9:07 AM, yasin motcu <[email protected]>
> wrote:
> >> > Hello list,
> >> >
> >> > I have developed a plugin which is reading multiple files in a
> directory
> >> > for
> >> > a map format on GeoServer. Because there are lots of file and also
> >> > overlapping files, i need to choose best maps that fits to current
> user
> >> > view. I have developed a map selection algorithm for this purpose. A
> >> > heuristic in this algorithm needs image width and height from the
> >> > supplied
> >> > WMS parameters, so how can i pass these parameters to my vector
> plugin,
> >> > i
> >> > couldn't find a resource which will help me.
> >>
> >> Well, you are not providing much information in this email.
> >> - What kind of plugin are we talking about?
> >> - Is it a DataStore a CoverageStore?
> >> - Waht kind of data are we talking about? Raster? Vector?
> >>
> >> >
> >> > Thank you very much in advance.
> >> >
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------------
> >> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> >> > from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards
> >> > with Interactivity, Sharing, Native Excel Exports, App Integration &
> >> > more
> >> > Get technology previously reserved for billion-dollar corporations,
> FREE
> >> >
> >> >
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Geoserver-devel mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
> >> >
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to