[Geomoose-users] GeoMOOSE Demo application - Can't find a way to display my layers -reg.

James Klassen klassen.js at gmail.com
Fri May 10 07:04:31 PDT 2013


Look at the projection and extents in the configuration section in
mapbook.xml and the projection in local_settings.ini

As a warning, layers like Google/Bing/OpenStreetMap tiles only work with
the demo projection/scales/max extent.  WMS layers will be fine in any
projection supported by the wms server.
On May 10, 2013 1:04 AM, "Jaisen Nedumpala" <jaisuvyas at gmail.com> wrote:

> Hi,
>
> I am Jaisen, new to GeoMOOSE.
> I was trying to make up my data with GeoMOOSE. As I am new, I did only
> minor changes in the demo application, as described in the documentation
> "How To Add Layers". But I couldn't visualise my data in GeoMOOSE. I don't
> understand where lies the problem. Please help me. What I did is described
> below:
>
> ------------------------------------------------
> Created /var/www/geo/geomoose-2.6.1/htdocs/projections/EPSG32643.js with
> content following:
>
> Proj4js.defs["EPSG:32643"] = "+proj=utm +zone=43 +ellps=WGS84 +datum=WGS84
> +units=m +no_defs +towgs84=0,0,0";
>
> Created /var/www/geo/geomoose-2.6.1/htdocs/projections/EPSG4326.js with
> content following:
>
> Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84
> +no_defs +towgs84=0,0,0";
>
> In /var/www/geo/geomoose-2.6.1/htdocs/geomoose.html
> Added following as line 59 and 60:
>
> <script type="text/javascript" src="projections/EPSG32643.js"></script>
> <script type="text/javascript" src="projections/EPSG4326.js"></script>
>
> In
> /var/www/geo/geomoose-2.6.1/maps/demo/statedata/basemap.map
> /var/www/geo/geomoose-2.6.1/maps/demo/parcels/parcels.map
> /var/www/geo/geomoose-2.6.1/maps/demo/wms/lmic.map
> /var/www/geo/geomoose-2.6.1/maps/demo/wms/usgs.map
> Added
> EPSG:32643 EPSG:4326
> for 'ows_srs' parameter in METADATA section.
>
> Created directory /var/www/geo/geomoose-2.6.1/maps/edavaka/landuse/
> placed landuse.map in it.
>
> Added following lines as line 100-104 to
> /var/www/geo/geomoose-2.6.1/conf/mapbook.xml
>
> <map-source name="Landuse" type="mapserver">
>         <file>./edavaka/landuse/landuse.map</file>
>         <layer name="landuse" status="on"/>
>         <param name="FORMAT" value="image/png;bits=8"/>
>     </map-source>
>
> Added following lines as 387-391 to
> /var/www/geo/geomoose-2.6.1/conf/mapbook.xml
>
>             <group title="Panchayat Layers" expand="false">
>                 <layer title="Land use" src="Landuse/landuse"
> metadata="true" legend="true" tip="Land use and land cover"
> show-legend="true">
>                 <metadata>http://www.geomoose.org/docs/</metadata>
>                 </layer>
>             </group>
>
> Content of landuse.map is follows:
> ---------------------
> MAP
>     NAME 'landuse'
>     SIZE 800 650
>     STATUS ON
>     EXTENT  600200.710627 1297963.898875 614053.022957 1305268.779057
>
>     UNITS METERS
>
>     INCLUDE "../../geomoose_globals.map"
>
>     WEB
>         METADATA
>             'ows_title' 'Land use Map'
>             'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:900913 EPSG:3857
> EPSG:32643 EPSG:4326'
>             'ows_enable_request' '*'
>             'ows_onlineresource' 'http://www.geomoose.org'
>         END
>     END
>
>     PROJECTION
>         'init=epsg:4326'
>     END
>
>     LEGEND
>           STATUS ON
>           LABEL
>         TYPE TRUETYPE
>         FONT vera_sans
>         SIZE 8
>         COLOR 0 0 0
>           END
>     END
>
>       LAYER
>         NAME landuse
>             CONNECTIONTYPE postgis
>             CONNECTION "dbname='mydb' host=localhost port=5432
> user='jaisen' password='mypassword' sslmode=allow"
>             DATA 'the_geom FROM "landuse" USING UNIQUE gid USING srid=4326'
>             STATUS ON
>         TYPE POLYGON
>         LABELITEM 'PIN'
>         LABELCACHE ON
>         LABELMAXSCALE 20000
>         FILTER ([PARC_CODE] == 1)
>
>         CLASS
>             NAME 'Landuse'
>             STYLE
>                 WIDTH 3
>                 COLOR -1 -1 -1
>                 OUTLINECOLOR 93 181 53
>                 MAXSCALEDENOM 15000
>             END
>             STYLE
>                 SIZE 1
>                 COLOR -1 -1 -1
>                 OUTLINECOLOR 33 106 43
>             END
>
>             LABEL
>                 TYPE TRUETYPE
>                 FONT vera_sans
>                 SIZE 8
>                 ANTIALIAS TRUE
>                 COLOR 0 0 0
>                 OUTLINECOLOR 254 254 200
>                 BUFFER 4
>                 MINFEATURESIZE auto
>                 PARTIALS FALSE
>                 POSITION cc
>             END
>         END
>
>
>
>         METADATA
>             # drill-down identify service record.
>                   'identify_record'    'templates/identify.html'
>
>             # query.php / "Search Parcels" functionality.
>             'itemquery'    'templates/search_result.html'
>             'itemquery-filter'    '/.*[qstring].*/i'
>             'qstring_validation_pattern' '.'
>
>             # Feature reports are stored in the conf/feature_report
> directory.
>             'feature_report' 'parcel.xml'
>
>                   'select_record'    'templates/select_result.html'
>             'select_header' 'templates/select_header.html'
>             'popups' 'parcels_popup.html'
>
>         END
>         TOLERANCE 0
>
>         END
>
> END ## end Map
> ---------------------
>
>
>
>
>
> --
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
> - നെടുമ്പാല ജയ്സെന്‍ -
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
>     (`'·.¸(`'·.¸^¸.·'´)¸.·'´)
> «´¨`·* .  Jaisen . *..´¨`»
>     (¸.·'´(`'·.¸ ¸.·'´)`'·.¸)
>     ¸.·´^.`'·.¸ ¸.·'´
>      ( `·.¸`·.¸
>       `·.¸ )`·.¸
>      ¸.·(´ `·.¸
>     ¸.·(.·´)`·.¸
>       ( `v´ )
>         `v´
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130510/1aa9ca0c/attachment-0001.html>


More information about the Geomoose-users mailing list