<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello<br>
    <br>
    I think all your problems comes from using both opengis and geotk
    feature models.<br>
    Until the work is finished you should not mixed them and use the
    geotk model.<br>
    <br>
    in your file : <br>
<a class="moz-txt-link-freetext" href="https://github.com/openfigis/gems/blob/master/feature/src/main/java/org/fao/fi/gems/feature/FeatureUtils.java#L55">https://github.com/openfigis/gems/blob/master/feature/src/main/java/org/fao/fi/gems/feature/FeatureUtils.java#L55</a><br>
    <br>
    Change : PropertyType prop : feature.getType().getProperties(false);<br>
    to : PropertyDescriptor desc : feature.getType().getDescriptors();<br>
    ...<br>
    if(desc.getType() instanceof GeometryType){<br>
    ...<br>
    <br>
    Or you can use the shortcut :
    feature.getType().getGeometryDescriptor().getName()<br>
    <br>
    You must know that PropertyDescriptor name is not the same as
    PropertyType name.<br>
    (PropertyDescriptor do not exist in opengis model, that's why we
    can't fully implement the opengis model in geotk)<br>
    <br>
    <br>
    You will have to change the imports too, <br>
    Change : org.opengis.feature.*;<br>
    to : org.geotoolkit.feature.*;<br>
    <br>
    Also for the name ou can use : desc.getName().tip().toString();<br>
    This will give you the string "THE_GEOM"<br>
    Or you can keep a GenericName object instead of the string.<br>
    feature.getProperty(name).getValue();<br>
    <br>
    <br>
    regards<br>
    <br>
    <br>
    Johann Sorel<br>
    <a class="moz-txt-link-abbreviated" href="mailto:johann.sorel@geomatys.com">johann.sorel@geomatys.com</a><br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 30/06/2015 14:41, Emmanuel Blondel
      wrote:<br>
    </div>
    <blockquote cite="mid:55928E69.6030608@gmail.com" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      See  below my answer (sorry it seems the email was blocked because
      of the size).<br>
      <br>
      Thanks in advance if you can help me<br>
      Emmanuel<br>
      <br>
      <div class="moz-cite-prefix">Le 29/06/2015 23:13, Emmanuel Blondel
        a écrit :<br>
      </div>
      <blockquote cite="mid:5591B507.9050208@gmail.com" type="cite">
        <meta content="text/html; charset=UTF-8"
          http-equiv="Content-Type">
        Thanks for your reply,<br>
        <br>
        Actually your answer let met wondering if i am using the correct
        dependencies now that i have switched to ApacheSIS
        0.6-jdk7-snapshot.<br>
        I am using it in combination wih Geotk 4.0-snapshot, an i use
        some basic WFS client built on the following minimal set of
        deps:<br>
        <br>
                <!-- Geotk --><br>
                <dependency><br>
                    <groupId>org.geotoolkit</groupId><br>
                    <artifactId>geotk-xml-wfs</artifactId><br>
                </dependency><br>
                <dependency><br>
                    <groupId>org.geotoolkit</groupId><br>
                    <artifactId>geotk-jaxp-core</artifactId><br>
                </dependency><br>
                <dependency><br>
                    <groupId>org.geotoolkit</groupId><br>
                    <artifactId>geotk-jaxp-gml</artifactId><br>
                </dependency><br>
                <dependency><br>
                    <groupId>org.geotoolkit</groupId><br>
                    <artifactId>geotk-feature</artifactId><br>
                </dependency><br>
        <br>
        Should i move to some Apache SIS deps instead of the above?<br>
        With the above deps, i have access through Geotoolkit to the
        "getProperties(true)" method, but i don't have any "<i>getDescriptors()"</i>
        available.<br>
        <br>
        For what concerns your first questions, see below:<br>
        <br>
        * Output for <i>feature.toString()</i><br>
        <br>
        <font color="#666666">DefaultFeature <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="http://www.fao.org/vme:VMEMEASURES_TIME">http://www.fao.org/vme:VMEMEASURES_TIME</a>
          type=<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme:VMEMEASURES_TIME">http://www.fao.org/vme:VMEMEASURES_TIME</a><br>
╓──────────────────────────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────╖<br>
          ║ name                                     │
          id                                               │
          value                                                                                                   


          ║<br>
╟──────────────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────╢<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}VMEMEASURES_TIME

          │ VMEMEASURES_TIME.fid--550a6b6d_14e31e07ee8_-7aa7
          │                                                                                                         


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>}@fid    


          │                                                  │
          VMEMEASURES_TIME.fid--550a6b6d_14e31e07ee8_-7aa7                                                        


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}FID         


          │                                                  │
          40                                                                                                      


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}THE_GEOM    


          │                                                  │ POLYGON
          ((-15.7458 59.3495, -16.766 59.7115, -17.0276 59.4485, -17.256
          59.3629, -17.5203 59.4029, -1 ... ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}VME_ID      


          │                                                  │
          VME_NEAFC_1                                                                                             


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}OWNER       


          │                                                  │
          NEAFC                                                                                                   


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}START_YEAR  


          │                                                  │ Fri Jan
          01 00:00:00 CET
          2010                                                                            


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}END_YEAR    


          │                                                  │ Fri Dec
          31 00:00:00 CET
          2010                                                                            


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}LOCAL_NAME  


          │                                                  │ Hatton
          Bank                                                                                             


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}GLOB_TYPE   


          │                                                  │
          VME                                                                                                     


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}GLOB_NAME   


          │                                                  │ VME
          Closed
          Areas                                                                                        


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}REG_TYPE    


          │                                                  │
          CLOS_VME                                                                                                


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}REG_NAME    


          │                                                  │ VME
          closure                                                                                             


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}STYLE       


          │                                                  │
          1                                                                                                       


          ║<br>
          ║   ├─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}SHAPE_AREA  


          │                                                  │
          2.43705165805                                                                                           


          ║<br>
          ║   └─{<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}SURFACE     


          │                                                  │
          1.56415911706E10                                                                                        


          ║<br>
╙──────────────────────────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────╜<br>
        </font><br>
        <br>
        * Output for <i>feature.getType().toString()</i><br>
        <br>
        <font color="#666666">ModifiableFeaturetype <a
            moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme:VMEMEASURES_TIME">http://www.fao.org/vme:VMEMEASURES_TIME</a>
          identified<br>
╓────────────────────────────────────┬──────┬──────┬───────────┬────────────┬──────┬───────────╖<br>
          ║ name                               │  min │  max │  nillable
          │  type      │  CRS │  UserData ║<br>
╟────────────────────────────────────┼──────┼──────┼───────────┼────────────┼──────┼───────────╢<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>}@fid  

          │ 0    │ 1    │ false     │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}FID       

          │ 1    │ 1    │ false     │ BigDecimal │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}THE_GEOM  

          │ 0    │ 1    │ true      │ Geometry   │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}VME_ID    

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}OWNER     

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}START_YEAR

          │ 0    │ 1    │ true      │ Date       │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}END_YEAR  

          │ 0    │ 1    │ true      │ Date       │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}LOCAL_NAME

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}GLOB_TYPE 

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}GLOB_NAME 

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}REG_TYPE  

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}REG_NAME  

          │ 0    │ 1    │ true      │ String     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}STYLE     

          │ 0    │ 1    │ true      │ BigDecimal │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}SHAPE_AREA

          │ 0    │ 1    │ true      │ Double     │      │           ║<br>
          ║ {<a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fao.org/vme">http://www.fao.org/vme</a>}SURFACE   

          │ 0    │ 1    │ true      │ Double     │      │           ║<br>
╙────────────────────────────────────┴──────┴──────┴───────────┴────────────┴──────┴───────────╜<br>
          crs null<br>
        </font><br>
        <div class="moz-cite-prefix">Le 29/06/2015 09:49, johann sorel a
          écrit :<br>
        </div>
        <blockquote cite="mid:5590F873.8000606@geomatys.com" type="cite">
          <meta content="text/html; charset=UTF-8"
            http-equiv="Content-Type">
          Hello emmanuel,<br>
          <br>
          Could you send the result of :<br>
          feature.getType().toString()<br>
          and <br>
          feature.toString();<br>
          <br>
          <br>
          The method : <i>feature.getType().<b>getProperties(true)</b></i><br>
          is from the new feature model of SIS and geotk implementation
          do not fully comply with those interfaces yet.<br>
          use : feature.getType().<b>getDescriptors()</b></blockquote>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Geotoolkit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a></pre>
    </blockquote>
    <br>
  </body>
</html>