[Geoserver-users] wfs transaction insert

2019-04-16 Thread Eric Plassot via Geoserver-users

Hi

i am trying to write a wfs transaction in openlayers without success. I 
do not know what's wrong, geometry?
I tried to copy the example provided in the demonstration without 
further success:


xsi:schemaLocation="http://www.opengis.net/ows 
http://ip_address:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd;>exceptionCode="InvalidParameterValue">Error 
performing insert: Error inserting 
features


my try :
http://www.opengis.net/wfs;
  xmlns:cite="http://www.opengeospatial.net/cite;
  xmlns:gml="http://www.opengis.net/gml;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd 
http://www.opengeospatial.net/cite 
http://ip_address:8080/geoserver/wfs/DescribeFeatureType?typename=cite:administration;>

  
    
  
    http://www.opengis.net/gml; 
srsName="EPSG:2154">srsName="EPSG:3857">srsName="EPSG:2154">1033195.5041126036 
6284576.928642391 1033176.0281535687 6284534.392003635 
1033215.4422350351 6284544.237956143 1033195.5041126036 
6284576.928642391

  
    
  



the describeFeatuyreType
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:cite="http://www.opengeospatial.net/cite; 
xmlns:gml="http://www.opengis.net/gml/3.2; 
xmlns:wfs="http://www.opengis.net/wfs/2.0; 
elementFormDefault="qualified" 
targetNamespace="http://www.opengeospatial.net/cite;>
  http://www.opengis.net/gml/3.2; 
schemaLocation="ip_address:8080/geoserver/schemas/gml/3.2.1/gml.xsd"/>

  
    
  
    
  nillable="true" type="xsd:decimal"/>
  name="annee_prescription" nillable="true" type="xsd:int"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="gml:MultiSurfacePropertyType"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:int"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:decimal"/>
  nillable="true" type="xsd:decimal"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  nillable="true" type="xsd:string"/>
  name="statut_contractuel" nillable="true" type="xsd:string"/>
  name="statut_operationnel" nillable="true" type="xsd:string"/>

    
  
    
  
  substitutionGroup="gml:AbstractFeature" type="cite:administrationType"/>



The srs is EPSG:2154

the openlayers transaction does not work either :
var wfst = new ol.format.WFS({
    featureNS: "http://www.opengeospatial.net/cite;,
    featureType: "cite:administration"
});
var options = {
    srsName: "EPSG:2154",
    featureNS: "http://www.opengeospatial.net/cite;,
    featurePrefix:'cite',
    featureType: "cite:administration",
    gmlOptions:{featureNS: 
"http://www.opengeospatial.net/cite",featureType: 
"cite:administration",srsName: "EPSG:2154"}

};
    var node = wfst.writeTransaction(features2154,null,null,options);
    console.log('node',node);
    var s = new XMLSerializer();
    var str = s.serializeToString(node);

result str =

http://www.opengis.net/wfs; service="WFS" 
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>xmlns:cite="http://www.opengeospatial.net/cite;>xmlns="http://www.opengis.net/gml; 
srsName="EPSG:2154">srsName="EPSG:2154">srsDimension="2">1033187.4454 6284581.696198352 1033171.7481650712 
6284533.302464095 1033221.5049866531 6284544.554293833 1033187.4454 
6284581.696198352[object 
Object]


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Search Styles

2019-04-16 Thread Andrea Aime
Hi Olyster,
you can make the pull request yourself in the file in question, following
the suggested approach at
https://docs.geoserver.org/latest/en/docguide/quickfix.html
(it's for docs, but works for any other file on github really).

If a core dev had to make the same change, then they'd also have to write a
test to verify that the change works,
when an occasional contributor proposes the change, we  sometimes close an
eye on rules.

Cheers
Andrea

On Tue, Apr 16, 2019 at 4:01 PM Olyster  wrote:

> Andrea,
>
> thanks for your answer.
>
> You probably already know this but after debugging I found out that
> changing
> the line :
>
> org.geoserver.catalog.StyleInfo=filename,name
>
> for
>
> org.geoserver.catalog.StyleInfo=filename,name,workspace.name
>
> in CatalogPropertyAccessor_FullTextProperties.properties (contained in
> gs-main)
>
> did the trick.
>
> If anyone wants to update this file before the next release...
>
> Thanks
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == 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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Gridlines appearing with geoserver 2.15.0 and vector tiles

2019-04-16 Thread Andrea Aime
Hi Matt,
not sure, we are displaying lines and polygon in OpenLayers with a
GeoServer 2.16.x (nightly build) and have no such issue.
At this URL we have a proof of concept based on MapStore/OpenLayers and
displaying vector tiles with both SLD and MBStyle client side styling:

http://vtp2018.s3-eu-west-1.amazonaws.com/vtpext-wmts.html#/

When we created it, it was running against a 2.15.x and I don't remember
seeing border issues either.
The jump from 2.11 is a really long one, many changes went into the vector
tiles module in the meantime. Can you show what's going on in your client?

Cheers
Andrea

On Mon, Apr 15, 2019 at 3:09 AM Matt Hakim  wrote:

> Hi,
> We use openlayers and vector tiles to display features on the map.
> After upgrading to 2.15.0 and we apply a new style to highlight the
> feature, gridlines (or a gutter around the tiles) appears within the
> highlighted region. This is a change of behaviour from 2.11.
> Any ideas on what is causing the gridlines to appear?
> If we change the stroke width back to 1 the gridlines disappear.
>
> Regards,
> Matt.
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == 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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Search Styles

2019-04-16 Thread Olyster
Andrea,

thanks for your answer.

You probably already know this but after debugging I found out that changing
the line :

org.geoserver.catalog.StyleInfo=filename,name

for 

org.geoserver.catalog.StyleInfo=filename,name,workspace.name

in CatalogPropertyAccessor_FullTextProperties.properties (contained in
gs-main)

did the trick.

If anyone wants to update this file before the next release...

Thanks



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Search Styles

2019-04-16 Thread Andrea Aime
Hi Olyster,
if you're searching for a reason, I believe it's because the page was
created before styles could have a workspace (once upon a time, a style
could only be global),
and when the workspace support was added, the built-in page filtering was
likely not modified.
I'd open a ticket to track this issue.

Cheers
Andrea


On Fri, Apr 12, 2019 at 9:37 PM Olyster  wrote:

> Hi,
>
> is there a reason why the search on the styles page doesn't return results
> based on the workspace name ?
>
> Thanks
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == 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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] GeoServer should allow WMS to use dimension without units

2019-04-16 Thread Andrea Aime
On Mon, Apr 15, 2019 at 4:56 PM Seib Jürgen  wrote:

> Unfortunately, your external WMS server is not conformant to this OGC best
> practice. It is debatable whether GeoServer should allow the empty string
> for the 'units' attribute of an elevation dimension.
>

GeoServer is typically very tolerant with inputs, it has never played "OGC
Cop", not by default at least.
A code change that allows it to work with misconfigured units would be
welcomed, maybe with a flag to turn it off and have strict behavior

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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] GeoServer should allow WMS to use dimension without units

2019-04-16 Thread Rayman
Hi Jürgen,

Thanks for letting know the best practice, now I know the elevation
dimension should have units. 
I think I should contact the maintainer of the WMS server to modify the
Capabilities document, but before that I have a question: Does GeoServer
force all dimensions to have non-empty units?

If I change  "" to
"", will GeoServer still
throw a error?



  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Authenticate WFS-T

2019-04-16 Thread Vera Green
Thanks Graham, much appreciated.  I am having some issues with the ajax
solution.  It does authenticate but I believe perhaps at the webserver
level because after the authentication the credentials are cashed and I can
see layers after re-staring the browser and also from another work station.
After further reading I think I should be using REST for this instead.
Eric, sorry to hijack your question.
Vera

On Mon, Apr 15, 2019 at 4:09 PM Humphries, Graham (StateGrowth) <
graham.humphr...@stategrowth.tas.gov.au> wrote:

> Hi Vera,
>
>
>
> To allow CORS in Tomcat add the following to the bottom of the web.xml
> file in the $TOMCAT_HOME/conf directory
>
>  
>
>  CorsFilter
>
>
> org.apache.catalina.filters.CorsFilter
>
>  
>
>  cors.allowed.origins
>
>  *
>
>  
>
>  
>
>  
>
>  CorsFilter
>
>  /*
>
>  
>
>
>
> Hope this helps.
>
>
>
> Graham
>
>
>
> *From:* Vera Green [mailto:vera.green...@gmail.com]
> *Sent:* Tuesday, 16 April 2019 7:25 AM
> *To:* Eric Plassot 
> *Cc:* GeoServer Mailing List List 
> *Subject:* Re: [Geoserver-users] Authenticate WFS-T
>
>
>
> I managed to get the authentication to work as well.  Perhaps you could
> share how you did it for future reference.
>
> From leaflet I used ajax as per one of the links I provided:
>
>
>
> //this option uses the leaflet.wms.js plugin:
> https://github.com/heigeo/leaflet.wms
>
>
>
> var options_l = {'transparent': true,'tiled':
> true,'format': 'image/png'};
>
> var source_l = L.WMS.source("
> https://your_server:8080/geoserver/wms?;, options_l);
>
>
>
> var  myLayer  = source_l.getLayer(' myLayer  ');// Get
> the layer
>
> // myLayer  .addTo(map);  //Optionally add the layer to
> the map
>
> layerControl.addOverlay( myLayer, " My Layer ");
> //Optionally add the layer to the layer control - object must exist.
>
>
>
> // Assuming myLayer **WITHOUT** user:pass in the url
>
> // The result is that when the request is first made a login window is
> initiated allowing the user to authenticate into GeoServer.
>
> /*
>
> $.ajax({
>
> url:  myLayer.url,
>
> data:  myLayer.params,
>
> method: 'GET',
>
> error: function(jqXHR, textStatus, errorThrown){
>
> // Handle not authorised here
>
> alert("Could not authorise!");
>
> },
>
> success: function(){
>
> alert("Authorised!");
>
> // Yuppiee!
>
> //map.addLayer(myLayer);// The browser will
> set up the
>
>   // authentication in the
> request for you
>
> }
>
>
>
> });  */
>
>
>
> I am not certain exactly how this functions because after the initial
> login the credentials seam to be saved somewhere even when the page is
> reloaded and even when the browser is re-started.  I would like to
> understand where the credentials are stored.
>
>
>
> Now I am trying to enable CORES on tomcat as the next issue is a "No
> 'Access-Control-Allow-Origin' header is present on the requested resource."
> error.
>
> https://server.boundlessgeo.com/docs/latest/sysadmin/cors/index.html
>
>
>
> Cheers,
> Vera
>
>
>
> On Mon, Apr 15, 2019 at 2:56 PM Eric Plassot 
> wrote:
>
> hello
> I finally managed to authenticate myself
> now it's the content of the query that does not pass :
> org.geoserver.wfs.WFSException: Error performing insert: Error inserting
> features
> Yet I try to replicate the examples
>
> Le 15/04/2019 à 00:05, Vera Green a écrit :
>
> I have the same problem with leaflet and WMS. Same setup with data in
> postgreSQL, basic authentication and the Catalog Mode set to Challenge
> which I have read is required.
>
> This related post suggest the authentication should be "handled
> automatically" but this does not occur:
>
>
> https://gis.stackexchange.com/questions/227553/geoserver-rest-authentication-form
> 
>
> this post suggests using the fetch API although personally I was not able
> to implement this:
>
>
> https://gis.stackexchange.com/questions/284954/how-to-authenticate-wfs-requests-being-made-to-geoserver-through-openlayers-appl/285069
>
> This post is also related:
>
>
> https://stackoverflow.com/questions/51758817/how-to-authorize-accessing-the-geoserver-layers
>
> And then there is also this post:
>
>
> https://gis.stackexchange.com/questions/86790/authentication-in-geoserver-2-4-x-from-a-web-application/97448#97448
>
> Despite of this I am still unable to establish the link between GeoServer
> and Leaflet receiving the 401 error.  Note that if I am already logged into
> GeoSever then the WMS layer works fine, 

Re: [Geoserver-users] Publishing big geotiff files

2019-04-16 Thread Simone Giannecchini
Hi Erik,
please, find my feedback inline below...

Regards,
Simone Giannecchini
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services for more information.
==
Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
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

---
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.


On Tue, Apr 16, 2019 at 12:17 PM van Ingen, Erik 
wrote:

> Dear Geoserver community,
>
>
>
> This page
>
> https://geoserver.geo-solutions.it/edu/en/enterprise/raster.html#
> 
>
> suggests to use GDAL for preparing big GeoTiff files.
>
>
>
> A couple of related questions:
>
> · Does "consider BigTiff for large files (> 4 GB)"  imply Geotiff
> for < 4GB?
>

Yes


> · Is GDAL the best tool to use for preparing large GeoTiff files
> for publication in Geoserver? Are there alternatives?
>

Yes and Yes, however we do suggest GDAL even because most of the other
tools use GDAL behind the scenes, anyway.



> · Ideally we only push only the GeoTiff files with an SLD to
> Geoserver and do nothing more. Is there a way to automate as much as
> possible the publication of large GeoTiff files? What is the best practice
> to publish GeoTiff files up to 10GB? and to up to 20GB?
>

If they are independent layers you can use the REST API, if they somehow
part of a time series I would set up an ImageMosaic with an index in
Postgis and then use the harvesting API of the imagemosaic-- >
https://geoserver.geo-solutions.it/edu/en/multidim/rest/index.html

There is also a nice importer extension which has its own REST API and
which can also automated tasks like calling gdal_translate and gdal_addo on
the command line as part of an ingestion -->
https://docs.geoserver.org/stable/en/user/extensions/importer/rest_examples.html
.


>
>
> Kind Regards,
>
> Erik
>
>
>
>
>
>
>
>
>
> *Erik van Ingen*
>
> Digital Innovation Consultant
>
> Room A012
>
> Information and Communications Technology Division
>
> Via Paolo di Dono 44, 00142 Rome, Italy
>
> Mob. +39 3331311211
>
> www.ifad.org
>
> [image: cid:image001.png@01D495F9.EE4AC5A0]
>
> [image: cid:image002.png@01D495F9.EE4AC5A0]
> 
>
> [image: cid:image003.png@01D495F9.EE4AC5A0]
> 
>
> [image: cid:image004.png@01D495F9.EE4AC5A0] 
>
> [image: cid:image005.png@01D495F9.EE4AC5A0]
> 
>
> *[image: cid:image006.png@01D495F9.EE4AC5A0]* 
>
>
>
>
>
>
>
>
>
> ~~ The information contained in or accompanying this email and any
> attachment thereto, is intended solely for the use of the stated
> recipient(s) and may contain information that is confidential and/or
> privileged. Any dissemination, distribution or copying of this email and
> any attachment by anyone who is not a stated recipient is strictly
> prohibited. If you receive this message in error, please notify the sender
> immediately and delete the message and any attachment from your system
> without retaining a copy. ~~
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___

[Geoserver-users] Publishing big geotiff files

2019-04-16 Thread van Ingen, Erik
Dear Geoserver community,

This page
https://geoserver.geo-solutions.it/edu/en/enterprise/raster.html#
suggests to use GDAL for preparing big GeoTiff files.

A couple of related questions:

* Does "consider BigTiff for large files (> 4 GB)"  imply Geotiff for < 
4GB?

* Is GDAL the best tool to use for preparing large GeoTiff files for 
publication in Geoserver? Are there alternatives?

* Ideally we only push only the GeoTiff files with an SLD to Geoserver 
and do nothing more. Is there a way to automate as much as possible the 
publication of large GeoTiff files? What is the best practice to publish 
GeoTiff files up to 10GB? and to up to 20GB?

Kind Regards,
Erik




Erik van Ingen
Digital Innovation Consultant
Room A012
Information and Communications Technology Division
Via Paolo di Dono 44, 00142 Rome, Italy
Mob. +39 3331311211
www.ifad.org
[cid:image001.png@01D495F9.EE4AC5A0]

[cid:image002.png@01D495F9.EE4AC5A0]

[cid:image003.png@01D495F9.EE4AC5A0]

[cid:image004.png@01D495F9.EE4AC5A0]

[cid:image005.png@01D495F9.EE4AC5A0]

[cid:image006.png@01D495F9.EE4AC5A0]








~~ The information contained in or accompanying this email and any attachment 
thereto, is intended solely for the use of the stated recipient(s) and may 
contain information that is confidential and/or privileged. Any dissemination, 
distribution or copying of this email and any attachment by anyone who is not a 
stated recipient is strictly prohibited. If you receive this message in error, 
please notify the sender immediately and delete the message and any attachment 
from your system without retaining a copy. ~~
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] [App-Schema] SQL based datastores fail when targetValue is null [SEC=UNCLASSIFIED]

2019-04-16 Thread Sexton Michael
Hi

Following the instructions here: 
https://docs.geoserver.org/stable/en/user/data/app-schema/mapping-file.html#sql-based-data-stores

This is the relevant part of my mapping file:


er:sourceReference

eno
mv_er_sourcereference
eno



xlink:href
href


xlink:title
title
 


The er:sourceReference attribute doesn't take a string value, so the 
'targetValue' field is left blank, the same way you might do a simple source 
expression with a null OCQL value and client properties.

However, this throws an error:

java.lang.RuntimeException: java.lang.RuntimeException: Error applying mapping 
with targetAttribute er:sourceReference
java.lang.RuntimeException: Error applying mapping with targetAttribute 
er:sourceReference
Error applying mapping with targetAttribute er:sourceReference

Which in the logs is:


Caused by: java.lang.NullPointerException
   at 
org.geotools.data.complex.DataAccessMappingFeatureIterator.extractMultipleValues(DataAccessMappingFeatureIterator.java:909)
   at 
org.geotools.data.complex.DataAccessMappingFeatureIterator.setAttributeValue(DataAccessMappingFeatureIterator.java:653)
   at 
org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:1345)

Which in my debugger suggests it is this line of code:

https://github.com/geotools/geotools/blob/8805a4640f62a56e6158762856eeb49ed70f4644/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/DataAccessMappingFeatureIterator.java#L906

Object targetValue = jdbcMultipleValue.getTargetValue().evaluate(readFeature);

jdbcMultipleValue.getTargetValue() is null and therefore it throws an NPE

I'm not sure if this is a bug or by design, but my intent is to get multiple 
references linked by xlink:href and xlink:title

Thanks

Michael


Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is 
intended only for the person or entity to which it is addressed. If you are not 
the intended recipient, then you have received this e-mail by mistake and any 
use, dissemination, forwarding, printing or copying of this e-mail and its file 
attachments is prohibited. The security of emails transmitted cannot be 
guaranteed; by forwarding or replying to this email, you acknowledge and accept 
these risks.
-

___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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