Geoserver Poi Template:Displaying pictures

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Geoserver Poi Template:Displaying pictures

Nauwanga Nauwanga
Hello Everyone

I am seeking advise regarding displaying pictures in the popup.

I did create a popup and also changed the template as per this tutorial,

My challenge is I cannot find this directory being refered to here in Geoserver
workspaces/topp/DS_poi/poi

I am assuming it is this directory on my computer,
C:\Program Files (x86)\GeoServer 2.12.1\data_dir\workspaces\topp\states_shapefile\states

under this directory there are five files
description.ftl
featuretype.xml
layer.xml
title.ftl

I am hoping it is the featuretype.xml file being referred to in the tutorial? my question, where do I paste the code being referred to in this tutorial in the xml file? Can I display my pictures straight from the attribute table or I need to do some other settings.


Kindly advise, your assistance will be highly appreciated.

Regards
Amelia

The pictures I would like to display are stored in an attribute table.

This pictures have
On Fri, Apr 6, 2018 at 1:52 AM, Nauwanga Nauwanga <[hidden email]> wrote:
Hello list,

I wanted to say I did manage to get rid of the X Frame error

Here is the solution,

Thank you Dave for the hints,

On Tue, Apr 3, 2018 at 2:34 PM, Dave Potts <[hidden email]> wrote:
Cors issues normally need to be resolved by your web server.

There is a cors filter that needs to be enabled in the current version of tomcat. 
https://tomcat.apache.org/tomcat-8.0-doc/config/filter.html


In Spring is possible to turn a filter on.
see 



On 3 April 2018 at 09:19, Nauwanga Nauwanga <[hidden email]> wrote:
If there is anyone who can assist with setting proxy for Openlayer 4, I will really appreciate.

On Tue, Apr 3, 2018 at 9:55 AM, Nauwanga Nauwanga <[hidden email]> wrote:
Hi Andria,

Yes I am still busy researching, I believe I have found the solution which has to do with cross domain. I therefore need to set my proxy accordingly.

I am getting the error that says access to image has been blocked by CORS policy.

The real issue is now how to set proxy in Openlayer 4.

I have found some links with the setting but not working?

Here are some links with the solution

Still busy trying to get this figured and working.

Kind regards
Amelia


On Thu, Mar 29, 2018 at 11:07 AM, Andrea Aime <[hidden email]> wrote:
HI Amelia,
I see you got no answer here, maybe you should ask on the OpenLayers mailing list too?

Cheers
Andrea

On Wed, Mar 28, 2018 at 4:33 AM, Nauwanga Nauwanga <[hidden email]> wrote:
Hello Everyone

I am new to Web Mapping and I have been trying to get the feature info to work for my WMS when I group them with Openlayer. I am using Openlayer 4.

I am trying the following to no success

Thank you for your kind help.

Kind regards
Amelia

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


[hidden email]
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: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313
fax: <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272
mob: <a href="tel:+39%20339%20884%204549" value="+393398844549" target="_blank">+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.





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Geoserver Poi Template:Displaying pictures

Ian Turton


On 16 April 2018 at 17:06, Nauwanga Nauwanga <[hidden email]> wrote:
Hello Everyone

I am seeking advise regarding displaying pictures in the popup.

I did create a popup and also changed the template as per this tutorial,

My challenge is I cannot find this directory being refered to here in Geoserver
workspaces/topp/DS_poi/poi

That is a reference to the layer with the points of interest in the example - you should replace that with the <workspace> name of your data (for topp) and the name of your <DataStore> for DS_poi and the name of your <feature type> for poi


I am assuming it is this directory on my computer,
C:\Program Files (x86)\GeoServer 2.12.1\data_dir\workspaces\topp\states_shapefile\states

under this directory there are five files
description.ftl
featuretype.xml
layer.xml
title.ftl

I am hoping it is the featuretype.xml file being referred to in the tutorial? my question, where do I paste the code being referred to in this tutorial in the xml file? Can I display my pictures straight from the attribute table or I need to do some other settings.


Never, ever (even in fun) change the  featuretype.xml file it will break GeoServer's ability to display your data. You should be editing the content.ftl file


Ian


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Geoserver Poi Template:Displaying pictures

Nauwanga Nauwanga
Hello Ian,

Thank you for yesterday's recommendation I tried to work on it to no success.
Please advise where I am going wrong,
Also would like to mention that the pictures are stored in QGIS (hyperlinks) and would like the same to show below the list of attribute in openlayers (is this possible?).

Thank you for your help.

On Mon, Apr 16, 2018 at 6:33 PM, Ian Turton <[hidden email]> wrote:


On 16 April 2018 at 17:06, Nauwanga Nauwanga <[hidden email]> wrote:
Hello Everyone

I am seeking advise regarding displaying pictures in the popup.

I did create a popup and also changed the template as per this tutorial,

My challenge is I cannot find this directory being refered to here in Geoserver
workspaces/topp/DS_poi/poi

That is a reference to the layer with the points of interest in the example - you should replace that with the <workspace> name of your data (for topp) and the name of your <DataStore> for DS_poi and the name of your <feature type> for poi


I am assuming it is this directory on my computer,
C:\Program Files (x86)\GeoServer 2.12.1\data_dir\workspaces\topp\states_shapefile\states

under this directory there are five files
description.ftl
featuretype.xml
layer.xml
title.ftl

I am hoping it is the featuretype.xml file being referred to in the tutorial? my question, where do I paste the code being referred to in this tutorial in the xml file? Can I display my pictures straight from the attribute table or I need to do some other settings.


Never, ever (even in fun) change the  featuretype.xml file it will break GeoServer's ability to display your data. You should be editing the content.ftl file


Ian



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

ErrorTemp.JPG (31K) Download Attachment
content.ftl (866 bytes) Download Attachment