Hello Ben,

I not able to set the bounding box of the layer. The system errors before I
get there.

I used the projection console and found a number of undefined coordinates
near the poles. Here are the projection definitions I have used. What is
working for others?

106843=PROJCS["Sinusoidal", GEOGCS["GCS_Undefined", DATUM["Undefined",
SPHEROID["User_Defined_Spheroid",6371007.181,0.0]],
PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]],
PROJECTION["Sinusoidal"], PARAMETER["False_Easting",0.0],
PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0],
UNIT["Meter",1.0]]

106844=PROJCS["MODIS Sinusoidal", GEOGCS["WGS 84", DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]], PROJECTION["Sinusoidal"],
PARAMETER["false_easting",0.0], PARAMETER["false_northing",0.0],
PARAMETER["central_meridian",0.0], PARAMETER["semi_major",6371007.181],
PARAMETER["semi_minor",6371007.181], UNIT["m",1.0],
AUTHORITY["SR-ORG","6974"]]

106842=PROJCS["Sinusoidal",GEOGCS["GCS_unnamed ellipse",
DATUM["D_unknown",SPHEROID["Unknown",6371007.181,0]], PRIMEM["Greenwich",0]
,UNIT["Degree",0.017453292519943295]],PROJECTION["Sinusoidal"],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]


On Mon, Nov 7, 2016 at 2:19 PM, Ben Caradoc-Davies <b...@transient.nz> wrote:

> [Please keep discussions on list so everyone can help and learn]
>
> David,
>
> this could be a loss-of-precision problem near a pole while calculating
> the WGS84 envelope. Please check that your layer bounding boxes are all
> set. It looks like it fails trying to get the WGS84 Lon/Lat envelope
> (CoverageStoreUtils.getWGS84LonLatEnvelope). You can cheat by setting the
> WGS84 envelope to -180/-90/180/90.
>
> If this does not work:
>
> What is the full line in your epsg.properties?
>
> Are you able to use the GeoServer projection console to project test
> points to and from your custom projection?
>
> You can see the GeoTools test script here (WKT and test points):
> https://github.com/geotools/geotools/blob/master/modules/lib
> rary/referencing/src/test/resources/org/geotools/referencing
> /test-data/scripts/Sinusoidal.txt
>
> Kind regards,
> Ben.
>
>
> On 08/11/16 04:32, David Haynes II wrote:
>
>> Hello Ben,
>>
>> I'm running into an error creating a layer that utilizes a sinusoidal
>> proejction from a PostGIS image mosaic store. I am using a custom
>> projection, which I entered into the epsg.properties file (
>> http://spatialreference.org/ref/sr-org/6842/prettywkt/)
>>
>> The Projection has also been added to PostgreSQL's spatial ref sys table
>> (select * from spatial_ref_sys where srid = 106842)
>>
>> I am able to create the store, but when publishing the layer I encounter
>> an
>> error. Something about the Angle being to high.
>> java.lang.IllegalArgumentException: Angle 1,280,316,222,051.039 is too
>> high.
>>
>> Here is the full stack trace.
>>
>> 2016-10-31 14:15:26,779 ERROR [wicket.RequestCycle] - Error occurred while
>> building the resources for the configuration page
>> java.lang.RuntimeException: Error occurred while building the resources
>> for
>> the configuration page
>> at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(
>> NewLayerPage.java:356)
>> at org.geoserver.web.data.layer.NewLayerPage$8.onClick(
>> NewLayerPage.java:281)
>> at org.geoserver.web.wicket.SimpleAjaxLink$1.onClick(SimpleAjax
>> Link.java:46)
>> at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLi
>> nk.java:68)
>> 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(WicketFil
>> ter.java:484)
>> at org.apache.wicket.protocol.http.WicketServlet.doGet(
>> WicketServlet.java:138)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> 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.
>> doGet(FrameworkServlet.java:778)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:303)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(
>> ThreadLocalsCleanupFilter.java:28)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(
>> SpringDelegatingFilter.java:75)
>> at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFi
>> lter.java:71)
>> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(
>> SpringDelegatingFilter.java:71)
>> at org.geoserver.filters.SpringDelegatingFilter.doFilter(
>> SpringDelegatingFilter.java:46)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.platform.AdvancedDispatchFilter.doFilter(
>> AdvancedDispatchFilter.java:50)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:311)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> at org.springframework.security.web.access.intercept.
>> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
>> at org.springframework.security.web.access.intercept.
>> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
>> GeoServerCompositeFilter.java:92)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> at org.springframework.security.web.access.ExceptionTranslationFilter.
>> doFilter(ExceptionTranslationFilter.java:113)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
>> GeoServerCompositeFilter.java:92)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.geoserver.security.filter.GeoServerAnonymousAuthenticati
>> onFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> at org.springframework.security.web.authentication.
>> AbstractAuthenticationProcessingFilter.doFilter(
>> AbstractAuthenticationProcessingFilter.java:182)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
>> GeoServerCompositeFilter.java:92)
>> at org.geoserver.security.filter.GeoServerUserNamePasswordAuthe
>> nticationFilter.doFilter(GeoServerUserNamePasswordAuthe
>> nticationFilter.java:116)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> at org.springframework.security.web.authentication.rememberme.
>> RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter
>> .java:146)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
>> GeoServerCompositeFilter.java:92)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> at org.springframework.security.web.context.SecurityContextPers
>> istenceFilt
>> er.doFilter(SecurityContextPersistenceFilter.java:87)
>> at org.geoserver.security.filter.GeoServerSecurityContextPersis
>> tenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
>> GeoServerCompositeFilter.java:92)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:323)
>> at org.springframework.security.web.FilterChainProxy.doFilter(
>> FilterChainProxy.java:173)
>> at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(
>> GeoServerSecurityFilterChainProxy.java:135)
>> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
>> DelegatingFilterProxy.java:346)
>> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(
>> DelegatingFilterProxy.java:259)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.SessionDebugFilter.doFilter(
>> SessionDebugFilter.java:48)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilt
>> er.java:44)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.springframework.web.filter.CharacterEncodingFilter.doFil
>> terInternal(
>> CharacterEncodingFilter.java:88)
>> at org.springframework.web.filter.OncePerRequestFilter.
>> doFilter(OncePerRequestFilter.java:76)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:208)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(
>> StandardWrapperValve.java:220)
>> at org.apache.catalina.core.StandardContextValve.invoke(
>> StandardContextValve.java:122)
>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
>> AuthenticatorBase.java:501)
>> at org.apache.catalina.core.StandardHostValve.invoke(
>> StandardHostValve.java:170)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(
>> ErrorReportValve.java:98)
>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa
>> lve.java:950)
>> at org.apache.catalina.core.StandardEngineValve.invoke(
>> StandardEngineValve.java:116)
>> at org.apache.catalina.connector.CoyoteAdapter.service(
>> CoyoteAdapter.java:408)
>> at org.apache.coyote.http11.AbstractHttp11Processor.process(
>> AbstractHttp11Processor.java:1041)
>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
>> process(AbstractProtocol.java:607)
>> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.
>> run(JIoEndpoint.java:315)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(
>> ThreadPoolExecutor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>> ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.IllegalArgumentException: Angle
>> 1,280,316,222,051.039
>> is too high.
>> at org.geotools.measure.AngleFormat.format(AngleFormat.java:703)
>> at org.geotools.measure.AngleFormat.format(AngleFormat.java:940)
>> at org.geotools.measure.AngleFormat.format(AngleFormat.java:865)
>> at org.geotools.measure.Angle.toString(Angle.java:165)
>> at java.text.MessageFormat.subformat(MessageFormat.java:1280)
>> at java.text.MessageFormat.format(MessageFormat.java:865)
>> at java.text.Format.format(Format.java:157)
>> at org.geotools.resources.IndexedResourceBundle.getString(
>> IndexedResourceBundle.java:491)
>> at org.geotools.resources.i18n.Errors.format(Errors.java:77)
>> at org.geotools.referencing.operation.projection.MapProjection.
>> verifyGeographicRanges(MapProjection.java:504)
>> at org.geotools.referencing.operation.projection.MapProjection.
>> access$000(
>> MapProjection.java:86)
>> at org.geotools.referencing.operation.projection.MapProjection$Inverse.
>> transform(MapProjection.java:1066)
>> at org.geotools.referencing.operation.projection.MapProjection$Inverse.
>> transform(MapProjection.java:1105)
>> at org.geotools.referencing.operation.transform.AbstractMathTransform.
>> transform(AbstractMathTransform.java:237)
>> at org.geotools.referencing.operation.transform.ConcatenatedTra
>> nsformDirect.
>> transform(ConcatenatedTransformDirect.java:67)
>> at org.geotools.referencing.CRS.transform(CRS.java:1340)
>> at org.geotools.referencing.CRS.transform(CRS.java:1408)
>> at org.geotools.referencing.CRS.transform(CRS.java:1246)
>> at org.geoserver.data.util.CoverageStoreUtils.getWGS84LonLatEnvelope(
>> CoverageStoreUtils.java:306)
>> at org.geoserver.catalog.CatalogBuilder.buildCoverage(
>> CatalogBuilder.java:917)
>> at org.geoserver.catalog.CatalogBuilder.buildCoverage(
>> CatalogBuilder.java:855)
>> at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(
>> NewLayerPage.java:346)
>> ... 105 more
>>
>> On Fri, Nov 4, 2016 at 3:14 PM, Ben Caradoc-Davies <b...@transient.nz>
>> wrote:
>>
>> David,
>>>
>>> what issues are you encountering? Are you trying to add a custom EPSG
>>> code
>>> for a sinusoidal projection? If so, what WKT are you using in your
>>> epsg.properties?
>>>
>>> GeoServer release announcements typically only include features that have
>>> been added. If it does not work, that is a bug, and we want to know.
>>>
>>> Kind regards,
>>> Ben.
>>>
>>>
>>> On 05/11/16 03:21, David Haynes II wrote:
>>>
>>> Hello list,
>>>>
>>>> I am encountering some issues creating a layer from a sinusoidal
>>>> projection, using Geoserver 2.8.3. According to the geoserver release
>>>> this
>>>> feature was added in 2.8 (
>>>> http://blog.geoserver.org/2015/05/29/geoserver-2-8-m0-released/) Has
>>>> this
>>>> been confirmed or should I try a new geoserver version.
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>> Developer Access Program for Intel Xeon Phi Processors
>>>> Access to Intel Xeon Phi processor-based developer platforms.
>>>> With one year of Intel Parallel Studio XE.
>>>> Training and support from Colfax.
>>>> Order your platform today. http://sdm.link/xeonphi
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Geoserver-users mailing list
>>>> Geoserver-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>>
>>>>
>>>> --
>>> Ben Caradoc-Davies <b...@transient.nz>
>>> Director
>>> Transient Software Limited <http://transient.nz/>
>>> New Zealand
>>>
>>>
>>
>>
>>
> --
> Ben Caradoc-Davies <b...@transient.nz>
> Director
> Transient Software Limited <http://transient.nz/>
> New Zealand
>



-- 
David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
612-626-3933
www.terrapop.org
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to