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

Jaisen Nedumpala jaisuvyas at gmail.com
Thu May 23 00:19:47 PDT 2013


Hi,
 I did multiple mistakes earlier, and hope I have corrected all of them.
Still the layer isn't get displayed. :(
The SRS was actually EPSG:32643, I used EPSG:2326 instead. I corrected it.
No more EPSG mixing up now. Now my settings are as follows:

(EPSG:32643 is +proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m
+no_defs +towgs84=0,0,0)

1. landuse.map has following lines:
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:32643'
    END

2. mapbook.xml has following lines:
<param name="projection">EPSG:3857</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>
Now where lies the problem? I couldn't get my layers displayed. What shall
I do now? Please help me.


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

> For the extents, you can use proj4, or QGIS to convert coordinates.   Or
> you can look at the X,Y coordinates shown in GeoMoose when you mouse over
> the corners of the area you want.  The format is min x, min y, max x, max y.
>
> You might want to set the initial extent too.
> On May 20, 2013 12:00 AM, "Jaisen Nedumpala" <jaisuvyas at gmail.com> wrote:
>
>> 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´
>>
>


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


More information about the Geomoose-users mailing list