Changeset 8468


Ignore:
Timestamp:
06/01/11 14:01:32 (14 years ago)
Author:
jschierm
Message:

KML: Added KML_File class and updated KMLFileRead.

Location:
issm/trunk/src
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Makefile.am

    r8464 r8468  
    8787                                        ./objects/KML/KML_Feature.cpp\
    8888                                        ./objects/KML/KML_Feature.h\
     89                                        ./objects/KML/KML_File.cpp\
     90                                        ./objects/KML/KML_File.h\
    8991                                        ./objects/KML/KML_Folder.cpp\
    9092                                        ./objects/KML/KML_Folder.h\
     
    752754                                        ./objects/KML/KML_Feature.cpp\
    753755                                        ./objects/KML/KML_Feature.h\
     756                                        ./objects/KML/KML_File.cpp\
     757                                        ./objects/KML/KML_File.h\
    754758                                        ./objects/KML/KML_Folder.cpp\
    755759                                        ./objects/KML/KML_Folder.h\
  • issm/trunk/src/c/modules/KMLMeshWritex/KMLFileReadx.cpp

    r8461 r8468  
    1818        KML_Object*    kobj=NULL;
    1919        KML_Document*  kdoc=NULL;
     20        KML_File*      kfil=NULL;
    2021
    2122        clock_t clock0,clock1;
     
    3233        while (kstr=KMLFileToken(fid)) {
    3334                if (!strncmp(kstr,"<?xml"      ,5) ||
    34                         !strncmp(kstr,"<kml"       ,4) ||
     35//                      !strncmp(kstr,"<kml"       ,4) ||
    3536                        !strncmp(kstr,"<LineString",11) ||
    3637                        !strncmp(kstr,"<LinearRing",11))
     
    6263                        kobj=kdoc;
    6364                }
     65                if (!strncmp(kstr,"<kml",4)) {
     66                        kfil=new KML_File();
     67                        kfil->Read(fid,kstr);
     68//                      kfil->DeepEcho();
     69                        kobj=kfil;
     70                }
    6471
    6572//              _printf_(true,"%s\n",kstr);
  • issm/trunk/src/c/objects/KML/KML_Overlay.cpp

    r8464 r8468  
    131131                                                  kstr,
    132132                                                  fid);
     133
    133134        else if (!strncmp(kstr,"<Icon", 5)) {
    134135                icon      =new KML_Icon();
  • issm/trunk/src/c/objects/objects.h

    r8464 r8468  
    5050#include "./KML/KML_Document.h"
    5151#include "./KML/KML_Feature.h"
     52#include "./KML/KML_File.h"
    5253#include "./KML/KML_Folder.h"
    5354#include "./KML/KML_Geometry.h"
  • issm/trunk/src/mex/Makefile.am

    r8404 r8468  
    4242                                InterpFromMeshToGrid \
    4343                                InterpFromMesh2d \
     44                                KMLFileRead \
    4445                                KMLMeshWrite \
    4546                                Mergesolutionfromftog\
     
    221222                                                                        InterpFromMesh2d/InterpFromMesh2d.h
    222223
     224KMLFileRead_SOURCES = KMLMeshWrite/KMLFileRead.cpp\
     225                          KMLMeshWrite/KMLFileRead.h
     226
    223227KMLMeshWrite_SOURCES = KMLMeshWrite/KMLMeshWrite.cpp\
    224228                          KMLMeshWrite/KMLMeshWrite.h
Note: See TracChangeset for help on using the changeset viewer.