[Geomoose-users] Install Geomoose

Christopher Hughes chughes at co.lincoln.or.us
Tue Feb 4 08:11:54 PST 2020


Hi Lara,

To change your scaleline to metric try finding and changing this parameter
in your app.js file:

var app = new gm3.Application({
    mapserver_url: CONFIG.mapserver_url,
    mapfile_root: CONFIG.mapfile_root,
    map: {
        scaleLine: {
            enabled: true,
            units: 'imperial'
        }
    }
});

You should just have to change 'imperial' to 'metric'.

Chris



On Mon, Feb 3, 2020 at 11:54 PM Lara Perez- Jefa Departamento Cartografia y
Topografia Ayuntamiento Oliva (Valencia) Spain <topografia at oliva.es> wrote:

> Hi everyone. I have finally found the answer:
> To work with EPSG: 25830, I added the projection to the files
> common_metadata.map, I modified the geomoose_globals.map and the app.js.
> The solution:
>
> common_metadata.map
> # Useful global metadata settings,
> # enabled all WxS requests, sets common projections,
> # and defaults to JSON for default wms_feature_info
> #
>
> 'ows_enable_request' '*'
> 'ows_srs' 'EPSG: 25830 EPSG: 4326 EPSG: 3857'
> 'wfs_srs' 'EPSG: 25830 EPSG: 4326 EPSG: 3857'
> 'wms_feature_info_mime_type' 'application / json'
>
> geomoose_globlas.map
> # A convienent place to setup a bunch of defaults for MapServer
> # so they don't need to be set in every mapfile.
> PROJECTION
>                         ;"init = epsg: 25830"
> END
> EXTENT 746000 4304950 758100 4314500
>
> app.js:
> app.loadMapbook({url: 'mapbook.xml'}).then(function() {
>     // set the default view.
>     app.setView({
>         center: [ -10682 , 4708000 ],
>         zoom:13
>     });
>
>    app.addProjection({
>         ref: 'EPSG:25830',
>         def: '+proj=utm +zone=30 +ellps=GRS80 +datum=NAD83 +units=m
> +no_defs'
>     });
>
> app.registerAction('fullextent', ZoomToAction, {
>         extent: [-18500,4702000,-3000,4715000]
>     });
>
> var point_projections = [
>         {
>             label: 'UTM ETRS 89',
>             ref: 'EPSG:25830'
>         },
>         {
>             label: 'X Y: ',
>             ref: 'xy'
>         },
>         {
>             label: 'Lat,Lon',
>             ref: 'latlon'
>         }
>     ];
>
> app.add(gm3.components.JumpToExtent, 'jump-to-extent', {
>         locations:  [
>             {
>                 label: 'Termino Municipal',
>                 extent: [-18500,4702000,-3000,4715000]
>             },
>             {
>                 label: 'Casco Urbano',
>                 extent: [-14600,4708500,-11690,4711200]
>             },
>             {
>                 label: 'Playas',
>                 extent: [-12900,4708190,-6912,4713700]
>             }
>         ]
>     });
>
> Notaci that coordinates for the view are in X,Y, not in UTMETRS89....
>
> Now I would like to know how to change the scalebar units ... still in
> miles ...
>
> --
> <http://oliva.es/es/>
> *Cap del Departament de Cartografia i Topografia*
> Lara Perez Bessone
> Enginyera Tecnica Topografa Municipal
> email: topografia at oliva.es Tel. mòvil: 647 835 086 ext. 521
>
> *Ajuntament d'Oliva - València*
> Plaça del Ajuntament 1, 46780 Oliva
> Tel. 962850250 Fax 962855165 www.oliva.es
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users



-- 
Chris Hughes

GIS Analyst
Lincoln County Surveyor Department
880 NE 7th St. l Newport, OR 97365
Tel: (541) 574 1283
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20200204/dd3d9936/attachment.html>


More information about the Geomoose-users mailing list