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

Support reprojecting geometries in STAC API #574

Open
mhogeweg opened this issue Nov 21, 2024 · 0 comments
Open

Support reprojecting geometries in STAC API #574

mhogeweg opened this issue Nov 21, 2024 · 0 comments

Comments

@mhogeweg
Copy link
Member

Consider implementing a capability to reproject geometries between coordinate reference systems (CRS) when receiving STAC item JSON as well as when returning STAC item JSON.

This would be implemented by configuring a ArcGIS Server Geometry Service in Geoportal Server along with a list of STAC fields that may hold geometry information that needs to be projected.

add to app-context.xml:

<beans:bean id="geoportalContext" class="com.esri.geoportal.context.GeoportalContext">
  <beans:property name="geometryService" value="https://www.example.com/arcgis/rest/services/Utilities/Geometry/GeometryServer" />
  <beans:property name="geometryFields" value="bbox,geometry,properties.geometry_wkt" />
...
</beans:bean>

when set, whenever geometry is ingested/returned, Geoportal will convert between what is submitted/returned and what is stored.

to allow for custom CRS to be included, consider adding to app-context.xml the following section that lists the WKT representation of those CRS:

<beans:bean id="geoportalContext" class="com.esri.geoportal.context.GeoportalContext">
...
  <beans:property name="crsList">
    <beans:list>
      <beans:value>PROJCS["MyCRS",GEOGCS[...]]</beans:value>
      <beans:value>PROJCS["MyOtherCRS",GEOGCS[...]]</beans:value>
    </beans:list>
  </beans:property>
...
</beans:bean>
@mhogeweg mhogeweg self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant