[Geoserver-users] Problem Publishing PostGis Layer

Hello,

I created a workspace and a PostGis Store.
Now for publishing a layer (postgis table in this case).This is the problems i’m facing:

-The native CRS box is empty .
-As for the bounding boxes :
*when i click ’ Compute from data ’ it shows an error.
*when i click 'Compute from Native bounds’ , nothing shows.

Any help would be highly apreciated.

Thanks in advance.

Hi

You have to set Declared SRS. Click Find button to find if you don’t remember, or just type EPSG:nnnn to the Declared SRS-box where nnnn is the right number. After that “Compute…” will work.

Good luck!

Oiva Hakala, Natural Resources Institute, Finland

···

Lähettäjä: ELKHATTABI Imane imanekhtb@anonymised.com
Lähetetty: 6. toukokuuta 2015 12:15
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Problem Publishing PostGis Layer

Hello,

I created a workspace and a PostGis Store.
Now for publishing a layer (postgis table in this case).This is the problems i’m facing:

-The native CRS box is empty .
-As for the bounding boxes :
*when i click ’ Compute from data ’ it shows an error.
*when i click 'Compute from Native bounds’ , nothing shows.

Any help would be highly apreciated.

Thanks in advance.

Sorry, I did not notice your reply.

You also have to set SRS Handling to Force declared.

Other advice you have got personally

Oiva

···

Lähettäjä: ELKHATTABI Imane imanekhtb@anonymised.com
Lähetetty: 6. toukokuuta 2015 17:35
Vastaanottaja: Hakala Oiva (Luke)
Aihe: Re: [Geoserver-users] Problem Publishing PostGis Layer

Thank you Oiva for you reply.

However i set SRC of data as EPSG:4326 . And then click on

*'*Compute from Native bounds’ ,no results . AndCompute from data ’ shows this error :

I don’t know if i need to configure something.

2015-05-06 10:34 GMT+01:00 Hakala Oiva (Luke) <oiva.hakala@anonymised.com>:

Hi

You have to set Declared SRS. Click Find button to find if you don’t remember, or just type EPSG:nnnn to the Declared SRS-box where nnnn is the right number. After that “Compute…” will work.

Good luck!

Oiva Hakala, Natural Resources Institute, Finland

Lähettäjä: ELKHATTABI Imane <imanekhtb@anonymised.com>
Lähetetty: 6. toukokuuta 2015 12:15
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Problem Publishing PostGis Layer

Hello,

I created a workspace and a PostGis Store.
Now for publishing a layer (postgis table in this case).This is the problems i’m facing:

-The native CRS box is empty .
-As for the bounding boxes :
*when i click ’ Compute from data ’ it shows an error.
*when i click 'Compute from Native bounds’ , nothing shows.

Any help would be highly apreciated.

Thanks in advance.


Hi again.

I think the reason is the Postgis version. If I remember right I could not get Geoserver to understand Postgis-layer before the version 2.

My version is Postgis 2.0.3-2

Oiva

···

Lähettäjä: ELKHATTABI Imane imanekhtb@anonymised.com
Lähetetty: 7. toukokuuta 2015 12:29
Vastaanottaja: Hakala Oiva (Luke)
Aihe: Re: [Geoserver-users] Problem Publishing PostGis Layer

Hello Hakala,

Thank you for being so helpful.

Actually, the postgis extension is within the extensions.
This is my configuration: Windows7 , Geoserver 2.1, Postgresql 8.4 and Postgis 1.5.

I uploaded the shapefile using’ Postgis Shapefile and DBF Loader’.
While importing the shapefile into a table. I set SRID as EPSG 4326.
After that, I visualised it using QGis , it is displayed as a layer.

The problem still remains with publishing the postgis table into Geoserver.
At the end of the error message , it says :

ERROR" Caused by: java.io.IOException: Error occured calculating bounds at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1136) at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:469‌​)…Caused by: org.postgresql.util.PSQLException: ERREUR: the function envelope(box2d) doesn’t exixt " Indice : No function corresponds to the name given and to arguments types. You should add explicit type conversions "

2015-05-07 9:32 GMT+01:00 Hakala Oiva (Luke) <oiva.hakala@anonymised.com>:

Sorry, I did not notice your reply.

You also have to set SRS Handling to Force declared.

Other advice you have got personally

Oiva

Lähettäjä: ELKHATTABI Imane <imanekhtb@anonymised.com>
Lähetetty: 6. toukokuuta 2015 17:35
Vastaanottaja: Hakala Oiva (Luke)
Aihe: Re: [Geoserver-users] Problem Publishing PostGis Layer

Thank you Oiva for you reply.

However i set SRC of data as EPSG:4326 . And then click on

*'*Compute from Native bounds’ ,no results . AndCompute from data ’ shows this error :

I don’t know if i need to configure something.

2015-05-06 10:34 GMT+01:00 Hakala Oiva (Luke) <oiva.hakala@anonymised.com>:

Hi

You have to set Declared SRS. Click Find button to find if you don’t remember, or just type EPSG:nnnn to the Declared SRS-box where nnnn is the right number. After that “Compute…” will work.

Good luck!

Oiva Hakala, Natural Resources Institute, Finland

Lähettäjä: ELKHATTABI Imane <imanekhtb@anonymised.com>
Lähetetty: 6. toukokuuta 2015 12:15
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Problem Publishing PostGis Layer

Hello,

I created a workspace and a PostGis Store.
Now for publishing a layer (postgis table in this case).This is the problems i’m facing:

-The native CRS box is empty .
-As for the bounding boxes :
*when i click ’ Compute from data ’ it shows an error.
*when i click 'Compute from Native bounds’ , nothing shows.

Any help would be highly apreciated.

Thanks in advance.



Also my Postgres-version is 9.1 and Geoserver 2.5.4. But for sure at least Geoserver 2.3.1 works.

I think you should update both Posgresql and Postgis.

Oiva

···

Lähettäjä: ELKHATTABI Imane imanekhtb@anonymised.com
Lähetetty: 7. toukokuuta 2015 12:29
Vastaanottaja: Hakala Oiva (Luke)
Aihe: Re: [Geoserver-users] Problem Publishing PostGis Layer

Hello Hakala,

Thank you for being so helpful.

Actually, the postgis extension is within the extensions.
This is my configuration: Windows7 , Geoserver 2.1, Postgresql 8.4 and Postgis 1.5.

I uploaded the shapefile using’ Postgis Shapefile and DBF Loader’.
While importing the shapefile into a table. I set SRID as EPSG 4326.
After that, I visualised it using QGis , it is displayed as a layer.

The problem still remains with publishing the postgis table into Geoserver.
At the end of the error message , it says :

ERROR" Caused by: java.io.IOException: Error occured calculating bounds at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1136) at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:469‌​)…Caused by: org.postgresql.util.PSQLException: ERREUR: the function envelope(box2d) doesn’t exixt " Indice : No function corresponds to the name given and to arguments types. You should add explicit type conversions "

2015-05-07 9:32 GMT+01:00 Hakala Oiva (Luke) <oiva.hakala@anonymised.com>:

Sorry, I did not notice your reply.

You also have to set SRS Handling to Force declared.

Other advice you have got personally

Oiva

Lähettäjä: ELKHATTABI Imane <imanekhtb@anonymised.com>
Lähetetty: 6. toukokuuta 2015 17:35
Vastaanottaja: Hakala Oiva (Luke)
Aihe: Re: [Geoserver-users] Problem Publishing PostGis Layer

Thank you Oiva for you reply.

However i set SRC of data as EPSG:4326 . And then click on

*'*Compute from Native bounds’ ,no results . AndCompute from data ’ shows this error :

I don’t know if i need to configure something.

2015-05-06 10:34 GMT+01:00 Hakala Oiva (Luke) <oiva.hakala@anonymised.com>:

Hi

You have to set Declared SRS. Click Find button to find if you don’t remember, or just type EPSG:nnnn to the Declared SRS-box where nnnn is the right number. After that “Compute…” will work.

Good luck!

Oiva Hakala, Natural Resources Institute, Finland

Lähettäjä: ELKHATTABI Imane <imanekhtb@anonymised.com>
Lähetetty: 6. toukokuuta 2015 12:15
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Problem Publishing PostGis Layer

Hello,

I created a workspace and a PostGis Store.
Now for publishing a layer (postgis table in this case).This is the problems i’m facing:

-The native CRS box is empty .
-As for the bounding boxes :
*when i click ’ Compute from data ’ it shows an error.
*when i click 'Compute from Native bounds’ , nothing shows.

Any help would be highly apreciated.

Thanks in advance.



On Thu, May 7, 2015 at 1:13 PM, Hakala Oiva (Luke) <oiva.hakala@anonymised.com>
wrote:

Hi again.

I think the reason is the Postgis version. If I remember right I could
not get Geoserver to understand Postgis-layer before the version 2.

Hum.. when GeoServer 2.1 was released we did not have support for postgis
2, but we did have support for postgis 1.5 (as far as I remember)

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

-------------------------------------------------------