Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

WKID question of OGCGeometry.fromText() and OGCGeometry.fromBinary()

Abierto
#139 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java
Área
api

Línea de trabajo

Comienza con OGCGeometry.fromText(String) y el método fromBinary correspondiente; después, compara su gestión de las referencias espaciales con fromGeoJson y fromJson. Investiga cómo los métodos de relación, como st_contains y st_intersects, utilizan las referencias espaciales. Se considera completado cuando se haya establecido y documentado el comportamiento esperado de WKID para entradas que no sean 4326.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

question

public static OGCGeometry fromText(String text) {
OperatorImportFromWkt op = (OperatorImportFromWkt)OperatorFactoryLocal.getInstance().getOperator(Type.ImportFromWkt);
OGCStructure ogcStructure = op.executeOGC(0, text, (ProgressTracker)null);
return createFromOGCStructure(ogcStructure, SpatialReference.create(4326));
}
For this function (same as fromBinary), it will output OGCGeometry using the WKID 4326 directly. If the input text has some information of SRID which is not 4326, what should we do? Or current api for all the relations (such as st_contains, st_intersects etc.) is just suited for 4326 spatial reference system. In the function fromGeoJson or fromJson, it will parse the WKID from the Json input and set the SpatialReference. Here, I have a question: if the SRID is not 4326, when we do the relation query for these geometries, do we use the spatial reference system in the input JSON, or we change the spatial reference system to the 4326? Thank you!

Lenguaje dominante
Java
Estrellas
710
Forks
268
Merge medio
7 d 23 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Esri/geometry-api-java

Todos los issues de Esri/geometry-api-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.