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

Update ngsi_arcgis_featuretable_sink.md #2327

Merged
merged 24 commits into from
Dec 13, 2023
Merged
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
aeafe6b
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 4, 2023
ad1a657
Add note to case-sensitivity issue
danielvillalbamota Dec 4, 2023
665328a
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 5, 2023
e928d82
Update ngsi_arcgis_featuretable_sink.md
manucarrace Dec 5, 2023
720a898
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 5, 2023
5b59455
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 5, 2023
d598188
Update doc/cygnus-ngsi/flume_extensions_catalogue/ngsi_arcgis_feature…
danielvillalbamota Dec 11, 2023
942632f
Update doc/cygnus-ngsi/flume_extensions_catalogue/ngsi_arcgis_feature…
danielvillalbamota Dec 11, 2023
d384ca4
Fix typo
danielvillalbamota Dec 11, 2023
deb80da
Fix title level
danielvillalbamota Dec 11, 2023
dc8c25a
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 11, 2023
73986f5
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
0698764
Update doc/cygnus-ngsi/flume_extensions_catalogue/ngsi_arcgis_feature…
fgalan Dec 12, 2023
68e06b5
Reorder name mappings vs custom notifs subsections
danielvillalbamota Dec 12, 2023
6c8e1f4
Fix typo
danielvillalbamota Dec 12, 2023
68b19c5
expand custom notif and name mappings documentation
danielvillalbamota Dec 12, 2023
022143c
Remove example section
danielvillalbamota Dec 12, 2023
72ba258
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
d35e312
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
5ac3e9e
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
2d2c9a4
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
056af56
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
80647a4
Update ngsi_arcgis_featuretable_sink.md
danielvillalbamota Dec 12, 2023
ef0e384
Update doc/cygnus-ngsi/flume_extensions_catalogue/ngsi_arcgis_feature…
fgalan Dec 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Content:
* [Configuration](#section2.1)
* [Important notes](#section2.2)
* [About batching](#section2.2.1)
* [About case-sensitivity](#section2.2.2)
* [About Arcgis data types](#section2.2.3)
* [Programmers guide](#section3)
* [`NGSIArcgisFeatureTableSink` class](#section3.1)
* [Authentication and authorization](#section3.2)
Expand Down Expand Up @@ -42,7 +44,7 @@ Each entity type needs an url and an unique field to be persisted into the featu

NGSIArcgisFeatureTableSink composes each table's url with entitie's `service` and `service path`, to provide multiple tables access.

Unique field is provided to allow `NGSIArcgisFeatureTableSink` to update existant entities. NGSI `entity type` will be used as unique field name.
Unique field is provided to allow `NGSIArcgisFeatureTableSink` to update existant entities. NGSI `entity type` will be used as unique field name. This means that a feature named `type` in the Feature Table cannot be filled in by the sink. If Feature Table needs to persist the value of entity type it has to be in a feature different than `type`.

All this parameters, can be customized using Cygnus mapping capabilities.

Expand Down Expand Up @@ -133,7 +135,6 @@ A configuration example could be:
cygnus-ngsi.sinks.arcgis-sink.type = com.telefonica.iot.cygnus.sinks.NGSIArcgisFeatureTableSink
cygnus-ngsi.sinks.arcgis-sink.channel = arcgis-channel
cygnus-ngsi.sinks.arcgis-sink.enable_name_mappings = true
cygnus-ngsi.sinks.arcgis-sink.enable_name_mappings = false
Copy link
Collaborator

@manucarrace manucarrace Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated line in example. NTC

cygnus-ngsi.sinks.arcgis-sink.arcgis_service_url = https://arcgis.com/UsuarioArcgis/arcgis/rest/services
cygnus-ngsi.sinks.arcgis-sink.arcgis_username = myuser
cygnus-ngsi.sinks.arcgis-sink.arcgis_password = mypassword
Expand All @@ -160,6 +161,20 @@ Connections to `cygnus-ngsi.sinks.arcgis-sink.arcgis_service_url` and `cygnus-ng

[Top](#top)

#### <a name="section2.2.2"></a>About case-sensitivity

**[FIXME #2320](https://github.com/telefonicaid/fiware-cygnus/issues/2320)**. Currently Arcgis sink is case sensitive with the attributes to persist in the Feature Table although arcgis is not case sensitive. This behaviour requires the use of name-mappings to match the case letters of the attribute definition in the Feature Table.

[Top](#top)

#### <a name="section2.2.3"></a>About Arcgis data types

- **esriFieldTypeDate**

From https://doc.arcgis.com/en/data-pipelines/latest/process/output-feature-layer.htm
> ... Date fields are stored in feature layers using the format milliseconds from epoch and the coordinated universal time (UTC) time zone. The values will be displayed differently depending on where you are viewing the data. For example, querying the feature service REST end point will return values in milliseconds from epoch, such as 1667411518878....

So, to persist a `esriFieldTypeDate` field in the Feature Layer, cygnus has to receive an attribute "Number" from the CB with the milliseconds from epoch.

## <a name="section3"></a>Programmers guide
### <a name="section3.1"></a>`NGSIArcgisFeatureTableSink` class
Expand Down
Loading