File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 350350 @test GeoInterface. testfeature (feature)
351351 @test GeoInterface. testfeaturecollection ([feature, feature])
352352 end
353+
354+ module ConvertTestModule
355+ using GeoInterface
356+ struct TestPolygon end
357+ traittype (:: GeoInterface.PolygonTrait ) = TestPolygon
358+
359+ GeoInterface. isgeometry (:: TestPolygon ) = true
360+ GeoInterface. geomtrait (:: TestPolygon ) = PolygonTrait ()
361+ GeoInterface. ngeom (:: PolygonTrait , geom:: TestPolygon ) = 2
362+ GeoInterface. getgeom (:: PolygonTrait , geom:: TestPolygon , i) = TestCurve ()
363+ GeoInterface. convert (:: Type{<:TestPolygon} , :: PolygonTrait , geom) = TestPolygon ()
364+ end
365+
366+ @test GeoInterface. convert (ConvertTestModule, MyPolygon ()) == ConvertTestModule. TestPolygon ()
367+
353368end
You can’t perform that action at this time.
0 commit comments