Re: [Geoserver-users] Scale discrepancy between Web Mercator and BC-Albers
Good news on this. Further experimentation revealed that it is possible to get reasonably good agreement between scales in OpenLayers and GeoServer using the following approach: - use OpenLayers NON-geodesic (nominal) scale calculation - set OpenLayers DOTS_PER_INCH to match the GeoServer value of 90 This produced OL scales that were in good agreement with the GeoServer values (close enough for government work, anyway 8^). For example, at a map nominal scale of 541,679 GeoServer computed the scale of 545,979 This was greatly assisted by Andrea's suggestion of using WMS Decorations, in conjunction with some enhancements to my WMS Viewer ( http://dr-jts.github.io/maptest/maptest.html ). For those interested, the following was used to display the GeoServer scale on each map image: GetMap parameter format_options=layout:scaleratio WMS Decoration Layout file scaleratio.xml: layout> On Tue, Feb 16, 2016 at 9:35 AM, Andrea Aime wrote: > On Tue, Feb 16, 2016 at 6:10 PM, Martin Davis wrote: > >> Thanks, Andrea. I suspected this might be the cause of the issue. >> >> Is there a way to view the scale computed for a map request? That might >> let us correlate the client (geodetic) scale to "OGC scale", so we can >> translate between the two. >> > > You can use the decorations: > http://docs.geoserver.org/stable/en/user/advanced/wmsdecoration.html > > A "correlation" might be possible in a very specific local area, but just > so that we are on the same > page, the math is wildly different, so you could have a rough linear > correlation in a town, > not sure you can have that in a larger area (something spanning degrees, > especially > at that latitude where the mercator scale factor starts to diverge) > > Cheers > Andrea > > -- > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > 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. > > --- > -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Scale discrepancy between Web Mercator and BC-Albers
Thanks for the advice - and for the warning. Sigh On Tue, Feb 16, 2016 at 9:35 AM, Andrea Aime wrote: > On Tue, Feb 16, 2016 at 6:10 PM, Martin Davis wrote: > >> Thanks, Andrea. I suspected this might be the cause of the issue. >> >> Is there a way to view the scale computed for a map request? That might >> let us correlate the client (geodetic) scale to "OGC scale", so we can >> translate between the two. >> > > You can use the decorations: > http://docs.geoserver.org/stable/en/user/advanced/wmsdecoration.html > > A "correlation" might be possible in a very specific local area, but just > so that we are on the same > page, the math is wildly different, so you could have a rough linear > correlation in a town, > not sure you can have that in a larger area (something spanning degrees, > especially > at that latitude where the mercator scale factor starts to diverge) > > Cheers > Andrea > > -- > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > 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. > > --- > -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Scale discrepancy between Web Mercator and BC-Albers
On Tue, Feb 16, 2016 at 6:10 PM, Martin Davis wrote: > Thanks, Andrea. I suspected this might be the cause of the issue. > > Is there a way to view the scale computed for a map request? That might > let us correlate the client (geodetic) scale to "OGC scale", so we can > translate between the two. > You can use the decorations: http://docs.geoserver.org/stable/en/user/advanced/wmsdecoration.html A "correlation" might be possible in a very specific local area, but just so that we are on the same page, the math is wildly different, so you could have a rough linear correlation in a town, not sure you can have that in a larger area (something spanning degrees, especially at that latitude where the mercator scale factor starts to diverge) Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 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. --- -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Scale discrepancy between Web Mercator and BC-Albers
Thanks, Andrea. I suspected this might be the cause of the issue. Is there a way to view the scale computed for a map request? That might let us correlate the client (geodetic) scale to "OGC scale", so we can translate between the two. On Tue, Feb 16, 2016 at 12:40 AM, Andrea Aime wrote: > On Tue, Feb 16, 2016 at 12:05 AM, Martin Davis wrote: > >> Are you suggesting that GeoServer computes the scale at a single known >> point for all map request extents, no matter where on the globe they are >> located?Does the OGC standard specify this? >> > > The OGC standard basically defines (brace yourself) an "cylindrical earth" > model in the SLD specification, that's what GeoServer implements, at least > for > geographic coordinate systems. > For projected ones it's the "flat map" scale one, measured in the > projected coordinates, which is also very far away from a true scale > (measured along a geodetic distance) especially at those latitudes > and using that projection. > > If you really want to break the standards GeoServer gives you a hand by > offering a vendor param to compute the scale > in the accurate (geodetic) way: > > http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#scalemethod > > We normally use that for printouts :-) > > Cheers > Andrea > > -- > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > 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. > > --- > -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] User isolation in Geoserver
Thanks. I've filed it. https://osgeo-org.atlassian.net/browse/GEOS-7429 -Brian On Tue, Feb 16, 2016 at 9:28 AM, Jim Hughes wrote: > Hi Brian, > > I'm a bit short on time to help out at the minute. It sounds like you > have a pretty clear bug report. > > I know the issue tracker is here: > https://osgeo-org.atlassian.net/projects/GEOS/issues. If you'd like to > report the bug yourself, you may need to ask for an account on this list. > When I get a time in a day or two, I might be able to look at this one. > > Cheers, > > Jim > > > On 02/15/2016 06:03 PM, Brian Farrell wrote: > > Jim, > > Well, I thought this was resolved, but a week of use by students and a > script attempting to automate the process, I'm back with the same error. > I've started with a clean installation of Geoserver. Below are the steps I > took to set up Geoserver, steps to reproduce the bug, full error message, > and build information. > > Workspace Isolation Bug Reproduction Instructions > > Setting up the environment > 1. Clear all pre-loaded workspaces from geoserver > 2. Create a workspace named ‘shared’ as the default workspace > 3. Enable the ‘shared’ workspace > 4. Create a workspace named ‘student0workspace’. Do not make it the > default workspace > 5. Enable the ‘student0workspace’ workspace > 6. Add a new role named ‘student0role’ > 7. Add a new user named ‘student0’ and give it the ‘student0role’ role. > 8. Add three new data security rules that give ‘student0role’ read, write, > and admin access to ‘student0workspace’. > 9. Make sure the catalog mode is set to Hide. > > Reproducing the bug > 1. Log in as ‘student0’ > 2. Add a new shapefile store. Name it ‘states_store’ and publish the > states.shp file under data > shapefiles > 3. Click publish for the states layer > 4. Fill in the Declared SRS and attempt to calculate the native bounding > box (‘Compute from data’). The following error will occur in the geoserver > error log (full error message at the end): “Error computing the native BBOX > java.io.IOException: Schema 'student0workspace:states' does not exist.” > > Note: interestingly enough, if while stuck on step 4, the workspace > configuration is re-opened and saved (even without any changes), the layer > will publish properly (assuming a layer style is created in the workspace > and selected under the publishing tab). > > > > 2016-02-15 17:41:06,628 ERROR [data.resource] - Error computing the native > BBOX > java.io.IOException: Schema 'student0workspace:states' does not exist. > at > org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:621) > at > org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:393) > at > org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:687) > at > org.geoserver.catalog.ResourcePool.getFeatureSource(ResourcePool.java:1183) > at > org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureSource(FeatureTypeInfoImpl.java:125) > at > org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:561) > at > org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:543) > at > org.geoserver.web.data.resource.BasicResourceConfig$1.onSubmit(BasicResourceConfig.java:120) > at > org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68) > at > org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143) > at > org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) > at > org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) > at > org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) > at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) > at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) > at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) > at > org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at > org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159) > at > org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) > at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) >
Re: [Geoserver-users] User isolation in Geoserver
Hi Brian, I'm a bit short on time to help out at the minute. It sounds like you have a pretty clear bug report. I know the issue tracker is here: https://osgeo-org.atlassian.net/projects/GEOS/issues. If you'd like to report the bug yourself, you may need to ask for an account on this list. When I get a time in a day or two, I might be able to look at this one. Cheers, Jim On 02/15/2016 06:03 PM, Brian Farrell wrote: Jim, Well, I thought this was resolved, but a week of use by students and a script attempting to automate the process, I'm back with the same error. I've started with a clean installation of Geoserver. Below are the steps I took to set up Geoserver, steps to reproduce the bug, full error message, and build information. Workspace Isolation Bug Reproduction Instructions Setting up the environment 1. Clear all pre-loaded workspaces from geoserver 2. Create a workspace named ‘shared’ as the default workspace 3. Enable the ‘shared’ workspace 4. Create a workspace named ‘student0workspace’. Do not make it the default workspace 5. Enable the ‘student0workspace’ workspace 6. Add a new role named ‘student0role’ 7. Add a new user named ‘student0’ and give it the ‘student0role’ role. 8. Add three new data security rules that give ‘student0role’ read, write, and admin access to ‘student0workspace’. 9. Make sure the catalog mode is set to Hide. Reproducing the bug 1. Log in as ‘student0’ 2. Add a new shapefile store. Name it ‘states_store’ and publish the states.shp file under data > shapefiles 3. Click publish for the states layer 4. Fill in the Declared SRS and attempt to calculate the native bounding box (‘Compute from data’). The following error will occur in the geoserver error log (full error message at the end): “Error computing the native BBOX java.io.IOException: Schema 'student0workspace:states' does not exist.” Note: interestingly enough, if while stuck on step 4, the workspace configuration is re-opened and saved (even without any changes), the layer will publish properly (assuming a layer style is created in the workspace and selected under the publishing tab). 2016-02-15 17:41:06,628 ERROR [data.resource] - Error computing the native BBOX java.io.IOException: Schema 'student0workspace:states' does not exist. at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:621) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:393) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:687) at org.geoserver.catalog.ResourcePool.getFeatureSource(ResourcePool.java:1183) at org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureSource(FeatureTypeInfoImpl.java:125) at org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:561) at org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:543) at org.geoserver.web.data.resource.BasicResourceConfig$1.onSubmit(BasicResourceConfig.java:120) at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.servi
Re: [Geoserver-users] Error connecting to datastore on startup with multiple geoserver instances
The recommendation is not to have more than one GeoServer instance writing to the data directory ever! The outcome is pretty much undetermined once you do that. Look at using one of the clustering modules ( http://boundlessgeo.com/2013/04/geoserver-in-a-clustered-configuration-part-1/) or the JDBC config module ( http://docs.geoserver.org/stable/en/user/community/jdbcconfig/installing.html) Ian On 16 February 2016 at 12:24, Tiago Vieira wrote: > Hi, > > I have an issue with starting multiple geoserver instances. > I have 3 geoservers (version 2.3.5) in 3 different tomcats, using java > version "1.6.0_45". > All 3 have the same geoserver_data_dir. > > When geoservers starts up (all at the same time), one of the geoservers > keeps the datastore enable, and the others disable. > > There is any recomendation to start geoserver instances delayed? > One geoserver locks the geoserver_data_dir workspace, and the others can't > wait? > > Any ideia? > > Thank you in advanced. > > /*Tiago Vieira*/ > > > Logs: > > *Geoserver 1:* > 2016-01-19 14:55:55,104 main INFO [org.geoserver] - Loaded default > workspace inventory > 2016-01-19 14:55:55,127 main INFO [org.geoserver] - Loaded workspace 'OSP' > 2016-01-19 14:55:56,376 main INFO [org.geoserver] - Loaded store 'OSP', > enabled > 2016-01-19 14:55:56,407 main INFO [org.geoserver] - Loaded data store > 'OSP' > > *Geoserver 2:* > 2016-01-19 14:57:00,866 main WARN [org.geoserver] - Error connecting to > 'OSP'. Disabling. > 2016-01-19 14:57:00,869 main INFO [org.geoserver] - > java.io.IOException > at > org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:579) > at > > org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:37) > at > org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:354) > at > org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:226) > at > > org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:46) > at > > org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:114) > at > > org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:58) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > at > > org.springframework.beans.factory.support.AbstractBeanFactorygetObject(AbstractBeanFactory.java:294) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) > at > > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) > at > > org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) > at > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) > at > org.apache.catali
[Geoserver-users] Error connecting to datastore on startup with multiple geoserver instances
Hi, I have an issue with starting multiple geoserver instances. I have 3 geoservers (version 2.3.5) in 3 different tomcats, using java version "1.6.0_45". All 3 have the same geoserver_data_dir. When geoservers starts up (all at the same time), one of the geoservers keeps the datastore enable, and the others disable. There is any recomendation to start geoserver instances delayed? One geoserver locks the geoserver_data_dir workspace, and the others can't wait? Any ideia? Thank you in advanced. /*Tiago Vieira*/ Logs: *Geoserver 1:* 2016-01-19 14:55:55,104 main INFO [org.geoserver] - Loaded default workspace inventory 2016-01-19 14:55:55,127 main INFO [org.geoserver] - Loaded workspace 'OSP' 2016-01-19 14:55:56,376 main INFO [org.geoserver] - Loaded store 'OSP', enabled 2016-01-19 14:55:56,407 main INFO [org.geoserver] - Loaded data store 'OSP' *Geoserver 2:* 2016-01-19 14:57:00,866 main WARN [org.geoserver] - Error connecting to 'OSP'. Disabling. 2016-01-19 14:57:00,869 main INFO [org.geoserver] - java.io.IOException at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:579) at org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:37) at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:354) at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:226) at org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:46) at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:114) at org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:58) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactorygetObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.St
[Geoserver-users] what's the use of workspaces combo in WFS Page? (Version 2.8.1)
First things first. Thanks for all the previous answers, especially to Anrea...While playing with WFS settings, I noticed that In Services->WFS pagethere is a combo with a name Workspace. It's empty. What's the use of this combo? There is a service level option I can select basic or transactional support for WFS.How can I tune WFS settings according to layer/store?For example X layer should have basic WFS support. Y,Z layers should have transactional support. Thanks in advanceBulent -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] NullPointerException for dateFormat function
Hi Stefano, that's my guess as well. Some years ago David made an effort to make most filter functions null safe (null in, null out, instead of thowing a NPE) but I guess this one was not part of the lot Cheers Andrea On Tue, Feb 16, 2016 at 9:48 AM, Stefano Costa < stefano.co...@geo-solutions.it> wrote: > Hi Jonathan, > my guess is for some records the MY_DATE column is NULL... can you check? > > On Fri, Feb 12, 2016 at 5:00 PM, Jonathan Moules < > jonathan-li...@lightpear.com> wrote: > >> Hi List, >> (GeoServer 2.7.1) >> I'm trying to use the label feature to choose a label >> based on a date (newest feature is what gets labelled). As only >> accepts INTEGER, I was planning on using the dateFormat function >> ("yyMMddHHmmss"), and then parseInt on the result to get an integer version >> of the date. >> >> The problem is that dateFormat doesn't seem to be working for me. I'm >> sending it a DATE type (from Oracle). I'm getting a NullPointerException. >> >> This is the dateFormat function: >> >> MY_DATE >> yy >> >> >> Any thoughts? Is my function definition wrong? >> Cheers, >> Jonathan >> >> >> Full exception below: >> >> ERROR [renderer.label] - Error adding label to the label cache >> java.lang.NullPointerException >> at java.util.Calendar.setTime(Unknown Source) >> at java.text.SimpleDateFormat.format(Unknown Source) >> at java.text.SimpleDateFormat.format(Unknown Source) >> at java.text.DateFormat.format(Unknown Source) >> at >> org.geotools.filter.function.FilterFunction_dateFormat.evaluate(FilterFunction_dateFormat.java:72) >> at >> org.geotools.filter.expression.ExpressionAbstract.evaluate(ExpressionAbstract.java:65) >> at >> org.geotools.renderer.label.LabelCacheImpl.put(LabelCacheImpl.java:270) >> at >> org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2685) >> at >> org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:2585) >> at >> org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2409) >> at >> org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2113) >> at >> org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:832) >> at >> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:515) >> at >> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:258) >> at >> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:130) >> at org.geoserver.wms.GetMap.executeInternal(GetMap.java:504) >> at org.geoserver.wms.GetMap.run(GetMap.java:248) >> at org.geoserver.wms.GetMap.run(GetMap.java:119) >> at >> org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:369) >> at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at >> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) >> at >> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) >> at >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) >> at >> org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34) >> at >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) >> at >> org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:55) >> at >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) >> at >> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) >> at $Proxy74.getMap(Unknown Source) >> at sun.reflect.GeneratedMethodAccessor244.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:839) >> at >> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:280) >> at >> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) >> at >> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) >> at >> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) >> at >> org.springframework.web.servlet.DispatcherSer
Re: [Geoserver-users] NullPointerException for dateFormat function
Hi Jonathan, my guess is for some records the MY_DATE column is NULL... can you check? On Fri, Feb 12, 2016 at 5:00 PM, Jonathan Moules < jonathan-li...@lightpear.com> wrote: > Hi List, > (GeoServer 2.7.1) > I'm trying to use the label feature to choose a label based > on a date (newest feature is what gets labelled). As only > accepts INTEGER, I was planning on using the dateFormat function > ("yyMMddHHmmss"), and then parseInt on the result to get an integer version > of the date. > > The problem is that dateFormat doesn't seem to be working for me. I'm > sending it a DATE type (from Oracle). I'm getting a NullPointerException. > > This is the dateFormat function: > > MY_DATE > yy > > > Any thoughts? Is my function definition wrong? > Cheers, > Jonathan > > > Full exception below: > > ERROR [renderer.label] - Error adding label to the label cache > java.lang.NullPointerException > at java.util.Calendar.setTime(Unknown Source) > at java.text.SimpleDateFormat.format(Unknown Source) > at java.text.SimpleDateFormat.format(Unknown Source) > at java.text.DateFormat.format(Unknown Source) > at > org.geotools.filter.function.FilterFunction_dateFormat.evaluate(FilterFunction_dateFormat.java:72) > at > org.geotools.filter.expression.ExpressionAbstract.evaluate(ExpressionAbstract.java:65) > at > org.geotools.renderer.label.LabelCacheImpl.put(LabelCacheImpl.java:270) > at > org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2685) > at > org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:2585) > at > org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2409) > at > org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2113) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:832) > at > org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:515) > at > org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:258) > at > org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:130) > at org.geoserver.wms.GetMap.executeInternal(GetMap.java:504) > at org.geoserver.wms.GetMap.run(GetMap.java:248) > at org.geoserver.wms.GetMap.run(GetMap.java:119) > at > org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:369) > at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) > at > org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:55) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) > at $Proxy74.getMap(Unknown Source) > at sun.reflect.GeneratedMethodAccessor244.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:839) > at > org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:280) > at > org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) > at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) > at > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) > at > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at > o
Re: [Geoserver-users] Scale discrepancy between Web Mercator and BC-Albers
On Tue, Feb 16, 2016 at 12:05 AM, Martin Davis wrote: > Are you suggesting that GeoServer computes the scale at a single known > point for all map request extents, no matter where on the globe they are > located?Does the OGC standard specify this? > The OGC standard basically defines (brace yourself) an "cylindrical earth" model in the SLD specification, that's what GeoServer implements, at least for geographic coordinate systems. For projected ones it's the "flat map" scale one, measured in the projected coordinates, which is also very far away from a true scale (measured along a geodetic distance) especially at those latitudes and using that projection. If you really want to break the standards GeoServer gives you a hand by offering a vendor param to compute the scale in the accurate (geodetic) way: http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#scalemethod We normally use that for printouts :-) Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 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. --- -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users