Hi.
This is part of my application.xml file in which the new layers are reg, 
province, comuni
<property name="layerUrls">
            <map>
                <!-- generic static layers -->
                <entry key="sat" 
value="http://onearth.jpl.nasa.gov/wms.cgi?layers=BMNG"/>
                <entry key="elevation" 
value="http://onearth.jpl.nasa.gov/wms.cgi?layers=srtmplus"/>
       
       
                <!-- to allow for offline borders
                <entry key="political" 
value="http://labs.metacarta.com/cgi-bin/mapserv?map=/www/labs/map/vmap0.map&amp;layers=basic"/>
                -->
                <entry key="political" 
value="http://localhost:8180/geoserver/wms?layers=who:WorldCountries2006"/>
                <entry key="placenames" 
value="http://labs.metacarta.com/wms/vmap0?layers=clabel,statelabel,ctylabel"/>
                <!-- to allow for offline borders
                <entry key="minimap" 
value="http://www2.demis.nl/mapserver/Request.asp?layers=Bathymetry,Countries,Topography,Hillshading,Borders"/>
                -->
                <entry key="minimap" 
value="http://localhost:8180/geoserver/wms?layers=who:WorldCountries2006"/>
                <!-- who specific layers -->
                <entry key="who:world" 
value="http://localhost:8180/geoserver/wms?layers=who:WorldCountries2006"/>
                <entry key="who:admin0" 
value="http://localhost:8180/geoserver/wms?layers=who:admin0"/>
                <entry key="who:admin1" 
value="http://localhost:8180/geoserver/wms?layers=who:admin1"/>
                <entry key="who:admin2" 
value="http://localhost:8180/geoserver/wms?layers=who:admin2"/>
                <entry key="who:admin3" 
value="http://localhost:8180/geoserver/wms?layers=who:admin3"/>
                <entry key="who:zm_adm1" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_adm1"/>
                <entry key="who:zm_adm2" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_adm2"/>
                <entry key="who:zm_adm3" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_adm3"/>
                <entry key="who:zm_adm4" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_adm4"/>
        <entry key="who:reg" 
value="http://localhost:8180/geoserver/wms?layers=who:reg"/>
        <entry key="who:province" 
value="http://localhost:8180/geoserver/wms?layers=who:province"/>
        <entry key="who:comuni" 
value="http://localhost:8180/geoserver/wms?layers=who:comuni"/>
                <!-- modifications by Phil for Zambia, modified roads to 
point to ZM layer
                <entry key="roads" 
value="http://localhost:8180/geoserver/wms?layers=who:main_roads"/>
                <entry key="clinics" 
value="http://localhost:8180/geoserver/wms?layers=who:clinics"/>
                added 
who:world,zm_adm1,zm_adm4,zm_roads,zm_lakes,HFC_GPC_ZAMBIA for clinics
                -->
                <entry key="roads" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_roads"/>
                <entry key="lakes" 
value="http://localhost:8180/geoserver/wms?layers=who:zm_lakes"/>
                <entry key="clinics" 
value="http://localhost:8180/geoserver/wms?layers=who:HFC_GPS_ZAMBIA"/>
            </map>
        </property>

This is mapping.xml file:
<util:map id="locationToLayerMap">
        <entry key="[Location].[(All)]" value="who:admin0"/>
        <entry key="[Location].[OrgUnit1]" value="who:admin0"/>
        <entry key="[Location].[Province]" value="who:admin1"/>
        <entry key="[Location].[OrgUnit2]" value="who:zm_adm1"/>
        <entry key="[Location].[OrgUnit3]" value="who:zm_adm2"/>
        <entry key="[Location].[OrgUnit4]" value="who:zm_adm3"/>
      <entry key="[Location].[OrgUnit5]" value="who:reg"/>
      <entry key="[Location].[OrgUnit6]" value="who:province"/>
      <entry key="[Location].[OrgUnit7]" value="who:comuni"/>
    </util:map>

    <util:map id="locationToGeocodedPropertyNameMap">
        <entry key="[Location].[(All)]" value="LVLID"/>
        <entry key="[Location].[OrgUnit1]" value="LVLID"/>
        <entry key="[Location].[Province]" value="LVLID"/>
        <entry key="[Location].[OrgUnit2]" value="LVLID"/>
        <entry key="[Location].[OrgUnit3]" value="LVLID"/>
      <entry key="[Location].[OrgUnit5]" value="cod_reg"/>
      <entry key="[Location].[OrgUnit6]" value="cod_pro"/>
      <entry key="[Location].[OrgUnit7]" value="pro_com"/>
    </util:map>

If I set one new layer as "generic layer" (e.g. sostiution with 
elevation layer) I am able to display it, but if I new layer as "who 
specific layer" I am not able to display it\them.
Why?


Knut Staring ha scritto:
> That being said, it would be possible to use this method to import 
> data to DHIS 1.4, and then import the 1.4 database into DHIS 2.0.
>
> Knut
>
> On Wed, Oct 29, 2008 at 11:05 AM, Ola Hodne Titlestad 
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>     I was just saying that we need this functionality, not that it was
>     already implemented. So at the moment the only way to add orgunits
>     is one by one through the GUI or by inserting directly into the
>     database (and manually take care of the source table).
>
>
>     On Wed, Oct 29, 2008 at 11:47 AM, Fabio D'Ovidio
>     <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>         Hello.
>         I created with kettle an XLS file like this:
>         organisationunitid    geocode    name    shortname    parentid
>         14775    1    PIEMONTE    PIEMONTE    14775
>         14776    2    VALLE D'AOSTA    VALLE D AOSTA    14776
>         14777    3    LOMBARDIA    LOMBARDIA    14777
>         14778    4    TRENTINO-ALTO ADIGE    TRENTINO-ALTO ADIGE    14778
>         14779    5    VENETO    VENETO    14779
>         14780    6    FRIULI VENEZIA GIULIA    FRIULI VENEZIA GIULIA  
>          14780
>         14781    7    LIGURIA    LIGURIA    14781
>         14782    8    EMILIA-ROMAGNA    EMILIA-ROMAGNA    14782
>         14783    9    TOSCANA    TOSCANA    14783
>         14784    10    UMBRIA    UMBRIA    14784
>         14785    11    MARCHE    MARCHE    14785
>         14786    12    LAZIO    LAZIO    14786
>         14787    13    ABRUZZO    ABRUZZO    14787
>         14788    14    MOLISE    MOLISE    14788
>         14789    15    CAMPANIA    CAMPANIA    14789
>         14790    16    PUGLIA    PUGLIA    14790
>         14791    17    BASILICATA    BASILICATA    14791
>         14792    18    CALABRIA    CALABRIA    14792
>         14793    19    SICILIA    SICILIA    14793
>         14794    20    SARDEGNA    SARDEGNA    14794
>
>         I try to import from dhis GUI but it doesn't work.
>         In the log file the error is:
>         29-ott-2008 9.21.51 org.apache.catalina.startup.Catalina start
>         INFO: Server startup in 102580 ms
>         * ERROR 09:38:42,359 Content-Type not allowed: upload
>         "upload_41f21e5d_11d47c12f3a__8000_00000001.tmp"
>         application/vnd.ms-excel (FileUploadInterceptor.java
>         [http-8180-1])
>         * WARN  09:38:51,890 Item is a file upload of 0 size, ignoring
>         (JakartaMultiPartRequest.java [http-8180-1])
>         * ERROR 09:39:12,843 Content-Type not allowed: upload
>         "upload_41f21e5d_11d47c12f3a__8000_00000011.tmp"
>         application/vnd.ms-excel (FileUploadInterceptor.java
>         [http-8180-1])
>         * ERROR 09:40:51,781 Content-Type not allowed: upload
>         "upload_41f21e5d_11d47c12f3a__8000_00000016.tmp"
>         application/vnd.ms-excel (FileUploadInterceptor.java
>         [http-8180-1])
>
>         Ola Hodne Titlestad ha scritto:
>         > Hi,
>         >
>         > I related comment is that we need to have some kind of batch
>         insert of
>         > new orgunits available from the orgunit gui.
>         > E.g import from an excel file on a pre-defined format could
>         work, and
>         > has been used successfully  in DHIS 1. This will save the
>         admins huge
>         > amounts of time when setting up new orgunit hierarchies.
>         >
>         > The format could e.g be:
>         >
>         > parentname name shortname code geocode
>         >
>         > Then the java code will take care of the relationship to
>         source and
>         > input validation etc.
>         >
>         > Ola
>         > -----------
>         >
>         >
>         > On Tue, Oct 28, 2008 at 6:21 PM, Lars Helge Øverland
>         > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>         <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>         >
>         >
>         >
>         >
>         >
>         >         Must I operate before on source table and insert
>         sourceID ?
>         >
>         >
>         >     Sorry didn't catch that. Yes, in the java code Source is a
>         >     superclass for OrganisationUnit. So each entry in the
>         >     organisationunittable must have a  corresponding entry
>         (id) in the
>         >     source table.
>         >
>         >
>         >
>         >     _______________________________________________
>         >     Dhis-users mailing list
>         >     [email protected] <mailto:[email protected]>
>         <mailto:[email protected] <mailto:[email protected]>>
>         >     http://www.hisp.info/mailman/listinfo/dhis-users
>         >
>         >
>         >
>         >
>         > --
>         > best regards,
>         > Ola Hodne Titlestad
>         > HISP
>         > University of Oslo
>         >
>         
> ------------------------------------------------------------------------
>         >
>         > _______________________________________________
>         > Dhis-users mailing list
>         > [email protected] <mailto:[email protected]>
>         > http://www.hisp.info/mailman/listinfo/dhis-users
>         >
>
>         --
>         Fabio D'Ovidio
>         Geospatial solutions
>
>         INOVA s.r.l.
>         Web : http://www.inovaos.it
>         Tel.: 081 197 57 600
>         mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>         _______________________________________________
>         Dhis-users mailing list
>         [email protected] <mailto:[email protected]>
>         http://www.hisp.info/mailman/listinfo/dhis-users
>
>
>
>
>     -- 
>     best regards,
>     Ola Hodne Titlestad
>     HISP
>     University of Oslo
>
>     _______________________________________________
>     Dhis-users mailing list
>     [email protected] <mailto:[email protected]>
>     http://www.hisp.info/mailman/listinfo/dhis-users
>
>
>
>
> -- 
> Cheers,
> Knut Staring
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dhis-users mailing list
> [email protected]
> http://www.hisp.info/mailman/listinfo/dhis-users
>   

-- 
Fabio D'Ovidio
Geospatial solutions

INOVA s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]

_______________________________________________
Dhis-users mailing list
[email protected]
http://www.hisp.info/mailman/listinfo/dhis-users

Reply via email to