You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Martin Desruisseaux <ma...@geomatys.com> on 2016/07/02 15:59:46 UTC

Started port of SummaryRecord from VNSCweb to SIS

Hello Hao and Chinh

I took the SummaryRecord class that you committed in the VNSCweb
repository and copied it in Hao's clone of SIS (through a pull request),
package org.apache.sis.services.csw. In this process I did the following
changes:

  * I added a package-info.java class with some JAXB annotations, for
    example telling that the XML prefix of "http://www.opengis.net/ows"
    will be "ows".
  * Avoid repetition of JAXB namespace attribute when we can specify it
    at the class level.
  * Renamed "Element" as "BoundingBox" and fixed a typo in the bounding
    box: northBoundLongitude should be northBoundLatitude, and same for
    south.
  * Started a refactoring of SummaryRecord and BoundingBox as wrappers
    around the corresponding ISO 19115 element.

The idea about the last point is that ISO 19115 is the "universal"
metadata model in Apache SIS, and other models like Dublin Core are
"views" over ISO 19115. So we would like SummaryRecord to take its
information from ISO 19115 metadata, and store its information in ISO
19115 metadata.

It is the same process than what you did when you created a mapping
between Landsat and ISO 19115. Now this is a mapping between Dublin Core
and ISO 19115. So ISO 19115 is used as the "pivot" which will allow us
to go, for example, from Landsat to Dublin Core.

I refactored only the "title" property for now. Other properties will be
refactored later. One difficulty however is that the SummaryRecord has
only one "title" value while ISO 19115 can have (indirectly) many titles
for many resources. In the current version the getTitle() method returns
a concatenation of all title, with one title per line and without
duplicated values. We may revisit this policy later if we need something
better. However I think that in most case, we will have only one title
and consequently no ambiguity.

Note that CSW can also return directly a ISO 19115 metadata instead than
Dublin Core. We will do that later.

This is still work in progress and probably not yet usable. This is not
yet targeted as a replacement for SummaryRecord on VNSCweb repository.

    Martin



Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by Martin Desruisseaux <ma...@geomatys.com>.
Le 03/07/16 � 18:16, phuong hao nguyen thi a �crit :
> Sorry I don't known .
> So When I can download from web  geotoolkit ?

The maven.geotoolkit.org server is temporarily down. I can not restart
it myself, so we need to wait for the administrator to come back on
Monday. But we use that repository only temporarily anyway, for the VNSC
prototype. The code on Apache SIS can not depends on that repository.

In this particular case, the error message was:

>> [WARNING] Could not transfer metadata
>> org.apache.sis:parent:0.8-jdk7-SNAPSHOT/maven-metadata.xml from/to
>> geotoolkit.org (http://maven.geotoolkit.org): Connect to
>> maven.geotoolkit.org:80 [maven.geotoolkit.org/193.48.189.43] failed:
>> Connection timed out
The org.apache.sis:parent:0.8-jdk7-SNAPSHOT artifact can be built by
your clone of Apache SIS. So if you run "mvn install --offline" on
Apache SIS first, then when building VNSCweb Maven should detect that it
already has org.apache.sis:parent:0.8-jdk7-SNAPSHOT (because you built
it just before) and that it does not need to download it from internet.

Hopefully the maven.geotoolkit.org repository will be back online in the
next 24 hours, so this problem will be resolved.

    Martin



Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by phuong hao nguyen thi <ng...@gmail.com>.
Sorry I don't known .
So When I can download from web  geotoolkit ?


On Sun, Jul 3, 2016 at 5:42 PM, Martin Desruisseaux <
martin.desruisseaux@geomatys.com> wrote:

> And if you build your clone of SIS (from github.com/haonguyen123/sis) in
> --offline mode before to build VNSCweb in --offline mode too, does it
> work better?
>
>     Martin
>
>
> Le 03/07/16 à 03:32, phuong hao nguyen thi a écrit :
> > Hello Martin,
> > I used to tried  :  mvn dependency:go-offline but "BUILD FAILURE" It's
> > still need download geotoolkit
> > Example :
> > Downloading:
> >
> http://maven.geotoolkit.org/org/apache/sis/parent/0.8-jdk7-SNAPSHOT/maven-metadata.xml
> > [WARNING] Could not transfer metadata
> > org.apache.sis:parent:0.8-jdk7-SNAPSHOT/maven-metadata.xml from/to
> > geotoolkit.org (http://maven.geotoolkit.org): Connect to
> > maven.geotoolkit.org:80 [maven.geotoolkit.org/193.48.189.43] failed:
> > Connection timed out
>
>

Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by Martin Desruisseaux <ma...@geomatys.com>.
And if you build your clone of SIS (from github.com/haonguyen123/sis) in
--offline mode before to build VNSCweb in --offline mode too, does it
work better?

    Martin


Le 03/07/16 � 03:32, phuong hao nguyen thi a �crit :
> Hello Martin,
> I used to tried  :  mvn dependency:go-offline but "BUILD FAILURE" It's
> still need download geotoolkit
> Example :
> Downloading:
> http://maven.geotoolkit.org/org/apache/sis/parent/0.8-jdk7-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.apache.sis:parent:0.8-jdk7-SNAPSHOT/maven-metadata.xml from/to
> geotoolkit.org (http://maven.geotoolkit.org): Connect to
> maven.geotoolkit.org:80 [maven.geotoolkit.org/193.48.189.43] failed:
> Connection timed out


Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by phuong hao nguyen thi <ng...@gmail.com>.
Hello Martin,
I used to tried  :  mvn dependency:go-offline but "BUILD FAILURE" It's
still need download geotoolkit
Example :
Downloading:
http://maven.geotoolkit.org/org/apache/sis/parent/0.8-jdk7-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata
org.apache.sis:parent:0.8-jdk7-SNAPSHOT/maven-metadata.xml from/to
geotoolkit.org (http://maven.geotoolkit.org): Connect to
maven.geotoolkit.org:80 [maven.geotoolkit.org/193.48.189.43] failed:
Connection timed out
Thanks
Hao

On Sun, Jul 3, 2016 at 1:08 AM, Martin Desruisseaux <
martin.desruisseaux@geomatys.com> wrote:

> Hello Hao
>
> Have you tried with the --offline option in Maven commands?
>
>     Martin
>
>
> Le 02/07/16 à 18:20, phuong hao nguyen thi a écrit :
> > Thanks so much, but today, Why I can't load geotoolkit library to do
> > work . Each
> > the  run is very slow  .
>
>

Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by Martin Desruisseaux <ma...@geomatys.com>.
Hello Hao

Have you tried with the --offline option in Maven commands?

    Martin


Le 02/07/16 � 18:20, phuong hao nguyen thi a �crit :
> Thanks so much, but today, Why I can't load geotoolkit library to do
> work . Each
> the  run is very slow  .


Re: Started port of SummaryRecord from VNSCweb to SIS

Posted by phuong hao nguyen thi <ng...@gmail.com>.
Hello Martin,
Thanks so much, but today, Why I can't load geotoolkit library to do
work . Each
the  run is very slow  .
Hao

On Sat, Jul 2, 2016 at 10:59 PM, Martin Desruisseaux <
martin.desruisseaux@geomatys.com> wrote:

> Hello Hao and Chinh
>
> I took the SummaryRecord class that you committed in the VNSCweb
> repository and copied it in Hao's clone of SIS (through a pull request),
> package org.apache.sis.services.csw. In this process I did the following
> changes:
>
>   * I added a package-info.java class with some JAXB annotations, for
>     example telling that the XML prefix of "http://www.opengis.net/ows"
>     will be "ows".
>   * Avoid repetition of JAXB namespace attribute when we can specify it
>     at the class level.
>   * Renamed "Element" as "BoundingBox" and fixed a typo in the bounding
>     box: northBoundLongitude should be northBoundLatitude, and same for
>     south.
>   * Started a refactoring of SummaryRecord and BoundingBox as wrappers
>     around the corresponding ISO 19115 element.
>
> The idea about the last point is that ISO 19115 is the "universal"
> metadata model in Apache SIS, and other models like Dublin Core are
> "views" over ISO 19115. So we would like SummaryRecord to take its
> information from ISO 19115 metadata, and store its information in ISO
> 19115 metadata.
>
> It is the same process than what you did when you created a mapping
> between Landsat and ISO 19115. Now this is a mapping between Dublin Core
> and ISO 19115. So ISO 19115 is used as the "pivot" which will allow us
> to go, for example, from Landsat to Dublin Core.
>
> I refactored only the "title" property for now. Other properties will be
> refactored later. One difficulty however is that the SummaryRecord has
> only one "title" value while ISO 19115 can have (indirectly) many titles
> for many resources. In the current version the getTitle() method returns
> a concatenation of all title, with one title per line and without
> duplicated values. We may revisit this policy later if we need something
> better. However I think that in most case, we will have only one title
> and consequently no ambiguity.
>
> Note that CSW can also return directly a ISO 19115 metadata instead than
> Dublin Core. We will do that later.
>
> This is still work in progress and probably not yet usable. This is not
> yet targeted as a replacement for SummaryRecord on VNSCweb repository.
>
>     Martin
>
>
>