Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
PCLoaderArcView.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
19// A reader of pois and polygons from shape files
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
24#include <string>
26
27
28// ===========================================================================
29// class declarations
30// ===========================================================================
31class OptionsCont;
32class PCPolyContainer;
33class PCTypeMap;
34#ifdef HAVE_GDAL
35class OGRLineString;
36#endif
37
38
39// ===========================================================================
40// class definitions
41// ===========================================================================
52public:
65 static void loadIfSet(OptionsCont& oc, PCPolyContainer& toFill, PCTypeMap& tm);
66
67
68private:
69#ifdef HAVE_GDAL
70 static const PositionVector toShape(OGRLineString* geom, const std::string& tid);
71#endif
72
79 static void load(const std::string& file, OptionsCont& oc, PCPolyContainer& toFill, PCTypeMap& tm);
80
81private:
83
84private:
87
90
91};
A storage for options typed value containers)
Definition OptionsCont.h:89
A reader of pois and polygons from shape files.
PCLoaderArcView & operator=(const PCLoaderArcView &)
Invalidated assignment operator.
static bool myWarnMissingProjection
static void load(const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
Parses pois/polys stored within the given file.
PCLoaderArcView(const PCLoaderArcView &)
Invalidated copy constructor.
static void loadIfSet(OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
Loads pois/polygons assumed to be stored as shape files-files.
A storage for loaded polygons and pois.
A storage for type mappings.
Definition PCTypeMap.h:42
A list of positions.