Skip to content

Commit

Permalink
Issue Oslandia#130: Dummy implementation for lineSegment
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcu888 committed Apr 27, 2020
1 parent 4d41852 commit 860cfa2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/algorithm/lineSegment.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* SFCGAL
*
* Copyright (C) 2020 Oslandia <infos@oslandia.com>
* Copyright (C) 2020 IGN (http://www.ign.fr)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

// SFCGAL
#include <SFCGAL/algorithm/lineSegment.h>
#include <SFCGAL/LineString.h>
#include <SFCGAL/Exception.h>

namespace SFCGAL
{

namespace algorithm
{

std::unique_ptr<LineString> lineSegment( const LineString& ls )
{
BOOST_THROW_EXCEPTION( Exception( "SFCGAL::lineSegment:- Not implemented." ) );
return nullptr;
}

std::unique_ptr<LineString> lineSegment3D( const LineString& ls )
{
BOOST_THROW_EXCEPTION( Exception( "SFCGAL::lineSegment3D:- Not implemented." ) );
return nullptr;
}

} // ! namespace algorithm

} // ! namespace SFCGAL

4 changes: 4 additions & 0 deletions src/algorithm/lineSegment.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#ifndef _SFCGAL_ALGORITHM_LINESEGMENT_H_
#define _SFCGAL_ALGORITHM_LINESEGMENT_H_

// C++
#include <memory>

// SFCGAL
#include <SFCGAL/config.h>

namespace SFCGAL
Expand Down

0 comments on commit 860cfa2

Please sign in to comment.