Костя Аристов ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Abee4fb95-828f-4cc0-b5cd-cc96396f0c63
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10283?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 ) GEOS-10283 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10283?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 ) Upload WorldImage ( 
https://osgeo-org.atlassian.net/browse/GEOS-10283?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.19.2 Assignee: Unassigned Attachments: 
1.png, 2.png, 3.png, 4.png, 5.png, 6.png, 7.png, 8.png, 9.png Created: 
20/Oct/21 3:00 PM Priority: Medium Reporter: Костя Аристов ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Abee4fb95-828f-4cc0-b5cd-cc96396f0c63
 )

Good afternoon, there are a number of questions about the use of the geoserver.
Task:
There is a picture in the format .jpg and the binding file in the format .jgw. 
The custom coordinate system is also known in advance.
You need to upload the source data to the geoserver, then get this data via the 
wms protocol in the Web Mercator coordinate system (epsg:3857).

My steps:
1) Creating a new Data Source with the WorldImage type (screenshot 1)
The contents of the file folder:data/ofp_test on screenshot 2
2) I publish a layer (screenshot 3)
3) Adding a new coordinate system to 
/usr/share/geoserver/data_dir/user_projections/epsg.properties
I named it 391142 (screenshot 4) (after adding it to epsg.properties, I 
restarted the geoserver)
4) Here is my first question. I have no way to change Native SRS to 
EPSG:391142, because EPSG:404000 is installed and it is not editable. 
(screenshot 5)
With this Declared SRS, I managed to put EPSG:391142
5) Through chrome devtools, I managed to remove the readonly attribute on the 
Native SRS field, after which I was able to edit and set EPSG:391142 (I'm not 
sure if this is correct) (screenshot 6)
6) I calculated the Native Bounding Box from the data. I calculated the Lat/Lon 
Bounding Box from the Native Bounding Box.
The numbers show that the Native Bounding Box is calculated correctly relative 
to the binding file
Lat/Lon Bounding Box is also calculated correctly, I tried to translate these 
boundaries into Web Mercator (epsg:3857) and got the real location of my 
picture in epsg:3857. (screenshot 7)
7) by link
http://localhost:8080/geoserver/ofp/wms?service=WMS&version=1.1.0&request=GetMap&layers=ofp%3Aofp&bbox=207.556464062072%2C425.1170613763602%2C1886.706464062072%2C1361.1170613763602&width=768&height=428&srs=EPSG%3A391142&styles=&format=application/openlayers
I see a picture in coordinates approximately 900, 900 (screenshot 8) (the 
second question is, why is it upside down?)
I change the coordinate system in the link to mercator
http://localhost:8080/geoserver/ofp/wms?service=WMS&version=1.1.0&request=GetMap&layers=ofp%3Aofp&bbox=207.556464062072%2C425.1170613763602%2C1886.706464062072%2C1361.1170613763602&width=768&height=428&srs=EPSG%3A3857&styles=&format=application/openlayers
And all that changed was that the picture was rotated correctly, the 
coordinates remained approximately 900,900
It is unclear why such coordinates are, because taking into account the 
translation of coordinates into mercator, the numbers should be much larger 
(approximately 5000000, 9000). (screenshot 9)

What I tried to do:
1) changed Declared SRS to mercator
2) changed SRS handling to Force declared

Nothing helped.

I will be glad of any help, thank you
( https://osgeo-org.atlassian.net/secure/attachment/33796/33796_2.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33795/33795_8.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33797/33797_4.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33793/33793_7.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33792/33792_6.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33794/33794_9.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33790/33790_3.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33791/33791_5.png ) ( 
https://osgeo-org.atlassian.net/secure/attachment/33789/33789_1.png )

( 
https://osgeo-org.atlassian.net/browse/GEOS-10283#add-comment?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10283#add-comment?atlOrigin=eyJpIjoiM2MzYTM1M2FmODcxNGYyOGE4NTI3OWFlMTliNDdlYTgiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- 
sha1:07ff071 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to