Code Monkey home page Code Monkey logo

geofuse's Introduction

Prerequisites

To Install

  • download the source code and build a WAR file using Maven
  mvn clean install
  • copy the created WAR file into tomcat_dir/webapps directory
  • start tomcat

Configure PostgreSQL

  • create a database and install PostGIS
  createdb geofuse
  psql -c "CREATE EXTENSION postgis" geofuse
  psql -c "CREATE EXTENSION postgis_topology" geofuse
  • create the schemas that will contain the dummy and metadata tables found in createtabs.sql
  psql -f createtabs.sql geofuse
  • create the deltemp function that will delete the temporary files
  psql -f deltemp.sql geofuse
  • add map layers (polygons/lines/points) which will later be used for thematics. it will be best to place the table into the created "geodata" schema.

Configure GeoServer

  • Create a Workspace named geofuse alt text

  • Create a new PostGIS DataStore alt text

  • Name the new Store as geofuse and set the database parameter to the geofuse database created. Set the schema parameter to geodata alt text

  • Create a new SQL View Layer alt text

  • Set the layer name as geolink and the SQL Statement as

  select a.*,the_geom from %linktab% a,%maptab% b where a.col0 = b.%mapcol%
  • Set the View Parameters to the values below and erase the values of the Validation regular expression (正規表現を検証)
  linktab = geodata.dummy
  maptab  = geodata.mapdummy
  mapcol  = mapcol

alt text

  • Press the Refresh button to update the Columns list. Change the SRID of the the_geom column to 4326 and press the Save Button. alt text

  • After Pressing the Save button, set the Bounding Box Parameters to -180 -90 180 90 in the main layer creation page and then Save. alt text

  • Create another SQL View Layer using the procedure set above. Set the layer name as geolink_pt and the SQL Statement as below

  select * from %linktab%
  • Set the View Parameters to the values below and erase the values of the Validation regular expression (正規表現を検証)
  linktab = geodata.dummy_pt
  • Press the Refresh button to update the Columns list. Change the Geometry Type to Point and the SRID of the the_geom column to 4326 and press the Save Button. alt text

  • After Pressing the Save button, set the Bounding Box Parameters to -180 -90 180 90 in the main layer creation page and then Save.

Populate the MapLinker table in PostgreSQL

Insert the following for each map layer that will be used to create thematic

  • link colunm (i.e. 'prefocode)
  • Map table name with schema (i.e. 'geodata.prefectures')
  • created geoserver view name (i.e. 'geofuse:geolink')
  • type of layer (i.e. 'polygon'))
    insert into geofuse.maplinker values ('prefcode', 'geodata.prefecture', 'geofuse:geolink', 'polygon');

To View Geofuse

In your browser, go to http://localhost:8080/geofuse/

NOTE: This application will try to get only metric (numeric) fields to display in the Thematic attribute list. For numeric ID fileds (i.e. Prefecture-ID,Country-ID,etc.), add a suffix "-ID" to the fieldname so that it will not show in the attribute list.

To Customize:

  tomcat_dir/webapps/GeoFuse/classes/properties/
      database.propertiess
      thematic.properties

Adding new postgis table

Adding new background layer for printing

Adding new colorscheme

/webapps/geothematics/WEB-INF/classes/properties/thematic.properties

NOTE: the ColorNames and Colors should have equal number of items, otherwise no color choices will appear in the Colors list of the web page.

License

Released under GPL.

geofuse's People

Contributors

mbasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

geofuse's Issues

Downloading data [Feature request]

A way for others to download data. For example:

  • Download the raw data.
  • Download the data including the geometry. For example the administrative polygon that includes the attributes from the raw data.

Is this possible using Geoserver's WFS capability?

"Identify" features

The usual behavior of clicking a feature and the balloon attribute appears.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.