Rename _ol_geom_SimpleGeometry_ to SimpleGeometry
This commit is contained in:
@@ -8,7 +8,7 @@ import _ol_format_Feature_ from '../format/Feature.js';
|
||||
import _ol_format_TextFeature_ from '../format/TextFeature.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
import LineString from '../geom/LineString.js';
|
||||
import _ol_geom_SimpleGeometry_ from '../geom/SimpleGeometry.js';
|
||||
import SimpleGeometry from '../geom/SimpleGeometry.js';
|
||||
import _ol_geom_flat_flip_ from '../geom/flat/flip.js';
|
||||
import _ol_geom_flat_inflate_ from '../geom/flat/inflate.js';
|
||||
import {get as getProjection} from '../proj.js';
|
||||
@@ -324,7 +324,7 @@ _ol_format_Polyline_.prototype.readGeometry;
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_format_Polyline_.prototype.readGeometryFromText = function(text, opt_options) {
|
||||
var stride = _ol_geom_SimpleGeometry_.getStrideForLayout(this.geometryLayout_);
|
||||
var stride = SimpleGeometry.getStrideForLayout(this.geometryLayout_);
|
||||
var flatCoordinates = _ol_format_Polyline_.decodeDeltas(
|
||||
text, stride, this.factor_);
|
||||
_ol_geom_flat_flip_.flipXY(
|
||||
|
||||
@@ -14,7 +14,7 @@ import MultiPoint from '../geom/MultiPoint.js';
|
||||
import MultiPolygon from '../geom/MultiPolygon.js';
|
||||
import Point from '../geom/Point.js';
|
||||
import Polygon from '../geom/Polygon.js';
|
||||
import _ol_geom_SimpleGeometry_ from '../geom/SimpleGeometry.js';
|
||||
import SimpleGeometry from '../geom/SimpleGeometry.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -208,7 +208,7 @@ _ol_format_WKT_.encode_ = function(geom) {
|
||||
var geometryEncoder = _ol_format_WKT_.GeometryEncoder_[type];
|
||||
var enc = geometryEncoder(geom);
|
||||
type = type.toUpperCase();
|
||||
if (geom instanceof _ol_geom_SimpleGeometry_) {
|
||||
if (geom instanceof SimpleGeometry) {
|
||||
var dimInfo = _ol_format_WKT_.encodeGeometryLayout_(geom);
|
||||
if (dimInfo.length > 0) {
|
||||
type += ' ' + dimInfo;
|
||||
|
||||
Reference in New Issue
Block a user