Class CartographyService


  • public class CartographyService
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.plugins.leaflet.business.GeolocItem getGeolocItemPoint​(java.lang.Double x, java.lang.Double y, java.lang.String adresse)
      get a geolocitem point from coordinate
      static fr.paris.lutece.plugins.leaflet.business.GeolocItemPolygon getGeolocItemPolygon​(java.lang.String coordinate, java.lang.String strTypeGeometry)
      get a geolocitem polygon or polyline from coordinates
      static java.util.List<java.util.HashMap<java.lang.String,​java.lang.Object>> getGeolocModel​(java.util.List<fr.paris.lutece.plugins.search.solr.business.SolrSearchResult> listResultsGeoloc, fr.paris.lutece.plugins.carto.business.DataLayer datalayer, fr.paris.lutece.plugins.carto.business.DataLayerMapTemplate dataLayerMapTemplate)
      Returns a model with points data from a geoloc search
      static java.util.List<java.util.HashMap<java.lang.String,​java.lang.Object>> getWFSFluxModel​(int nIdMap)  
      static void loadMapAndPoints​(fr.paris.lutece.plugins.carto.business.MapTemplate map, java.util.Map<java.lang.String,​java.lang.Object> model, fr.paris.lutece.portal.service.security.LuteceUser user)
      load model carto into the map
      static java.lang.String replaceMarker​(java.lang.String text, java.lang.String uid, java.lang.String solrTag)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CartographyService

        public CartographyService()
    • Method Detail

      • getGeolocModel

        public static java.util.List<java.util.HashMap<java.lang.String,​java.lang.Object>> getGeolocModel​(java.util.List<fr.paris.lutece.plugins.search.solr.business.SolrSearchResult> listResultsGeoloc,
                                                                                                                fr.paris.lutece.plugins.carto.business.DataLayer datalayer,
                                                                                                                fr.paris.lutece.plugins.carto.business.DataLayerMapTemplate dataLayerMapTemplate)
        Returns a model with points data from a geoloc search
        Parameters:
        listResultsGeoloc - the result of a search
        Returns:
        the model
      • getWFSFluxModel

        public static java.util.List<java.util.HashMap<java.lang.String,​java.lang.Object>> getWFSFluxModel​(int nIdMap)
      • replaceMarker

        public static java.lang.String replaceMarker​(java.lang.String text,
                                                     java.lang.String uid,
                                                     java.lang.String solrTag)
      • getGeolocItemPoint

        public static fr.paris.lutece.plugins.leaflet.business.GeolocItem getGeolocItemPoint​(java.lang.Double x,
                                                                                             java.lang.Double y,
                                                                                             java.lang.String adresse)
        get a geolocitem point from coordinate
        Parameters:
        x - coordinate x
        y - coordinate y
        adresse -
        Returns:
      • getGeolocItemPolygon

        public static fr.paris.lutece.plugins.leaflet.business.GeolocItemPolygon getGeolocItemPolygon​(java.lang.String coordinate,
                                                                                                      java.lang.String strTypeGeometry)
        get a geolocitem polygon or polyline from coordinates
        Parameters:
        coordinate -
        strTypeGeometry - Polygon or Polyline
        Returns:
      • loadMapAndPoints

        public static void loadMapAndPoints​(fr.paris.lutece.plugins.carto.business.MapTemplate map,
                                            java.util.Map<java.lang.String,​java.lang.Object> model,
                                            fr.paris.lutece.portal.service.security.LuteceUser user)
        load model carto into the map
        Parameters:
        map -
        model -