Skip to content
Snippets Groups Projects
Commit 95986f99 authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Use function `shp_read_point`

parent f7452fff
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,8 @@ contains ...@@ -13,9 +13,8 @@ contains
use contour_531, only: null_polyline use contour_531, only: null_polyline
use gpc_f, only: shp_read_pol, polygon use gpc_f, only: shp_read_pol, polygon
use jumble, only: deg_to_rad, pi use jumble, only: deg_to_rad, pi
use shapelib, only: shpobject, shpdestroyobject, shpfileisnull use shapelib, only: shpfileisnull
use shapelib_03, only: shp_read_object_03, dbf_read_attribute_03, & use shapelib_03, only: dbf_read_attribute_03, shp_read_point
shp_read_point
use derived_types, only: eddy, shpc_slice_handler, missing_speed use derived_types, only: eddy, shpc_slice_handler, missing_speed
...@@ -31,9 +30,8 @@ contains ...@@ -31,9 +30,8 @@ contains
integer, intent(in):: ishape ! 0-based integer, intent(in):: ishape ! 0-based
! Local: ! Local:
TYPE(shpobject) psobject
type(polygon) p type(polygon) p
real attr real attr, point(2)
!--------------------------------------------------------------------- !---------------------------------------------------------------------
...@@ -53,9 +51,8 @@ contains ...@@ -53,9 +51,8 @@ contains
! extr_proj: ! extr_proj:
if (.not. shpfileisnull(hshp%extr_proj)) then if (.not. shpfileisnull(hshp%extr_proj)) then
call shp_read_object_03(hshp%extr_proj, ishape, psobject) call shp_read_point(point, hshp%extr_proj, ishape)
e%extr%coord_proj = nint([psobject%padfx(1), psobject%padfy(1)]) e%extr%coord_proj = nint(point)
call shpdestroyobject(psobject)
end if end if
! outermost_contour: ! outermost_contour:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment