@@ -32,7 +32,7 @@ fn dimension_path_part(dim: Dimension) -> &'static str {
32
32
/// Construct the filepath to files in geoarrow-data
33
33
///
34
34
/// This suffix should either be "geo" or "native"
35
- fn geoparquet_wkb_filepath ( data_type : GeoArrowType , suffix : & str ) -> PathBuf {
35
+ fn geoparquet_filepath ( data_type : GeoArrowType , suffix : & str ) -> PathBuf {
36
36
let path = geoarrow_data_example_files ( ) ;
37
37
let mut fname = "example_" . to_string ( ) ;
38
38
@@ -110,7 +110,7 @@ fn point() {
110
110
] {
111
111
for file_type in [ "geo" , "native" ] {
112
112
let expected_typ = PointType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
113
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
113
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
114
114
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
115
115
116
116
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -138,7 +138,7 @@ fn linestring() {
138
138
] {
139
139
for file_type in [ "geo" , "native" ] {
140
140
let expected_typ = LineStringType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
141
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
141
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
142
142
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
143
143
144
144
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -166,7 +166,7 @@ fn polygon() {
166
166
] {
167
167
for file_type in [ "geo" , "native" ] {
168
168
let expected_typ = PolygonType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
169
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
169
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
170
170
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
171
171
172
172
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -194,7 +194,7 @@ fn multipoint() {
194
194
] {
195
195
for file_type in [ "geo" , "native" ] {
196
196
let expected_typ = MultiPointType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
197
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
197
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
198
198
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
199
199
200
200
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -223,7 +223,7 @@ fn multilinestring() {
223
223
for file_type in [ "geo" , "native" ] {
224
224
let expected_typ =
225
225
MultiLineStringType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
226
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
226
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
227
227
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
228
228
229
229
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -252,7 +252,7 @@ fn multipolygon() {
252
252
] {
253
253
for file_type in [ "geo" , "native" ] {
254
254
let expected_typ = MultiPolygonType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
255
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
255
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , file_type) ;
256
256
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
257
257
258
258
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
@@ -281,7 +281,7 @@ fn geometrycollection() {
281
281
] {
282
282
let expected_typ =
283
283
GeometryCollectionType :: new ( CoordType :: Separated , dim, Default :: default ( ) ) ;
284
- let path = geoparquet_wkb_filepath ( expected_typ. clone ( ) . into ( ) , "geo" ) ;
284
+ let path = geoparquet_filepath ( expected_typ. clone ( ) . into ( ) , "geo" ) ;
285
285
let ( wkt_arr, geo_arr) = read_gpq_file ( path) ;
286
286
287
287
assert_eq ! ( geo_arr. data_type( ) , expected_typ. clone( ) . into( ) ) ;
0 commit comments