[Geoserver-devel] link urls to spatial attributes

Hi,

I am using geoserver and think that it is great - easy to set up and does everything that you've claimed that it should do. I am building a web mapping interface with mapbuilder and would like to expose points (stored in a point shapefile) which can be clicked on - directing the browser to the url stored in the shapefile attribute. I've done this in the past with the mapserver, and would like to do the same with geoserver/map builder. Does anyone have any experience building this sort of system? Thanks. John

I believe this is more of a question for mapbuilder - all we can really
do from the geoserver side is to have one of the attributes be a url.
I don't think mapbuilder quite supports this, but pretty easily could
with a bit of modification. I started playing with it a bit, got some
good advice on how to do it, but never finished it up. Mapbuilder
guys, you have a wiki tutorial for doing something like this yet?

Chris

Quoting John Harris <harris@anonymised.com>:

Hi,

I am using geoserver and think that it is great - easy to set up and
does everything that you've claimed that it should do. I am building
a
web mapping interface with mapbuilder and would like to expose points
(stored in a point shapefile) which can be clicked on - directing the
browser to the url stored in the shapefile attribute. I've done this
in
the past with the mapserver, and would like to do the same with
geoserver/map builder. Does anyone have any experience building this
sort of system? Thanks. John

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

Dave Blasby has a little demo that does what you want.

You have to deploy Geoserver with the 'tiger_and_apps' type selected. You will need the source code to do this:
    In build.properties, set value of test.type to tiger_and_apps
    For example: test.type=tiger_and_apps
    Save it.
    Run the ant script 'debug from ide' to build Geoserver.
    This will deploy with the extra data.

Run Geoserver, then go to http://localhost:8080/geoserver/data/popup.html

If you can't get that working, then take a look at the file I have attached. It does most the work.

Brent Owens
TOPP

John Harris wrote:

Hi,

I am using geoserver and think that it is great - easy to set up and does everything that you've claimed that it should do. I am building a web mapping interface with mapbuilder and would like to expose points (stored in a point shapefile) which can be clicked on - directing the browser to the url stored in the shapefile attribute. I've done this in the past with the mapserver, and would like to do the same with geoserver/map builder. Does anyone have any experience building this sort of system? Thanks. John

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

(attachments)

popup.html (27.2 KB)

Thanks Brent,

I looked at the mapbuilder api and the code and think that redirecting the browser to the url stored in the 'url' attribute of a shapefile is totally doable and I plan on doing it once I can successfully access the information in the shapefile via geoserver. I spent a couple hours trying to expose all the shapefile attributes through geoserver so that I could use the 'GetFeatureInfo' call to get the attributes. Everything seems fine -- my shapefile is exposed and all the attributes are showing up:

http://nebulous.msi.ucsb.edu:8080/geoserver/wfs?request=GetFeature&typename=topp:metacat_testdata

and I modified the mapbuilder wfs-t demo to show these data at:

http://nebulous.msi.ucsb.edu:8080/geoserver/data/mbdemos/demo/metacat_wfs/index.html

but, I can't seem to get the attributes of the shapefile to display -- infact when I hit the 'info' button there is no call at all made to the servlet.
my config.xml contains these lines:

<GetFeatureInfo id="getFeatureInfo">

     <buttonBar>mainButtonBar</buttonBar>

     <targetModel>mainMap</targetModel>
     <!-- <targetModel>featureCollection</targetModel> -->
                                                                                                             
     <context>mainMap</context>

     <mouseHandler>mainMouseClick</mouseHandler>

     <!-- <mouseHandler>mainAoi</mouseHandler> -->

     <class>RadioButton</class>

     <enabledSrc>/images/QueryEnable.gif</enabledSrc>

     <disabledSrc>/images/QueryDisable.gif</disabledSrc>

</GetFeatureInfo>

I've attached the config file and the metacat.xml file that is referenced. Is there a demo showing how to do this with geoserver? I noticed a really nice example at:

http://maps.hostgis.com/harbor/mapbuilder/demo/harbor2/

and looked at their code and it seems to be pretty much the same as mine (yet theirs uses mapserver). Thanks for your help. John

Brent Owens wrote:

Dave Blasby has a little demo that does what you want.

You have to deploy Geoserver with the 'tiger_and_apps' type selected. You will need the source code to do this:
   In build.properties, set value of test.type to tiger_and_apps
   For example: test.type=tiger_and_apps
   Save it.
   Run the ant script 'debug from ide' to build Geoserver.
   This will deploy with the extra data.

Run Geoserver, then go to http://localhost:8080/geoserver/data/popup.html

If you can't get that working, then take a look at the file I have attached. It does most the work.

Brent Owens
TOPP

John Harris wrote:

Hi,

I am using geoserver and think that it is great - easy to set up and does everything that you've claimed that it should do. I am building a web mapping interface with mapbuilder and would like to expose points (stored in a point shapefile) which can be clicked on - directing the browser to the url stored in the shapefile attribute. I've done this in the past with the mapserver, and would like to do the same with geoserver/map builder. Does anyone have any experience building this sort of system? Thanks. John

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

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

    OpenPlans.org Geoserver WFS/WMS Demonstration Application

Zoom Out
up
<
  >
down

      DEBUG LOG

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

I've started a Mapbuilder WFS tutorial at:
http://docs.codehaus.org/display/MAP/WFS+Tutorial

Let me know if it needs more information.

Chris Holmes wrote:

I believe this is more of a question for mapbuilder - all we can really
do from the geoserver side is to have one of the attributes be a url. I don't think mapbuilder quite supports this, but pretty easily could
with a bit of modification. I started playing with it a bit, got some
good advice on how to do it, but never finished it up. Mapbuilder
guys, you have a wiki tutorial for doing something like this yet?

Chris

Quoting John Harris <harris@anonymised.com>:

Hi,

I am using geoserver and think that it is great - easy to set up and
does everything that you've claimed that it should do. I am building
a
web mapping interface with mapbuilder and would like to expose points
(stored in a point shapefile) which can be clicked on - directing the
browser to the url stored in the shapefile attribute. I've done this
in
the past with the mapserver, and would like to do the same with
geoserver/map builder. Does anyone have any experience building this
sort of system? Thanks. John

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
mapbuilder-devel mailing list
mapbuilder-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

--
Cameron Shorter
http://cameron.shorter.net
http://mapbuilder.sourceforge.net