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

Jaisen Nedumpala jaisuvyas at gmail.com
Sun May 19 22:00:40 PDT 2013


Hi,
  Sorry for this late reply, as I was busy with some other tasks. Returned
to this now only. My projection and extent settings are as follows:
1. Extends and SRS in Layer metadata as appeared in QGIS:
    Extents: In layer spatial reference system units : xMin,yMin
600731.56,1298462.88 : xMax,yMax 613935.62,1304759.25
    Layer Spatial Reference System: +proj=longlat +ellps=WGS84 +datum=WGS84
+no_defs
    (+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0
corresponds to EPSG:4326)

2. Projection and extents in the configuration section in mapbook.xml
         <param name="projection">EPSG:4326</param>
        <param name="zoomto"><![CDATA[
        {
            "Jump To:" : {
                "World" :
[-20614760.777156,1751325.1919492,-1927436.1053437,7915207.1517617],
                "Parcel Data" :
[-10384069.859924,5538318.529767,-10356632.423788,5563580.927174],
                "Full State of MN" : [-10742765,5398288,-9920914,6310641],
                "Village Panchayat" :
[-20614760.777156,1751325.1919492,-1927436.1053437,7915207.1517617]
            }
        }
        ]]></param>
(I used here the same extend for the World in demo, for my layer because I
don't know how to convert the extents in map file for the use of
mapbook.xml. How? I know that here I did a mistake, how to correct it?)

3. local_settings.ini has following values only:
[paths]
root=/var/www/geo/geomoose-2.6.1/maps/
mapserver_url=/cgi-bin/mapserv
temp=/var/www/geo/geomoose-2.6.1/out/

4. settings.ini has following values:
[defaults]
; Location of the default mapbook
mapbook=mapbook.xml
timezone=Asia/Kolkata

[map]
projection=EPSG:4326

[paths]
server_name=localhost

5. Map file landuse.map has following values:
    EXTENT  600731.56 1298462.88 613935.62 1304759.25
    UNITS METERS

    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

6. GeoMOOSE returns an error messge with these settings as follows:
X,Y: -12278844, 283734Lat, Lon: 283734.252, -12278844.225USNG: error
lat283734.25174401 must be between in (-90,90)... no playing at the poles,
yet

I am not at all playing at poles that I know.. :) Where it went wrong? How
to fix it? Can anybody help me?


2013/5/10 James Klassen <klassen.js at gmail.com>

> 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
>>
>>


-- 
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
- നെടുമ്പാല ജയ്സെന്‍ -
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
    (`'·.¸(`'·.¸^¸.·'´)¸.·'´)
«´¨`·* .  Jaisen . *..´¨`»
    (¸.·'´(`'·.¸ ¸.·'´)`'·.¸)
    ¸.·´^.`'·.¸ ¸.·'´
     ( `·.¸`·.¸
      `·.¸ )`·.¸
     ¸.·(´ `·.¸
    ¸.·(.·´)`·.¸
      ( `v´ )
        `v´
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130519/be361268/attachment.html>


More information about the Geomoose-users mailing list