[GeoNetwork-users] Re: Can't display WMS map images on GE 5.0

Hello.

  I found the reason for following error in latest
Google Earth 5.0.

  GE 5.0 requires "LatLonBox" in KML file as follows.

  <LatLonBox>
     <north>50</north>
     <south>16</south>
     <east>155</east>
     <west>122</west>
   </LatLonBox>

  My idea to solve this case, kml.xsl(line:116-125) in
<\geonetwork\web\geonetwork\xsl> should be modefied.

  Is this idea correct?

  Does anyone tell me about this solution if
possible?

  Best regards.

--- Hisaji ONO <hi_ono2001@anonymised.com> wrote:

> Hello.
>
> I have tried to display WMS map images by
> GeoNetwork
> 2.2.0 on GE 5.0, but can't display image, only
> legend
> image. And I also tried WMS map images on FAO's
> geonetwork
>
site(http://www.fao.org/geonetwork/srv/en/main.home)
> and
> these images can't be displayed on GE 5.0, too.
>
> Does anyone know how to solve this case?
>
>
> Regards.
>
>
>

Hi,

I am having the same problem, were you able to get this to by editing the
kml.xsl? I tried your idea but I still have the problem with the data being
displayed. Here's what part of my kml.xsl looks like:

<GroundOverlay>
  <name><xsl:value-of select="@title"/></name>
  <Icon>
      <LatLonBox>
      <north>50</north>
      <south>45</south>
      <east>96</east>
      <west>105</west>
       </LatLonBox>
    <href><xsl:value-of select="@href"/>......</href>
    <viewRefreshMode>onStop</viewRefreshMode>
    <viewRefreshTime>3</viewRefreshTime>
    <viewBoundScale>1.0</viewBoundScale>
  </Icon>

Regards, Bob

Hisaji ONO wrote:

Hello.

  I found the reason for following error in latest
Google Earth 5.0.

  GE 5.0 requires "LatLonBox" in KML file as follows.

  <LatLonBox>
     <north>50</north>
     <south>16</south>
     <east>155</east>
     <west>122</west>
   </LatLonBox>

  My idea to solve this case, kml.xsl(line:116-125) in
<\geonetwork\web\geonetwork\xsl> should be modefied.

  Is this idea correct?

  Does anyone tell me about this solution if
possible?

  Best regards.

--- Hisaji ONO <hi_ono2001@anonymised.com> wrote:

> Hello.
>
> I have tried to display WMS map images by
> GeoNetwork
> 2.2.0 on GE 5.0, but can't display image, only
> legend
> image. And I also tried WMS map images on FAO's
> geonetwork
>
site(http://www.fao.org/geonetwork/srv/en/main.home)
> and
> these images can't be displayed on GE 5.0, too.
>
> Does anyone know how to solve this case?
>
>
> Regards.
>
>
>

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2742370.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

Hello.

Currenly I could display WMS images on GE 5.0 with
attached modified kml.xsl.

This modification is to just add following fragement.

<!-- modifications start-->
<xsl:template name="latlonbox" match="*">
  
    <LatLonBox>
      <north><xsl:value-of select="northBL" /></north>
      <south><xsl:value-of select="southBL" /></south>
      <east><xsl:value-of select="eastBL" /></east>
      <west><xsl:value-of select="westBL" /></west>
    </LatLonBox>
   
  </xsl:template>
<!-- modifications end -->

</xsl:stylesheet> <!-- last part of kml.xsl -->

Please try this.

Regards.

--- Bob Nutsch <bnutsch@anonymised.com> wrote:

Hi,

I am having the same problem, were you able to get
this to by editing the
kml.xsl? I tried your idea but I still have the
problem with the data being
displayed. Here's what part of my kml.xsl looks
like:

<GroundOverlay>
  <name><xsl:value-of select="@title"/></name>
  <Icon>
      <LatLonBox>
      <north>50</north>
      <south>45</south>
      <east>96</east>
      <west>105</west>
       </LatLonBox>
    <href><xsl:value-of select="@href"/>......</href>
    <viewRefreshMode>onStop</viewRefreshMode>
    <viewRefreshTime>3</viewRefreshTime>
    <viewBoundScale>1.0</viewBoundScale>
  </Icon>

Regards, Bob

Hisaji ONO wrote:
>
> Hello.
>
> I found the reason for following error in latest
> Google Earth 5.0.
>
> GE 5.0 requires "LatLonBox" in KML file as
follows.
>
> <LatLonBox>
> <north>50</north>
> <south>16</south>
> <east>155</east>
> <west>122</west>
> </LatLonBox>
>
>
> My idea to solve this case,
kml.xsl(line:116-125) in
> <\geonetwork\web\geonetwork\xsl> should be
modefied.
>
>
> Is this idea correct?
>
>
> Does anyone tell me about this solution if
> possible?
>
>
> Best regards.
>
>
>> --- Hisaji ONO <hi_ono2001@anonymised.com> wrote:
>>
>> > Hello.
>> >
>> > I have tried to display WMS map images by
>> > GeoNetwork
>> > 2.2.0 on GE 5.0, but can't display image, only
>> > legend
>> > image. And I also tried WMS map images on
FAO's
>> > geonetwork
>> >
>>
site(http://www.fao.org/geonetwork/srv/en/main.home)
>> > and
>> > these images can't be displayed on GE 5.0,
too.
>> >
>> > Does anyone know how to solve this case?
>> >
>> >
>> > Regards.
>> >
>> >
>> >
>>
>>
>
>
>

------------------------------------------------------------------------------

> Apps built with the Adobe(R) Flex(R) framework and
Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform
capabilities. Quickly and
> easily build your RIAs with Flex Builder, the
Eclipse(TM)based development
> software that enables intelligent coding and
step-through debugging.
> Download the free 60 day trial.
http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
>

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
>

--
View this message in context:

http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2742370.html

Sent from the geonetwork-users mailing list archive
at Nabble.com.

------------------------------------------------------------------------------

Register Now & Save for Velocity, the Web
Performance & Operations
Conference from O'Reilly Media. Velocity features a
full day of
expert-led, hands-on workshops and two days of
sessions from industry
leaders in dedicated Performance & Operations
tracks. Use code vel09scf
and Save an extra 15% before 5/3.
http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

(attachments)

kml.xsl (9.04 KB)

For me, I was able to get WMS display in KML/GE 4.x and 5.x working by simply replacing the following in kml.xsl:

remove:
<xsl:apply-templates select="$metadata/geoBox" />

add:
<LatLonBox>
  <north><xsl:value-of select="$metadata/geoBox/northBL" /></north>
  <south><xsl:value-of select="$metadata/geoBox/southBL" /></south>
  <east><xsl:value-of select="$metadata/geoBox/eastBL" /></east>
  <west><xsl:value-of select="$metadata/geoBox/westBL" /></west>
</LatLonBox>
  
Just as a note, I use ArcIMS as my mapping engine; we have some current apps (and users!) that depend on ArcIMS. My services are WMS enabled using the ArcIMS WMS Connector. This method doesn't support creating the legend (that I know of) so I remove the entire Document section of kml.xsl. (This is likely temporary until I move to MapServer or GeoServer.)

- John

**************************************************
John Callahan
Geospatial Application Developer
Delaware Geological Survey, University of Delaware
227 Academy St, Newark DE 19716-7501
Tel: (302) 831-3584 Email: john.callahan@anonymised.com
http://www.dgs.udel.edu
**************************************************

Hisaji ONO wrote:

Hello.

Currenly I could display WMS images on GE 5.0 with
attached modified kml.xsl.

This modification is to just add following fragement.

<!-- modifications start-->
<xsl:template name="latlonbox" match="*">
      <LatLonBox>
      <north><xsl:value-of select="northBL" /></north>
      <south><xsl:value-of select="southBL" /></south>
      <east><xsl:value-of select="eastBL" /></east>
      <west><xsl:value-of select="westBL" /></west>
    </LatLonBox>
     </xsl:template>
<!-- modifications end -->

</xsl:stylesheet> <!-- last part of kml.xsl -->

Please try this.

Regards.

--- Bob Nutsch <bnutsch@anonymised.com> wrote:

Hi,

I am having the same problem, were you able to get
this to by editing the
kml.xsl? I tried your idea but I still have the
problem with the data being
displayed. Here's what part of my kml.xsl looks
like:

<GroundOverlay>
  <name><xsl:value-of select="@title"/></name>
  <Icon>
      <LatLonBox>
      <north>50</north>
      <south>45</south>
      <east>96</east>
      <west>105</west>
       </LatLonBox> <href><xsl:value-of select="@href"/>......</href>
    <viewRefreshMode>onStop</viewRefreshMode>
    <viewRefreshTime>3</viewRefreshTime>
    <viewBoundScale>1.0</viewBoundScale>
  </Icon>

Regards, Bob

Hisaji ONO wrote:
    

Hello.
   I found the reason for following error in latest
Google Earth 5.0.
   GE 5.0 requires "LatLonBox" in KML file as
      

follows.
    

   <LatLonBox>
     <north>50</north>
     <south>16</south>
     <east>155</east>
     <west>122</west>
   </LatLonBox>

      My idea to solve this case,
      

kml.xsl(line:116-125) in
    

<\geonetwork\web\geonetwork\xsl> should be
      

modefied.
    

possible?

--- Hisaji ONO <hi_ono2001@anonymised.com> wrote:

Hello.
   I have tried to display WMS map images by
GeoNetwork
2.2.0 on GE 5.0, but can't display image, only
legend
image. And I also tried WMS map images on
          

FAO's
    

geonetwork

site(http://www.fao.org/geonetwork/srv/en/main.home)
    

and
these images can't be displayed on GE 5.0,
          

too.
    

   Does anyone know how to solve this case?

------------------------------------------------------------------------------
  

Apps built with the Adobe(R) Flex(R) framework and
      

Flex Builder(TM) are
    

powering Web 2.0 with engaging, cross-platform
      

capabilities. Quickly and
    

easily build your RIAs with Flex Builder, the
      

Eclipse(TM)based development
    

software that enables intelligent coding and
      

step-through debugging.
    

Download the free 60 day trial.
      

http://p.sf.net/sfu/www-adobe-com
    

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
  

GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context:

http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2742370.html
  

Sent from the geonetwork-users mailing list archive
at Nabble.com.

------------------------------------------------------------------------------
  

Register Now & Save for Velocity, the Web
Performance & Operations Conference from O'Reilly Media. Velocity features a
full day of expert-led, hands-on workshops and two days of
sessions from industry leaders in dedicated Performance & Operations
tracks. Use code vel09scf and Save an extra 15% before 5/3.
http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
  

GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

    ------------------------------------------------------------------------

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
------------------------------------------------------------------------

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

I should also probably add that I removed the "round" function in the lookAt template. This is important for areas smaller than a degree or two in either direction so Google Earth (or other KML reader) zooms to the correct location.

- John

**************************************************
John Callahan
Geospatial Application Developer
Delaware Geological Survey, University of Delaware
227 Academy St, Newark DE 19716-7501
Tel: (302) 831-3584 Email: john.callahan@anonymised.com
http://www.dgs.udel.edu
**************************************************

John Callahan wrote:

For me, I was able to get WMS display in KML/GE 4.x and 5.x working by simply replacing the following in kml.xsl:

remove:
<xsl:apply-templates select="$metadata/geoBox" />

add:
<LatLonBox>
  <north><xsl:value-of select="$metadata/geoBox/northBL" /></north>
  <south><xsl:value-of select="$metadata/geoBox/southBL" /></south>
  <east><xsl:value-of select="$metadata/geoBox/eastBL" /></east>
  <west><xsl:value-of select="$metadata/geoBox/westBL" /></west>
</LatLonBox>
  
Just as a note, I use ArcIMS as my mapping engine; we have some current apps (and users!) that depend on ArcIMS. My services are WMS enabled using the ArcIMS WMS Connector. This method doesn't support creating the legend (that I know of) so I remove the entire Document section of kml.xsl. (This is likely temporary until I move to MapServer or GeoServer.)

- John

**************************************************
John Callahan
Geospatial Application Developer
Delaware Geological Survey, University of Delaware
227 Academy St, Newark DE 19716-7501
Tel: (302) 831-3584 Email: john.callahan@anonymised.com
http://www.dgs.udel.edu
**************************************************

Hisaji ONO wrote:
  

Hello.

Currenly I could display WMS images on GE 5.0 with
attached modified kml.xsl.

This modification is to just add following fragement.

<!-- modifications start-->
<xsl:template name="latlonbox" match="*">
      <LatLonBox>
      <north><xsl:value-of select="northBL" /></north>
      <south><xsl:value-of select="southBL" /></south>
      <east><xsl:value-of select="eastBL" /></east>
      <west><xsl:value-of select="westBL" /></west>
    </LatLonBox>
     </xsl:template>
<!-- modifications end -->

</xsl:stylesheet> <!-- last part of kml.xsl -->

Please try this.

Regards.

--- Bob Nutsch <bnutsch@anonymised.com> wrote:

Hi,

I am having the same problem, were you able to get
this to by editing the
kml.xsl? I tried your idea but I still have the
problem with the data being
displayed. Here's what part of my kml.xsl looks
like:

<GroundOverlay>
  <name><xsl:value-of select="@title"/></name>
  <Icon>
      <LatLonBox>
      <north>50</north>
      <south>45</south>
      <east>96</east>
      <west>105</west>
       </LatLonBox> <href><xsl:value-of select="@href"/>......</href>
    <viewRefreshMode>onStop</viewRefreshMode>
    <viewRefreshTime>3</viewRefreshTime>
    <viewBoundScale>1.0</viewBoundScale>
  </Icon>

Regards, Bob

Hisaji ONO wrote:
    

Hello.
   I found the reason for following error in latest
Google Earth 5.0.
   GE 5.0 requires "LatLonBox" in KML file as
      

follows.
    

   <LatLonBox>
     <north>50</north>
     <south>16</south>
     <east>155</east>
     <west>122</west>
   </LatLonBox>

      My idea to solve this case,
      

kml.xsl(line:116-125) in
    

<\geonetwork\web\geonetwork\xsl> should be
      

modefied.
    

possible?

--- Hisaji ONO <hi_ono2001@anonymised.com> wrote:

Hello.
   I have tried to display WMS map images by
GeoNetwork
2.2.0 on GE 5.0, but can't display image, only
legend
image. And I also tried WMS map images on
          

FAO's
    

geonetwork

site(http://www.fao.org/geonetwork/srv/en/main.home)
    

and
these images can't be displayed on GE 5.0,
          

too.
    

   Does anyone know how to solve this case?

------------------------------------------------------------------------------
  

Apps built with the Adobe(R) Flex(R) framework and
      

Flex Builder(TM) are
    

powering Web 2.0 with engaging, cross-platform
      

capabilities. Quickly and
    

easily build your RIAs with Flex Builder, the
      

Eclipse(TM)based development
    

software that enables intelligent coding and
      

step-through debugging.
    

Download the free 60 day trial.
      

http://p.sf.net/sfu/www-adobe-com
    

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
  

GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context:

http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2742370.html
  

Sent from the geonetwork-users mailing list archive
at Nabble.com.

------------------------------------------------------------------------------
  

Register Now & Save for Velocity, the Web
Performance & Operations Conference from O'Reilly Media. Velocity features a
full day of expert-led, hands-on workshops and two days of
sessions from industry leaders in dedicated Performance & Operations
tracks. Use code vel09scf and Save an extra 15% before 5/3.
http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users
  

GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

    ------------------------------------------------------------------------

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
------------------------------------------------------------------------

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
      
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
  

Hi,

Hisaji and John, you rock! Thanks for the help! I reviewed both of your
replies and I first tried John's approach, that worked for me so that's
where I stayed. :slight_smile:

Thanks again!

Regards, Bob

--
View this message in context: http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2747214.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

Hello,

We've discovered that this fix doesn't appear to work in GN 2.4. We'll
check into it but if anyone comes across a fix please let us know.

Thanks, Bob

--
View this message in context: http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2753693.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

Hi,

Please ignore my last post...I had a typo in my URL. The fix for GE 5.x is
still working in GN 2.4.

Sorry for any inconvenience I may have caused.

Bob

--
View this message in context: http://n2.nabble.com/Fwd%3A-Re%3A-Can't-display-WMS-map-images-on-GE-5.0-tp2480641p2753822.html
Sent from the geonetwork-users mailing list archive at Nabble.com.