Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape as background map not drawing if initially zoomed in. #110

Closed
jipclaassens opened this issue Jan 30, 2023 · 7 comments
Closed

Shape as background map not drawing if initially zoomed in. #110

jipclaassens opened this issue Jan 30, 2023 · 7 comments
Assignees
Labels
OVSRV06 testcase available on ovsrv06

Comments

@jipclaassens
Copy link
Member

jipclaassens commented Jan 30, 2023

If a shape background layer is configured via

unit<dpoint> AfricanACEA: Format = "ESRI:102022", DialogData = "SourceData/ReadSpatialData/Africa_countries_AEA/inFile/ISO";

And you open a layer that is only a part of the total background map, zooming out won't show the entire background layer.

OVSRV6:
C:\ProjDir\Jip\_Github_issues\geodms_africa_cusa2_issueGH110\cfg\Africa.dms
(was: C:\ProjDir\Jip\geodms_africa_cusa2_issue110\cfg\Africa.dms)

To see only a part:
/SourceData/Roads/Read_src_shps/Algeria/inFile/geometry_bp

And this one shows the whole background map:
/SourceData/ReadSpatialData/Corridors/inFile/geometry

@MaartenHilferink
Copy link
Collaborator

MaartenHilferink commented Jan 31, 2023

C:\ProjDir\Jip\geodms_africa_cusa2_issueGH110\cfg\Africa.dms

@MaartenHilferink
Copy link
Collaborator

MaartenHilferink commented Jan 31, 2023

/SourceData/Roads/Read_src_shps/Algeria/inFile/geometry_bp:

GDAL Error: SpatialReferenceSystem that GDAL obtained from Dataset differs from baseProjectionUnit's SpatialReference.
Dataset's SpatialReference:
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]
baseProjectionUnit's SpatialReference:
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433],AXIS["Longitude",EAST],AXIS["Latitude",NORTH]]
/SourceData/Roads/Read_src_shps/Algeria/inFile 

@MaartenHilferink
Copy link
Collaborator

MaartenHilferink commented Jan 31, 2023

@eoudejans : Do you know how to mitigate the differences between these two SpatialReferences ?

@eoudejans
Copy link
Collaborator

eoudejans commented Feb 1, 2023

@MaartenHilferink assuming both projections are valid, I would use proj to reproject data from one definition to the other. Furthermore, the former seems more explicit in the EPSG codes that define for instance the prime meridian ie. PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]]
vs
PRIMEM["Greenwich",0]

@jipclaassens jipclaassens added the OVSRV06 testcase available on ovsrv06 label Mar 22, 2023
@jipclaassens jipclaassens self-assigned this Apr 22, 2024
@jipclaassens
Copy link
Member Author

image
As if it was designed this way.

@ObjectVision ObjectVision deleted a comment from jipclaassens Apr 23, 2024
@jipclaassens
Copy link
Member Author

jipclaassens commented Apr 23, 2024

WorldClipRect of LayerSet is by design determined by only the non-topographic (aka background) layers. While drawing, all objects of the layers are clipped by the drawing clip region intersected with the clip region of the layerset. This intersecting is useful for the case that the intersection is empty, which implies that the layerset drawing can be skipped, but not useful for filtering features.
TODO as mitigation measure: use GraphicObject boundaries to test if drawing can be skipped, but do not use it to filter features.

image

@jipclaassens jipclaassens removed their assignment May 14, 2024
MaartenHilferink added a commit that referenced this issue May 15, 2024
@MaartenHilferink
Copy link
Collaborator

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OVSRV06 testcase available on ovsrv06
Projects
None yet
Development

No branches or pull requests

3 participants